Solved

Windows scheduled Task result

Posted on 2010-09-08
4
421 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
  • 2
4 Comments
 
LVL 82

Accepted Solution

by:
oBdA earned 333 total points
Comment Utility
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:huslayer
huslayer earned 167 total points
Comment Utility
YES, there's a reference for all the exit codes , HERE

0
 
LVL 82

Assisted Solution

by:oBdA
oBdA earned 333 total points
Comment Utility
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
Comment Utility
ok. Thanks for the details and nature of the errors.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now