Solved

Unlock registry editing tools with vbs

Posted on 2006-11-07
6
2,606 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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 Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

827 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