Solved

Unlock registry editing tools with vbs

Posted on 2006-11-07
6
2,589 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
  • 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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 camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Join & Write a Comment

The term "Bad USB" is a buzz word that is usually used when talking about attacks on computer systems that involve USB devices. In this article, I will show what possibilities modern windows systems (win8.x and win10) offer to fight these attacks wi…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now