vbscript run from Task Scheduler does not appear to end
Posted on 2016-09-07
I have a VB script file which runs properly when I simply click on the file and completes within 30 seconds.
But when I run this script from Task Scheduler, it hangs, with a status of "Running". When I look at the History, it looks like (in reverse order)
2:17:13 110 Task triggered by user
2:17:13 319 Task Engine received message to start
2:17:13 100 Task Started
2:17:13 200 Action started
2:17:13 129 Created task Process
at 2:34 it still has a status of "Running"
There is a wscript.exe file showing up in the running processes in my Task Manager. When I manually remove that file from the task manager and refresh the Task Scheduler, the status of the task changes to "Ready"