Last active
December 25, 2015 04:39
-
-
Save PatrickMcDonald/6919285 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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