Guest User

Untitled

a guest
Jan 21st, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.90 KB | None | 0 0
  1. If My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\wscsvc", "Start", "") = 4 Then
  2.             MsgBox("Action Center Disabled")
  3.         Else
  4.             My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\wscsvc", "Start", 4)
  5.         End If
  6.         If My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "EnableLUA", "") = 0 Then
  7.             MsgBox("UAC Disabled")
  8.         Else
  9.             My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "EnableLUA", 0)
  10.         End If
  11.  
  12.         Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName("explorer")
  13.         For Each p As Process In pProcess
  14.             p.Kill()
  15.         Next
  16.         Application.DoEvents()
  17.         Process.Start("explorer.exe")
  18.         End
Add Comment
Please, Sign In to add comment