how to restore regedit, taskmanager, ang msconfig using vbscript
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!



Techie
Nice one man by using vb script..
Thks 4 vistin my site
chong!
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!
Adam
amazing,
I wish I would learn real programming one day,
Qbasic didn’t helped me..too primitive.
thanks for sharing your knowledge
rayland
@chong
It must be the quotes when you pasted it over to notepad. try replacing all quotes with the standard quote
@adam
welcome!
BP
thanks alot. i’ve wasted 2 days on this problem, and your code did the trick in seconds. any help on restoring display options?
rayland
@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.
Unwired
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
rayland
@ 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.
Unwired
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
helpndee
thnx 4 da tip, a simple fix 4 a complex os issue. I am most thanxful.
AHMED
line 13 character 28
comming an error