Windows way to Digital Learning……

I have seen many users facing a problem to run a (.bat) batch file using Windows Server 2008 R2 task scheduler returns with an error code 0x1.


First thing to remember, instead of giving full path in the program/script textbox, use the Start in (Optional) field to put the folder that the .bat file.

Second thing, make sure you select the ‘Run with highest privileges‘ check box.

Hope this trick will be helpful.


Comments on: "Scheduled task error 0x1" (4)

  1. I was having this problem with a scheduled task that ran a batch file, and adding the path to “Start in (optional)” instead of using the full path in “Program/script” resolved the issue.

    They should really rename the prompt to “Start in (you probably want this)”


  2. Wow this really did the trick with the batch I was trying to use. It’s even the simplest of batch files but it wouldn’t work without step 1. Thanks a lot!

  3. Thanks for sharing this it really helped solving the problem

  4. Really helpful thank you for this important point. I solved my script too by using the Start if Optional which is not at all optional.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

%d bloggers like this: