Unlock registry editing tools with vbs
Posted on 2006-11-07
I have a PC running Windows XP Pro and have no access to the registry editing tools but can sucessfully change the value of registry keys with a vbs script.
I have the following script that does not work :
'Enable Registry Editing tools.
'To disable Registry editing tools change "0" in the last line to "1".
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools", "0", "REG_DWORD"
I believe it should work but I get a rather nasty looking error message :
Error: Invalid root in registry key
Does someone have the solution ?