Scheduled Task won't launch .bat or .vbs
Posted on 2011-03-08
I can't get GPO-based Scheduled Task to launch .bat or .vbs on Windows7 client machine.
We have Sever2008 domain controllers - I'm using typical GPO settings (Computer -> Preferences -> Control Panel -> Scheduled Tasks) to set a task to run under "System" authority. I've tried making it launch .bat and .vbs files, and it won't do either. These are very basic (helloworld.bat and msgbox.vbs - have been scripting for years).
After reboot, I go into "Scheduled Tasks" on the client and I see the task. It kicks off at the appropriate time, and it shows "The task is currently running (0x41301)" - however, it never actually launches the batch file or the script (I've tried a variety of versions - either trying to run a .bat or a .vbs (vbs running under wscript.exe). I never get the response I expect to see (a popup box showing "Hello World") to indicate that the script/batch file is actually running.