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 “”
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.
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.
After making the change vbscript’s started running again!!
“Can’t find script engine “VBScript” for 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.
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!!
No comments:
Post a Comment