Login to Account Create an Account
Task Schedule problem
Posted 30 November 2011 - 03:08 AM
If I manually run the script it works.
I have created a task in windows 2008 that will run the job every week.
The job seems to run in the job history but it doesn't do it's job.
How to track down this?
Posted 30 November 2011 - 09:11 AM
Posted 01 December 2011 - 01:47 AM
You should add some error handling/logging into your script, such as creating a token somewhere (easiest copying a text file) or even writing to the Application Event Log. Basically, if a .cmd fails, you won't see it as a fail in the job history, because a .cmd will always just do a successful exit under most circumstances, since cmd doesn't really pay attention to what you are having it do. If the programs themselves are failing, they would be the one to generate the error, not cmd, which is why it doesn't "fail" in the log.
This must have something to do with how windows 2008 start the script or something, because if I run it manually it works.
The same script did work on a windows 2003 as a schedule task.
Posted 01 December 2011 - 09:10 AM
Posted 01 December 2011 - 03:43 PM
Posted 05 December 2011 - 08:46 AM
Or check if the box "run with highest privilege" is checked.
It did the trick!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users