相关文章推荐
温暖的海龟  ·  达梦spring-data-jdbc - ...·  1 月前    · 
强悍的毛豆  ·  JDBC 批量处理(13) - ...·  1 年前    · 
至今单身的韭菜  ·  Spring ...·  1 年前    · 

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.

Does anyone know why I'm running into this error/how to fix it?

Hi @ Anthony, Alexander

Do you have any questions about this thread?

If you have any further question or concern about this thread, please feel free to let us know.

Best Regards,

Hania Lian

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.