unable to run regedit command as an administrator

P

pavansagar

hi all group members,
I am using winXP and recently my system was infected with virus.I
cleaned the virus. From then onwards Folder Options was missing under
tools and in the control panel. I found a valuable information from
this group to edit the registry. what is the problem is i was unable to
run the regedit command.Eventhough I am logging as administrator,it is
displaying a message as
"registry editing has been disabled by your administrator".
please help me how to solve this problem.I have important data in
the hidden files.

bye

pavansagar

(e-mail address removed)
 
B

bradly

Hi pavansagar,

What you need to do is open up notepad, and paste the following code
in:

'Enable Registry Editing
'© Veegertx - 06/27/2003
'This code may be freely distributed/modified
On Error Resume Next
'Prevents errors from values that don't exist
Set WshShell = WScript.CreateObject("WScript.Shell")
'Delete DisableRegistryTools registry values

WshShell.RegDelete
"HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools"
WshShell.RegDelete
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools"

'display message
Message = "You should have access to Regedit now"

X = MsgBox(Message, vbOKOnly, "Done")
Set WshShell = Nothing
Set fso = Nothing


<<<<<END COPY ABOVE HERE


Now save it as "enableregistry.vbs" (make sure "save as
type" is "all files").

Double click that new vbs file and that should let you back into the
registry.

bradly
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top