how to restore regedit, taskmanager, ang msconfig using vbscript

Posted on the November 5th, 2007 under techie by rayland

have you ever been hit by a virus then finding out you could no longer access regedit, msconfig, or you task manager? well don’t worry, i will teach you how to restore them with a little visual basic script. now to get on with it..

first you have to open notepad or any text editor you prefer.

then copy and paste the following code into your text editor

Set WshShell = WScript.CreateObject("WScript.Shell")
With WScript.CreateObject("WScript.Shell")

On Error Resume Next

.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools"
.RegDelete "HKCU\Software\Policies\Microsoft\Windows\System\DisableCMD"
.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr"
.RegDelete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\DisableTaskMgr"

End With

Mybox = MsgBox(jobfunc & enab & vbCR & "Restore_Finished!", 4096, t)

after that save it and name it as restore.vbs

actually you could name it anything you like. taskrestore.vbs , msconfigrestore.vbs , etc. but you need to have .vbs at the end so that it will save as a vbscript file.

after saving, locate the file and double click it to execute.

a pop-up will show saying that the restore is complete. thats it. your regedit, msconfig, and task manager has been restored.

for those who just want to download the file click here

If you like this post, you can buy me a cup of coffee or two. Thank you!

Related Posts with Thumbnails
  • Share/Bookmark

11 Responses to 'how to restore regedit, taskmanager, ang msconfig using vbscript'

  1. November 6, 2007 at 12:26 am
    Techie
  2. May 23, 2008 at 2:38 am
    chong!
  3. August 1, 2008 at 2:13 pm
    Adam
  4. August 1, 2008 at 10:46 pm
    rayland
  5. August 6, 2008 at 10:34 pm
    BP
  6. August 7, 2008 at 3:12 pm
    rayland
  7. September 9, 2008 at 3:49 pm
    Unwired
  8. September 9, 2008 at 6:13 pm
    rayland
  9. September 12, 2008 at 11:06 am
    Unwired
  10. October 6, 2008 at 4:01 am
    helpndee
  11. February 20, 2009 at 12:05 am
    AHMED