I'm running into an error when scheduling a batch file to run every morning at 9:00am from the task scheduler on Windows 11. The error code I'm getting is 0x1, which seems to be a privilege issue when executing the task. I've tried changing the action and currently have the batch file path in the "Program/script line" with the file folder in the "Start in (optional)" field but this still is giving me the same error code.
If you have any further question or concern about this thread, please feel free to let us know.
Hi @
Anthony, Alexander
The error code 0x1 you are getting when scheduling a batch file to run every morning at 9:00am from the task scheduler on Windows 11 seems to be a privilege issue when executing the task. You can try the following steps to fix it:
Open the Task Scheduler and navigate to the task that is giving you the error.
Right-click on the task and select "Properties".
In the "General" tab, make sure that the "Run with highest privileges" checkbox is checked.
In the "Actions" tab, make sure that the "Program/script" field contains the correct path to the batch file you want to run.
In the "Start in (optional)" field, make sure that the folder path is correct.
Click "OK" to save the changes.
Hope the information is helpful.
Best Regards,
Hania Lian
============================================
If the Answer is helpful, please click "
Accept Answer
" and upvote it.