I recieve a wscript.exe is missing.... when automated VB script is launched via Windows Command Script

Posted on 2011-04-27
Last Modified: 2012-05-11

I have been backing up databases automatically everyday by creating a VBScript and using Task Scheduler to execute these scripts. However, until recently I have been receiving this error message "Login failed: The config file c:\windows\syswow64\wscript.exe.config does not exist or does not contain the useLegacyV2RuntimeActivationPolicy setting".

How do I recover this wscript.exe or make it contain the useLegacyV2RuntimeActivationPolicy setting? The last change I made to the server is that I upgraded to .NET 4.0.

Any insight to this issue will be helpful, thanks.

Question by:Jintonix415
    LVL 65

    Accepted Solution

    Hi, try creating a file called wscript.exe.config and put this in it:

    <startup useLegacyV2RuntimeActivationPolicy="true" >



    Author Closing Comment

    I was able to locate the wscript.exe file that included the vlegacy setting in another drive. I initially tried your suggestion and that worked as well.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
    In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    755 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

    22 Experts available now in Live!

    Get 1:1 Help Now