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.