Task Scheduler Exit Code 0x15?

Discussion in 'Windows Server' started by Jason Rosolowski, Sep 20, 2004.

  1. I've google'd this a bit, searched microsoft.com a bit, and can't find what
    this exit code means.

    Here's what I'm getting in the SchedLgU.txt....

    "Weekly Reboot.job" (shutdown.exe)
    Finished 9/18/2004 4:00:00 AM
    Result: The task completed with an exit code of (15).

    I have 2 other servers that run the same kind of job, and they are working
    fine.

    Any ideas on this exit code and/or why my server isn't rebooting when it's
    supposed to?

    Thanks!
     
    Jason Rosolowski, Sep 20, 2004
    #1
    1. Advertisements

  2. The Task Scheduler exit codes are set by the program invoked
    by the Task Scheduler, i.e. by shutdown.exe in your case. Add
    some simple diagnostics like so:

    @echo off
    echo %date% %time% Start of task > c:\test.log
    echo User=%UserName%, Path=%path% >> c:\test.log
    %SystemRoot%\system32\shutdown.exe /.. /.. /.. 1>>c:\test.log
    2>>c:\test.err
    echo %date% %time% End of task >> c:\test.log

    Now examine the two log files and all will become clear!
     
    Pegasus \(MVP\), Sep 21, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.