Angelo's Corner

Activating regedit (Enable/Disable registry tools)

November 20, 2009

The value:

The following values lock the registry editing tools when they are set to 1 (they are DWORD values) : HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools for the current user and HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools for all users (doesn’t work on Windows XP though). However, once one of them has been set to 1, you can’t use regedit to simply remove them.

So, here are 2 methods.

The methods

1. A reg file ! Tested and working on Win 2k, not working on Win XP. You simply need to create and launch the following reg file : REGEDIT4 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System] “DisableRegistryTools”=- [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] “DisableRegistryTools”=-

2. A VBS (Visual Basic Script) Tested and working on Win 2k and XP.

In notepad, copy/paste the following script, and save the file with a .vbs extension,

then go to cmd.exe and run it :

‘Enable/Disable Registry Editing tools

Option Explicit ‘Declare variables Dim WSHShell, rr, rr2, MyBox, val, val2, ttl, toggle

Dim jobfunc, itemtype

On Error Resume Next Set WSHShell = WScript.CreateObject(”WScript.Shell”) val=”HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools” val2 = “HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools” itemtype = “REG_DWORD”

jobfunc = “Registry Editing Tools are now ” ttl = “Result” ‘reads the registry key value. rr = WSHShell.RegRead (val)

rr2 = WSHShell.RegRead (val2)

toggle=1

If (rr=1 or rr2=1) Then

    toggle=0

    If toggle = 1 Then

            WSHShell.RegWrite val, 1, itemtype WSHShell.RegWrite val2, 1,

            itemtype Mybox = MsgBox(jobfunc & “disabled.”, 4096, ttl)

    Else WSHShell.RegDelete val WSHShell.RegDelete val2 Mybox = MsgBox(jobfunc & “enabled.”, 4096, ttl)

End If

Posted by angelohere at 9:05 am | permalink

All comments are moderated. Your comments will not appear here unless approved by the blog owner. Thank you.

Add a comment








     

November 2009
M T W T F S S
« Oct   May »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

About Me

I am Angelo F. Matildo, my nickname is ngel. Currently, I am a systems developer in a company. This blog is primarily for me to post my researches,my some learnings,sharing and some random ideas. Most likely I'm not going to be commenting on things happening... As such it will most likely not be updated very often...

Message Board

mia:

hello mahal ko… congratulations!

yance_angelo::

yance pg.leave ug message dri yance..
mwahmwahmwah

angelohere:

asa ka pa?

angelo:

hello..

support:

Congratulations, you’ve just completed the installation of this shoutbox.

support:

Hi! Your shoutbox is working fine!

Leave a message ▼

Recent Photo

Strange Google Maps

Subscribe

Technorati
Bloglines