?
Solved

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

Posted on 2011-04-27
2
Medium Priority
?
910 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
0
Comment
Question by:Jintonix415
2 Comments
 
LVL 65

Accepted Solution

by:
RobSampson earned 1500 total points
ID: 35480029
Hi, try creating a file called wscript.exe.config and put this in it:

<startup useLegacyV2RuntimeActivationPolicy="true" > 
</startup>

Regards,

Rob.
0
 

Author Closing Comment

by:Jintonix415
ID: 35692281
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.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Integration Management Part 2
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

830 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