Solved

Unlock registry editing tools with vbs

Posted on 2006-11-07
6
2,613 Views
Last Modified: 2013-12-04
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".

Dim WSHShell
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 :

*****
Script: c:\unlock.vbs
Line: 5
Char: 1
Error: Invalid root in registry key
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools"
Code: 87070005
Source: WshShell.RegWrite
*****

Does someone have the solution ?

Regards

Kes3


0
Comment
Question by:kes3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 35

Accepted Solution

by:
Raynard7 earned 250 total points
ID: 17896198
Hi,

I'd suggest that instead of using a vbs file you just get a registry editor that works

My workplace locks down the regedit.exe through registry restrictions etc but the free registrar lite 2.0 works fine - I've provided the link below

http://www.freedownloadscenter.com/Utilities/System_Maintenance_and_Repair_Utilities/Registrar_Lite.html
0
 
LVL 35

Expert Comment

by:Raynard7
ID: 17896204
Noting that this is not a hacking issue - but a way to access your own registry on your own computer
0
 

Author Comment

by:kes3
ID: 17896338

I'd prefer to use a stand alone tool - apart from the fact I cannot install the above.

...It's an ex corporate box i got for £100 inc TFT monitor when they off loaded when going through the 3 year upgrade cycle and I don't want to rebuild : no time :-(   ).

I'd really perfer a script that will unlock it.


 
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
LVL 38

Assisted Solution

by:Shift-3
Shift-3 earned 250 total points
ID: 17898505
Your script is correct.  The reason for the error is that your account does not have permission to modify that registry key.  You will not be able to change the value unless you can log on with an account that has permission to it.
0
 

Author Comment

by:kes3
ID: 17905905

So how do I give myself admin privilidges ?
0
 

Author Comment

by:kes3
ID: 19520546
Thanks for the help folks...
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to the following problem (not exclusive but here) on Windows: Users need our support and we supporters often use global administrative accounts to do this. Using these accounts safely is a real challenge. Any admin who takes se…
No security measures warrant 100% as a "silver bullet". The truth is we also cannot assume anything but a defensive and vigilance posture. Adopt no trust by default and reveal in assumption. Only assume anonymity or invisibility in the reverse. Safe…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question