How to enable/disable Registry Editor
Monday, December 1, 2008
Today I unfortunately affected by some unknown virus. My Windows XP's face a terrible problem. The "Folder Options" in "Tools" menu is not visible. Even It can't be accessed from Control Panel. Then I tried the Registry Editor to change the registry values which is assigned for enable/disable the Folder Options. But my fate, "Registry Editor" is also disabled. I screwed on that problem.
So I used the Googling to overcome my problem. I summarized all the steps that I tried for this enable/disable Registry Editor problem.
Step 1 :
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
Copy this codes and save it as a .vbs file.
Step 2 :
Now double click on that file. Now your registry can be editable. That is Registry Editor is enable.
So this is the simple step to enable/disable the registry editor.
This Articles was posted on 7:37 AMMonday, December 1, 2008
|
Labels:
Experiences,
Tech,
Virus,
Virus Removal
|
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment