Link to home
Start Free TrialLog in
Avatar of Jintonix415
Jintonix415

asked on

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

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
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jintonix415
Jintonix415

ASKER

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.