"Luke" <Luke@newsgroup> wrote in message
> We have a number of 2003 servers which run lots of scheduled tasks around
> the clock. We also have some 2008 servers which do the same.
> We use SCHTask.exe from the 2008 servers, to query the scheduled tasks on
> the 2003 servers, and then look through the output of this query for
> which is then used elsewhere to alert us that a scheduled task has failed
> a given machine, and what the task is called.
> The problem we are having is that if a scheduled task runs sucessfully on
> 2003 server, but has a NON ZERO return code, when SCHTask is run from a
> server and queries that 2003 server, the output contains FAILED TO START
> that tasks status.
> Examining the task on the 2003 server from the task scheduler shows that
> task completed successfully.. and checking the tasks logs also indicate
> everything was fine.
> This APPEARS to be a bug when SCHTASK is run from 2008 server against a
> server which has non zero return code tasks that have run.
> Has anyone else had this problem? Its annoying because it keeps reporting
> false job failures from our monitoring system.
A non-zero return code usually indicates a problem with the command(s)
you're trying to run. What are they?