Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

No matter what I do, my task exits with "Last Run Result" 0x80042000. It claims to pass successfully, but it's not doing anything -- the process appears for an instant and then disappears. If I do Start/Run and type in the exact same command, then that works fine. I've setup the same task in Server2003 and it works fine there. I'm logged in as Administrator, so I don't think UAC is the problem.

I've searched for this code 0x80042000 and it's nowhere to be found. Anyone know what is means?

share|improve this question
    
What kind of task is your job? If it's a script, what kind of script? –  splattne Jun 8 '09 at 9:39
    
Do you have the scheduled task set to run as Administrator, or as some particular user? –  Laura Thomas Jun 15 '09 at 19:36
add comment

2 Answers 2

up vote 1 down vote accepted

Okay, here's what happened:

I was confused by the "Last Run Result", thinking that this was a Server 2008/Task Scheduler return code. Actually, it's the return code from the application that was run. So the Task "History" says "successfully finished", but the "Last Run Result" = 0x80042000.

So, once I figured that out, the answer was easy -- this is an InstallShield app and 0x80042000 is the return code for when the app encounters an InstallScript "abort" command.

share|improve this answer
add comment

Check this out for the error codes:

http://support.microsoft.com/kb/308558

I would guess that you're running into an environment issue that you don't have when run as yourself. Can you post the command you're trying to run? There might be a run silently switch.

Let me know!

Cheers, -Mathew

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.