Results 1 to 7 of 7

Thread: Scheduled Tasks result codes

  1. #1
    jmrzx Guest

    Scheduled Tasks result codes

    Anyone know what the result codes for scheduled tasks are or where to find
    them? I'm getting "0x2" in the "Last Result" column for a job that is
    supposed to run, but am not sure what it means. I have an idea, but would
    like more details. This is Windows Server 2003 SP1. Thanks.

  2. #2
    jmrzx Guest

    RE: Scheduled Tasks result codes

    Ok, found an article (http://support.microsoft.com/kb/308558) but it doesn't
    list what "0x2" means. It does explain how to get to the scheduled tasks
    log, which shows "Result: The task completed with an exit code of (2)."

    Any ideas will be appreciated.

    "jmrzx" wrote:

    > Anyone know what the result codes for scheduled tasks are or where to find
    > them? I'm getting "0x2" in the "Last Result" column for a job that is
    > supposed to run, but am not sure what it means. I have an idea, but would
    > like more details. This is Windows Server 2003 SP1. Thanks.


  3. #3
    Pegasus \(MVP\) Guest

    Re: Scheduled Tasks result codes


    "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    news:8A48CB56-0B34-47D3-AE08-C32EC16A1FEC@microsoft.com...
    > Anyone know what the result codes for scheduled tasks are or where to find
    > them? I'm getting "0x2" in the "Last Result" column for a job that is
    > supposed to run, but am not sure what it means. I have an idea, but would
    > like more details. This is Windows Server 2003 SP1. Thanks.


    The code is generated by whatever you run inside the scheduled task.



  4. #4
    jmrzx Guest

    Re: Scheduled Tasks result codes

    Thanks. It's just a batch file that maps a drive and copies files to an
    archive repository (folder on another server.)

    "Pegasus (MVP)" wrote:

    >
    > "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    > news:8A48CB56-0B34-47D3-AE08-C32EC16A1FEC@microsoft.com...
    > > Anyone know what the result codes for scheduled tasks are or where to find
    > > them? I'm getting "0x2" in the "Last Result" column for a job that is
    > > supposed to run, but am not sure what it means. I have an idea, but would
    > > like more details. This is Windows Server 2003 SP1. Thanks.

    >
    > The code is generated by whatever you run inside the scheduled task.
    >
    >
    >


  5. #5
    Pegasus \(MVP\) Guest

    Re: Scheduled Tasks result codes

    Why don't you give yourself some eyes so that you can see what's going on?

    @echo off
    echo %date% %time% %UserName% >> c:\test.txt
    net use Q: \\Server\Share 1>>c:\test.txt 2>>&1
    xcopy /y /c "c:\Some Folder\*.txt" "q:\Some Directory" 1>>c:\test.txt
    2>>&1

    What is the contents of c:\test.txt?

    "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    news:BDACD5A5-9169-4497-A94A-5607B8FB91DB@microsoft.com...
    > Thanks. It's just a batch file that maps a drive and copies files to an
    > archive repository (folder on another server.)
    >
    > "Pegasus (MVP)" wrote:
    >
    >>
    >> "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    >> news:8A48CB56-0B34-47D3-AE08-C32EC16A1FEC@microsoft.com...
    >> > Anyone know what the result codes for scheduled tasks are or where to
    >> > find
    >> > them? I'm getting "0x2" in the "Last Result" column for a job that is
    >> > supposed to run, but am not sure what it means. I have an idea, but
    >> > would
    >> > like more details. This is Windows Server 2003 SP1. Thanks.

    >>
    >> The code is generated by whatever you run inside the scheduled task.
    >>
    >>
    >>




  6. #6
    jmrzx Guest

    Re: Scheduled Tasks result codes

    Tue 02/24/2009 15:41:15.81 USSTEST
    System error 67 has occurred.

    The network name cannot be found.

    Invalid drive specification
    0 File(s) copied

    We're having an issue where the Server and Workstation services won't stay
    running and I think this is related - the drive can't be mapped and thus the
    job fails. Thanks for your help, Pegasus.

    "Pegasus (MVP)" wrote:

    > Why don't you give yourself some eyes so that you can see what's going on?
    >
    > @echo off
    > echo %date% %time% %UserName% >> c:\test.txt
    > net use Q: \\Server\Share 1>>c:\test.txt 2>>&1
    > xcopy /y /c "c:\Some Folder\*.txt" "q:\Some Directory" 1>>c:\test.txt
    > 2>>&1
    >
    > What is the contents of c:\test.txt?
    >
    > "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    > news:BDACD5A5-9169-4497-A94A-5607B8FB91DB@microsoft.com...
    > > Thanks. It's just a batch file that maps a drive and copies files to an
    > > archive repository (folder on another server.)
    > >
    > > "Pegasus (MVP)" wrote:
    > >
    > >>
    > >> "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    > >> news:8A48CB56-0B34-47D3-AE08-C32EC16A1FEC@microsoft.com...
    > >> > Anyone know what the result codes for scheduled tasks are or where to
    > >> > find
    > >> > them? I'm getting "0x2" in the "Last Result" column for a job that is
    > >> > supposed to run, but am not sure what it means. I have an idea, but
    > >> > would
    > >> > like more details. This is Windows Server 2003 SP1. Thanks.
    > >>
    > >> The code is generated by whatever you run inside the scheduled task.
    > >>
    > >>
    > >>

    >
    >
    >


  7. #7
    Pegasus \(MVP\) Guest

    Re: Scheduled Tasks result codes


    "jmrzx" <jmrzx@discussions.microsoft.com> wrote in message
    news:EDBFD0DD-B666-47C0-AEED-9283D48DCBEE@microsoft.com...
    > Tue 02/24/2009 15:41:15.81 USSTEST
    > System error 67 has occurred.
    >
    > The network name cannot be found.
    >
    > Invalid drive specification
    > 0 File(s) copied
    >
    > We're having an issue where the Server and Workstation services won't stay
    > running and I think this is related - the drive can't be mapped and thus
    > the
    > job fails. Thanks for your help, Pegasus.


    Thanks for the feedback. It seems that making things visible highlighted the
    real cause of your problem.



Similar Threads

  1. Scheduled Tasks result code meanings
    By ag@work.org in forum Windows Server Help
    Replies: 4
    Last Post: 17-11-2011, 06:31 PM
  2. Windows Scheduled Tasks don't luanch if tasks not finished
    By Andy Candy in forum Windows Software
    Replies: 3
    Last Post: 21-08-2009, 11:47 AM
  3. Scheduled Tasks result - 0x1
    By z4f786 in forum Windows XP Support
    Replies: 6
    Last Post: 01-06-2009, 08:08 PM
  4. Scheduled Tasks: Notify me of missed tasks
    By Hrishia in forum Windows XP Support
    Replies: 1
    Last Post: 02-01-2009, 02:45 PM
  5. Where are kept Scheduled tasks?
    By Jack in forum Vista Help
    Replies: 8
    Last Post: 18-01-2008, 01:28 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,935,289.60541 seconds with 17 queries