Can’t find script engine “VBScript” for script error on Windows 7 and Windows 2008
We had recently received an error when upgrading a product and the script used for the upgrades was VBScript. When running the script there was a few systems that displayed the following error.
“Can’t find script engine “VBScript” for script “<path to script>”
Upon doing a bit of digging I found that most times this error is resolved by re-registering the vbscript.dll. We ran the following commands.
- Click on start button, type cmd. In the search result right-click on cmd and selectRun as administrator.
- Type cd %windir%\system32 and press enter.
- Type regsvr32 vbscript.dll in command prompt and press enter.
If the registration was successful, you should now see the following message:
DllRegisterServer in vbscript.dll succeeded.
On some of the servers this fixed the issue and scripts ran again. On the systems that still didn’t work did a bit more digging and found that a recent McAfee upgrade changed a registry key for vbscript. Here’s how to correct it.
- On the problem machine, log in as an administrator.
- Open the registry editor (regedit.exe) and navigate to the following registry key.[HKEY_CLASSES_ROOT\CLSID\{B54F3741-5B07-11cf-A4B0-00AA004A55E8}\InprocServer32]
- check the path of the Default registry key, it will most likely point to the path of your Anti-Virus Product.
- Right click on InprocServer32 and select permissions. Give the Administrators group full access.
- Then Modify the Default registry key and change the path to C:\Windows\system32\vbscript.dll
- Change the permission back.
After making the change vbscript’s started running again!!
15 Responses to “Can’t find script engine “VBScript” for script error on Windows 7 and Windows 2008”
Trackbacks/Pingbacks
- Unable to Find VBScript Script Engine? - Nicole Welch - Site Home - MSDN Blogs - […] VBScript.dll, but that didn't help. After some careful searching, we found this article http://lifeofageekadmin.com/cant-find-script-engine-vbscript-for-script-error-on-windows-7-and-windo… Basically the antivirus software had…
Ping back… http://blogs.msdn.com/b/nicole_welch/archive/2015/06/16/unable-to-find-vbscript-script-engine.aspx
This worked! Thank you so much.
3rd solution worked for me, thank you very much
Beautiful – thank you. Regedit worked!
The change of registry key helped me, thank you very much.
This worked! Thank you
I logged in with my local admin rights and was unable to change the administrator permissions for that registry key. :S I get “access denied”. Is there some way to override that?
What version of Windows Server?
Windows 10. Unable to save permission changes on Inprocserver32.
Access denied.
Did you get an answer? I also can’t change that value even when logged in and running cmd as an administrator
The change of registry key helped me, thank you very much.
It worked! Thank you!!!!!
It is work!
Thanks
Also check [HKEY_CLASSES_ROOT\VBScript\CLSID]
@=”{B54F3741-5B07-11cf-A4B0-00AA004A55E8}”
The Default name with type REG_SZ and data of
{B54F3741-5B07-11cf-A4B0-00AA004A55E8} was missing in the registry. Adding the string fixed the issue for me.
It worked by changing the registry, but i had to change the permissions, check this link:
https://www.howtogeek.com/262464/how-to-gain-full-permissions-to-edit-protected-registry-keys/