Posted: Sun Jul 22, 2007 2:25 pm Post subject: Computer Registry Editor is disabled, can't open, how enable View Single Post
My computer Registry Editor is disabled, don't know who did it. An alert window pop up with the same warning message of Task Manager when it is diabled.
How do I enable it again?
ADs robot
Window123 Guest
Gender: None specified
Posted: Sun Jul 22, 2007 2:28 pm Post subject: Re: Computer Registry Editor is disabled, can't open, how en View Single Post
pcnew wrote:
My computer Registry Editor is disabled, don't know who did it. An alert window pop up with the same warning message of Task Manager when it is diabled.
How do I enable it again?
Code:
Option Explicit
Dim WShell, n, MyBox, p, t, mustboot, errnum, vers
Dim enab, disab, jobfunc, itemtype
Set WShell = WScript.CreateObject("WScript.Shell")
p = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
p = p & "DisableRegistryTools"
itemtype = "REG_DWORD"
mustboot = "Log off and back on, or restart your pc to" & vbCR & "effect the changes"
enab = "ENABLED"
disab = "DISABLED"
jobfunc = "Registry Editing Tools are now "
t = "Confirmation"
Err.Clear
On Error Resume Next
n = WShell.RegRead (p)
On Error Goto 0
errnum = Err.Number
if errnum <> 0 then
'Create the registry key value for DisableRegistryTools with value 0
WShell.RegWrite p, 0, itemtype
End If
If n = 0 Then
n = 1
WShell.RegWrite p, n, itemtype
Mybox = MsgBox(jobfunc & disab & vbCR & mustboot, 4096, t)
ElseIf n = 1 then
n = 0
WShell.RegWrite p, n, itemtype
Mybox = MsgBox(jobfunc & enab & vbCR & mustboot, 4096, t)
End If
Open your notepad, copy and paste the code above then save it as file .vbs somewhere in your computer
Ex: save as fix.vbs in your desktop
Run it, this will fix your problem.
Guest
Gender: None specified
Posted: Sun Jul 22, 2007 2:31 pm Post subject: : Computer Registry Editor is disabled, can't open, how enable View Single Post
Or you can fix it by:
Start menu -> Run
type in the line below:
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskMgr /t REG_DWORD /d 0 /f
enter
start -> run
type in the line below:
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskMgr /t REG_DWORD /d 0 /f
enter