Solved

Windows scheduled Task result

Posted on 2010-09-08
4
430 Views
Last Modified: 2012-05-10
the log of the windows scheduled task gives the following:

Result: The task completed with an exit code of (0).

what are the other codes? is there a reference for this?

thanks
0
Comment
Question by:anushahanna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 84

Accepted Solution

by:
oBdA earned 333 total points
ID: 33627748
That's just the errorlevel that whatever program you've scheduled to run returned when it finished.
Since the errorlevel is program dependent, you'll have to check with the manufacturer of the program if the program returns an errorlevel (other than 0), and if so, what it means.
If you schedule the batch script below, for example, the task scheduler will display an exit code of 0x4D2 (=1234 in decimal).
@echo off
exit 1234

Open in new window

0
 
LVL 21

Assisted Solution

by:Jason Yousef, MS
Jason Yousef, MS earned 167 total points
ID: 33627901
YES, there's a reference for all the exit codes , HERE

0
 
LVL 84

Assisted Solution

by:oBdA
oBdA earned 333 total points
ID: 33627990
Nope, that is NOT a reference for "all the exit codes"; these are, as the title says, "Windows System Error Codes" (the same ones that can be obtained localized using "net helpmsg <error code>"). A default OS application like "net.exe" will usually exit with one of these, but the batch script above will certainly not have suffered from "1234 No service is operating at the destination network endpoint on the remote system".
A programmer can decide which errorlevel his application will return under which conditions. robocopy.exe, for example, will return with a bitmask value indicating what happened during the copy and whether there were serious failures.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33629538
ok. Thanks for the details and nature of the errors.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question