Failing Schedule Task

Posted on 2012-08-31
Last Modified: 2012-11-16

Can anyone tell me how to find out why a schedule task keeps failing? is an error message generated?

Question by:ac_davis2002
    LVL 5

    Accepted Solution

    if you look at the Scheduled task, there is a column that shows an exit code or result code. You need to find that and see why it fails
    LVL 10

    Assisted Solution


    Have you run your schedule task using admin account.. ?

    with option (run task whether user logged in or not option )
    LVL 13

    Assisted Solution

    Can you give the exitcode? It can also be that it requires admin authentication.

    What do you want to do with the task? Is it a script? Maybe you've missed something in it. It doesn't mean that it will run in your tasks if you can execute it. If it's a script I'd like to take a look at it.

    Author Comment

    ok, the task runs daily and most days it works just sometimes if fails..

    It runs as admin.

    where will i find the exit code?
    LVL 13

    Assisted Solution

    When you open your scheduled task. You'll see name, status, ...., result of last run.
    We'll need the result of the last run.

    Author Comment

    ok the last result is 0x0  ?

    but the status is running, should i create a new post when it next fails with the last result code?

    Author Comment

    I've requested that this question be closed as follows:

    Accepted answer: 0 points for ac_davis2002's comment #a38353526
    Assisted answer: 125 points for Sjizzel's comment #a38353372
    Assisted answer: 125 points for gaurav05's comment #a38353377
    Assisted answer: 125 points for Xaelian's comment #a38353445
    Assisted answer: 125 points for Xaelian's comment #a38353475

    for the following reason:

    thank you all!

    Author Closing Comment


    Expert Comment

    I ran into this issue with a batch file running as a scheduled task. It would run perfectly fine if I executed it manually but when I tried to run it as a schedule task it would fail instantly.  The batch file I was running was a simple Robocopy command.  I had created mapped drive letters to make it simple to write.  Come to find out when executing the command manually it recognized the mapped drive and performed the function flawlessly.  However when executing the command from a scheduled task the task could not recognize the drive mapping and therefore fail.  I used the full UNC name in the command and the task ran correctly. (ie robocopy \\server_name\share_name\path d:\local_path)

    I assume that when any executable file is run via a scheduled task it takes on a different personality or is not simply running the executable as you would from a command line.  Bottom line DO NOT run executables that include mapped drive letters...stick with the UNC name and the task will behave properly

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Want to promote your upcoming event?

    Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

    Have you considered what group policies are backwards and forwards compatible? Windows Active Directory servers and clients use group policy templates to deploy sets of policies within your domain. But, there is a catch to deploying policies. The…
    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
    The viewer will learn how to download, install and use CrashPlan from on Windows 7. Open your browser and go to Click get started, it’s free then Click the Download CrashPlan button: Click save in Internet Explorer, the…

    759 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