1

I have configured 3 LAN computers to run scheduled tasks, however on all of them (Windows 7 & Windows 8) the scheduled task will fail with infamous 0x1.

  • The task is set to run, whether user is logged on or not, with highest privileges; the user account selected to run scheduled task, is an Administrator of the local computer & part of the Domain Admins group on the LAN server (w2k3 R2): enter image description here

  • The scheduled task is a script, stored on the Server, in a folder accessible by the user set to run the scheduled task, has a length of <8 chars, without spaces, without quotes, and has no path within the command itself, but within the "Start in" field; the "start in" field contains a path with no spaces, no quotes, coded with UNC style: enter image description here

  • Other settings: enter image description here enter image description here

  • Manually run the scheduled task. The event log should show more details on why it is failing. Also, if you run the script outside of the scheduled task, does it work? – Sorean Nov 11 '13 at 16:58
  • No events in the System or Application Event Viewer's sections - Yes, the script will run with user interaction – Riccardo Nov 11 '13 at 17:03
  • Look at the history tab in the task scheduler. There should be more information in there. – Sorean Nov 11 '13 at 17:10
  • History was disabled (dunno why) - I have discovered that when running the script accessing the filder with UNC style, CMD will throw an error "CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory." - Following this article partially solved the problem: support.microsoft.com/kb/156276 – Riccardo Nov 11 '13 at 17:28
  • 1
    What defintelly helped was the the task history! Thanks a lot! @jkm Post Task history as the possible answer and I will vote for it! Thanks again! – Riccardo Nov 11 '13 at 17:29
0

Look at the history tab in the task scheduler. There should be more information in there. That will give you a starting point to why it is failing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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