Skip to content

Instantly share code, notes, and snippets.

@PatrickMcDonald
Last active December 25, 2015 04:39
Show Gist options
  • Save PatrickMcDonald/6919285 to your computer and use it in GitHub Desktop.
Save PatrickMcDonald/6919285 to your computer and use it in GitHub Desktop.
'Enable Registry Editing'
'© Veegertx - 4/7/2004
'This code may be freely distributed/modified
On Error Resume Next
'Prevents errors from values that don't exist
Set WshShell = WScript.CreateObject("WScript.Shell")
'Delete DisableRegistryTools registry values
WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools"
WshShell.RegDelete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools"
'display message
Message = "You should have access to Regedit now"
X = MsgBox(Message, vbOKOnly, "Done")
Set WshShell = Nothing
Set fso = Nothing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment