Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Task Scheduler Exit Code

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 21-04-2007
GMC
 
Posts: n/a
Task Scheduler Exit Code

Windows Server 2003

Hello all,

Where can I find the meaning of the task scheduler exit codes? I have exit
codes of 0,1,2 and 3, but cannot find a description of the meaning.

Thanks,

GMC



Reply With Quote
  #2  
Old 21-04-2007
Herb Martin
 
Posts: n/a
Re: Task Scheduler Exit Code

"GMC" <gmc@lnospam.org> wrote in message
news:uKGbt06gHHA.208@TK2MSFTNGP05.phx.gbl...
> Windows Server 2003
>
> Hello all,
>
> Where can I find the meaning of the task scheduler exit codes? I have
> exit
> codes of 0,1,2 and 3, but cannot find a description of the meaning.


Specifically where are you getting these codes? From SchTasks.exe?

Somewhere else?


--
Herb Martin, MCSE, MVP
Reply With Quote
  #3  
Old 21-04-2007
GMC
 
Posts: n/a
Re: Task Scheduler Exit Code

I go to scheduled tasks and then click on the Advanced tab and then click
view log and it says: " The task completed with an exit code of (0) or (1)
or (2) or (3) or (4).

Or I can just look at the scheduled tasks and in the results column it says
0x1 or 0x2 or 0x3 or 0x4.

gmc


Reply With Quote
  #4  
Old 21-04-2007
Pegasus \(MVP\)
 
Posts: n/a
Re: Task Scheduler Exit Code


"GMC" <gmc@lnospam.org> wrote in message
news:uKGbt06gHHA.208@TK2MSFTNGP05.phx.gbl...
> Windows Server 2003
>
> Hello all,
>
> Where can I find the meaning of the task scheduler exit codes? I have

exit
> codes of 0,1,2 and 3, but cannot find a description of the meaning.
>
> Thanks,
>
> GMC
>
>


Task Scheduler exit codes are generated by the applications
you run under the Scheduler, not by the scheduler itself. Redirect
the standard & error output of these applications to a log file
to see what's going on.


Reply With Quote
  #5  
Old 21-04-2007
Herb Martin
 
Posts: n/a
Re: Task Scheduler Exit Code


"Pegasus (MVP)" <I.can@fly.com> wrote in message
news:uMn$Nf7gHHA.4520@TK2MSFTNGP02.phx.gbl...
>
> "GMC" <gmc@lnospam.org> wrote in message
> news:uKGbt06gHHA.208@TK2MSFTNGP05.phx.gbl...
>> Windows Server 2003
>>
>> Hello all,
>>
>> Where can I find the meaning of the task scheduler exit codes? I have

> exit
>> codes of 0,1,2 and 3, but cannot find a description of the meaning.
>>
>> Thanks,
>>
>> GMC
>>
>>

>
> Task Scheduler exit codes are generated by the applications
> you run under the Scheduler, not by the scheduler itself. Redirect
> the standard & error output of these applications to a log file
> to see what's going on.


Redirecting both is fairly trick, even order dependent:

task 1>t.txt 2>&1

The 2 or StdError must come SECOND on the command line whether
this seems to make sense or not.


Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Task Scheduler Exit Code"
Thread Thread Starter Forum Replies Last Post
Task Scheduler - task creation error on Windows 2008 Server x64 $Bradan$ Operating Systems 5 29-09-2011 01:03 PM
The task completed with an exit code of (1) Ikram Active Directory 3 03-09-2009 05:45 AM
Task Scheduler Error Code information? Peter Meinl Vista Help 4 28-01-2009 03:28 AM
Scheduled Task Exit Code Rich Young Windows Server Help 6 07-01-2008 11:41 AM
Scheduled Task error code:The task completed with an exit code of Teo Chee Yang Windows Server Help 7 26-02-2007 06:01 PM


All times are GMT +5.5. The time now is 11:24 PM.