Solved

Unlock registry editing tools with vbs

Posted on 2006-11-07
6
2,610 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 our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

As I write this article, I am finishing cleanup from the Qakbot virus variant found in the wild on April 18, 2011.  It was a messy beast that had varying levels of infection, speculated as being dependent on how long it resided on the infected syste…
In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

730 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