how to restore regedit, taskmanager, ang msconfig using vbscript

Written on November 5, 2007 – 8:53 am | 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

  1. 10 Responses to “how to restore regedit, taskmanager, ang msconfig using vbscript”

  2. By Techie on Nov 6, 2007

    Nice one man by using vb script..

    Thks 4 vistin my site

  3. By chong! on May 23, 2008

    tnx man, but i receive and error which says when i copied your program above,..prompts says there’s something wrong in line 1 character 37..

    it seems to be the punctuation mark..
    but it works after i downloaded your restore.vbs

    tnx!

  4. By Adam on Aug 1, 2008

    amazing,
    I wish I would learn real programming one day,
    Qbasic didn’t helped me..too primitive.
    thanks for sharing your knowledge

  5. By rayland on Aug 1, 2008

    @chong

    It must be the quotes when you pasted it over to notepad. try replacing all quotes with the standard quote :D

    @adam

    welcome!

  6. By BP on Aug 6, 2008

    thanks alot. i’ve wasted 2 days on this problem, and your code did the trick in seconds. any help on restoring display options?

  7. By rayland on Aug 7, 2008

    @BP

    i’m guessing you are missing some tabs in the “display properties” dialog. can’t change wallpaper, resolution etc.? if that’s the case, download this script and run it.

  8. By Unwired on Sep 9, 2008

    I Downloaded your script but still I can’t restore….all the malware has been deleted. “NEWFOLDER.exe CALCULATOR.exe and FILE.EXE” it is a brontok virus btw, ESET can’t do the job…grrr

  9. By rayland on Sep 9, 2008

    @ Unwired
    there might still be some residual files of the malware on your computer. download and install Malwarebytes’ Anti-Malware. perform full scan and fix all detected malwares. brontok should be cleaned by that.

  10. By Unwired on Sep 12, 2008

    good day,
    i was able to use your program to restore the functions….thanks for that anyway..

    one program i haven’t killed the setup.exe…after deleting it, i was able to access my TM and msconfig, I deleted all the startup entries related to the malware and search and deleted those exes

    works fine now…

    ~ Unwired

  11. By helpndee on Oct 6, 2008

    thnx 4 da tip, a simple fix 4 a complex os issue. I am most thanxful.

Post a Comment

*
To prove you're a person (not a spam script), type the answer to the math equation shown in the picture. Click on the picture to hear an audio file of the equation.
Click to hear an audio file of the anti-spam equation

Want to subscribe?

 Subscribe in a reader Or, subscribe via email:
  

Find entries :