We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

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

Medium Priority
1,083 Views
Last Modified: 2012-05-11
Hello,

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.

Jin
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2014
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
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.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.