Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > SCHTask.exe returns "Failed to start" from SVR 2008

Reply
Thread Tools Display Modes

SCHTask.exe returns "Failed to start" from SVR 2008

 
 
Luke
Guest
Posts: n/a

 
      05-28-2010

Hi,
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 errors,
which is then used elsewhere to alert us that a scheduled task has failed on
a given machine, and what the task is called.

The problem we are having is that if a scheduled task runs sucessfully on a
2003 server, but has a NON ZERO return code, when SCHTask is run from a 2008
server and queries that 2003 server, the output contains FAILED TO START for
that tasks status.

Examining the task on the 2003 server from the task scheduler shows that the
task completed successfully.. and checking the tasks logs also indicate that
everything was fine.

This APPEARS to be a bug when SCHTASK is run from 2008 server against a 2003
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.

Thanks!!
 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a

 
      05-28-2010



"Luke" <> wrote in message
news:327605C0-F8EA-4BD1-9A43-...
> Hi,
> 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
> errors,
> which is then used elsewhere to alert us that a scheduled task has failed
> on
> a given machine, and what the task is called.
>
> The problem we are having is that if a scheduled task runs sucessfully on
> a
> 2003 server, but has a NON ZERO return code, when SCHTask is run from a
> 2008
> server and queries that 2003 server, the output contains FAILED TO START
> for
> that tasks status.
>
> Examining the task on the 2003 server from the task scheduler shows that
> the
> task completed successfully.. and checking the tasks logs also indicate
> that
> everything was fine.
>
> This APPEARS to be a bug when SCHTASK is run from 2008 server against a
> 2003
> 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.
>
> Thanks!!


A non-zero return code usually indicates a problem with the command(s)
you're trying to run. What are they?

 
Reply With Quote
 
Luke
Guest
Posts: n/a

 
      05-31-2010
>
> A non-zero return code usually indicates a problem with the command(s)
> you're trying to run. What are they?
>


Its a batch file which calls a script.. but its all custom stuff.. but like
I say, from 2003 server it says everything is OK.. just 2008 comes up with
the problem.


 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a

 
      05-31-2010
This means that some of this custom stuff causes a problem under Windows
2008.

"Luke" <> wrote in message
news:EAAE5ACB-64D9-4035-9CAF-...
>>
>> A non-zero return code usually indicates a problem with the command(s)
>> you're trying to run. What are they?
>>

>
> Its a batch file which calls a script.. but its all custom stuff.. but
> like
> I say, from 2003 server it says everything is OK.. just 2008 comes up with
> the problem.
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone running Java on WS 2008? Dominick Windows Server 19 03-08-2010 04:46 PM
Same Issue....Please help! Quality Department Active Directory 0 02-13-2010 01:12 PM
Cluster Nodes Not Failing Over - Physical Disk Resource in gtlscot Clustering 20 01-19-2010 09:15 AM
I also have an error 646 in Windows update. Please help. Jose Windows Update 12 01-09-2010 01:00 PM
Running DOS Games under Vista Wogerwabby Windows Vista Games 45 11-10-2009 03:33 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59