Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links



Scheduled Tasks result codes

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 24-02-2009
jmrzx
 
Posts: n/a
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.
Reply With Quote
  #2  
Old 24-02-2009
jmrzx
 
Posts: n/a
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.

Reply With Quote
  #3  
Old 25-02-2009
Pegasus \(MVP\)
 
Posts: n/a
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.


Reply With Quote
  #4  
Old 25-02-2009
jmrzx
 
Posts: n/a
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.
>
>
>

Reply With Quote
  #5  
Old 25-02-2009
Pegasus \(MVP\)
 
Posts: n/a
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.
>>
>>
>>



Reply With Quote
  #6  
Old 25-02-2009
jmrzx
 
Posts: n/a
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.
> >>
> >>
> >>

>
>
>

Reply With Quote
  #7  
Old 25-02-2009
Pegasus \(MVP\)
 
Posts: n/a
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.


Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Scheduled Tasks result codes"
Thread Thread Starter Forum Replies Last Post
Scheduled Tasks result code meanings ag@work.org Windows Server Help 4 17-11-2011 06:31 PM
Windows Scheduled Tasks don't luanch if tasks not finished Andy Candy Windows Software 3 21-08-2009 12:47 PM
Scheduled Tasks result - 0x1 z4f786 Windows XP Support 6 01-06-2009 09:08 PM
Scheduled Tasks: Notify me of missed tasks Swifty Windows XP Support 2 02-01-2009 02:45 PM
Schedule tasks Last Result 0x2 CarynCondon Window 2000 Help 3 28-02-2005 11:43 PM


All times are GMT +5.5. The time now is 06:10 AM.