开发者

Error when executing .vbs or .wsf

开发者 https://www.devze.com 2023-03-26 20:03 出处:网络
I get an error eve开发者_Python百科rytime I start a .vbs Script. Double-click: Skriptmodul \"VBScript\" für Skript \"C:\\test.vbs\" wurde nicht gefunden.

I get an error eve开发者_Python百科rytime I start a .vbs Script. Double-click:

Skriptmodul "VBScript" für Skript "C:\test.vbs" wurde nicht gefunden.

Error when executing .vbs or .wsf

Run via CMD:

CScript-Fehler: Skriptmodul "VBScript" für Skript "C:\test.vbs" wurde nicht gefunden.

I executed "regsvr32.exe VBScript", "regsvr32.exe jscript.dll" and "regsvr32.exe jscript.dll" via admin CMD (in system32) and both got registered correctly. I checked file date and size of the .dlls with other Windows clients, they match exactly. Active Scripting and Java Applets are enabled in the internet options.

Searching with System File Checker (sfc.exe) for corrupted system files found some, repaired them, nothing changed after reboot.

Similiar problem with .wsf Scripts. This error appears no matter which .wsf script I execute.

Error when executing .vbs or .wsf

Guys, any idea how to fix this one?


Okay I fixed it myself:

In the registry, this key

HKEY_CLASSES_ROOT\CLSID\{B54F3741-5B07-11cf-A4B0-00AA004A55E8}\InprocServer32

was modified by our antivirus vendor McAfee -.-

The (standard) key was changed to

C:\\Program Files\\Common Files\\McAfee\\SystemCore\\ScriptSn.20110513152421.dll

and no changes were allowed so that regsvr32 could not update this key.

I had to modify the permissions on this reg key to get full access and changed it to

@="C:\\Windows\\system32\\vbscript.dll"

Both .vbs and .wsf scripts are working again! sigh I just hate McAfee in an enterprise environment.

I've writte down 6 possible solutions for this script problem here (but it's in german, sorry ^^): 6 solutions for .vbs and .wsf script error

0

精彩评论

暂无评论...
验证码 换一张
取 消