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

Posted on 2011-10-30
Last Modified: 2012-05-12

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:\1>cscript msg.vbs //nologo
CScript Error: Can't find script engine "VBScript" for script "C:\1\msg.vbs".


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

Question by:midfde
    LVL 7

    Accepted Solution

    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 :
    Which should be something like C:\WINDOWS\system32\vbscript.dll, which you registered using regsvr32. If not, then correct it to solve your problem.

    LVL 1

    Author Comment

    Thank you Rahul Gade.
    >>...should be something like...

    Sorry, it is not.
    Please see the attached image and help.
    LVL 1

    Author Comment

    I mean, what are the NAME and the TYPE for the value you are proposing to insert.
    LVL 1

    Author Closing Comment


    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    In a hurry?.. scroll down to "HERE's HOW TO DO IT" Section. Greetings All, I was going to post this as question/solution, but its seems more appropriate as an article considering its length.  I felt it important to illucidate all the details c…
    So who is this article for? If you are like most of the computer users out there, you probably only realize the meaning of 'System maintenance' after something goes wrong. This article is for you if you care about keeping your system working opti…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now