• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 980
  • Last Modified:

What can I do about Windows Scripting Host failure (see #2 below)?

Facts:

1)      Javascript works:
C:\1>type msg.js
WScript.Echo("Test JS")
C:\1>cscript msg.js //nologo
Test JS

2)      VBScript does not:
C:\1>type msg.vbs
WScript.Echo("*** test VBScript")
C:\1>cscript msg.vbs //nologo
CScript Error: Can't find script engine "VBScript" for script "C:\1\msg.vbs".

3)      Both dll’s seem to be in place:
C:\1>dir c:\windows\system32\*.dll|findstr -i "vbscript\. jscript\."
08/31/2011  10:24 PM           716,800 jscript.dll
07/24/2011  03:37 PM           420,864 vbscript.dll

4)      The following command

C:\1>regsvr32 c:\windows\system32\vbscript.dll

               displays “…succeeded” but aforementioned in sect. 2 command returns the same error message "Can't find..." after that.
      
5) System File Checker does not help much either:
C:\1>sfc /scannow
Beginning system scan.  This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection found corrupt files but was unable to fix some of them.
Details are included in the CBS.Log windir\Logs\CBS\CBS.log. For example
C:\Windows\Logs\CBS\CBS.log

C:\1>cscript msg.vbs //nologo
CScript Error: Can't find script engine "VBScript" for script "C:\1\msg.vbs".

C:\1>


Please help (I am kind of an expert by myself -- 10+ years with Windows, but not sure what to do)

CBS.log
0
midfde
Asked:
midfde
  • 3
1 Solution
 
Rahul_GadeCommented:
Usually this happens if your antivirus vendor has replaced the registry pointer to his dll, which is supposed to act as proxy and provide the script scanning before execution. So check out with the path in the registry at :
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B54F3741-5B07-11cf-A4B0-00AA004A55E8}\InprocServer32
Which should be something like C:\WINDOWS\system32\vbscript.dll, which you registered using regsvr32. If not, then correct it to solve your problem.

-Rahul
0
 
midfdeAuthor Commented:
Thank you Rahul Gade.
>>...should be something like...

Sorry, it is not.
Please see the attached image and help.
1.jpg
0
 
midfdeAuthor Commented:
I mean, what are the NAME and the TYPE for the value you are proposing to insert.
0
 
midfdeAuthor Commented:
Thanks.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now