[Check Recommended] Tasks in Task Scheduler are now failing in Windows 11.

この記事は約2分で読めます。
スポンサーリンク

Things I want to do

I noticed that there are some scheduling tasks on Windows 11 that have been failing since mid-May 2023.

I haven’t edited the tasks or the files to be executed, but they’ve started failing. If you’re using custom tasks in Task Scheduler, I recommend checking to make sure they’re running correctly.

スポンサーリンク

Failing tasks

The tasks that failed were the following:

Tasks to executebat file
Previous execution result
(Error code)
0x1
Adding arguments> log.txt
Log output
Startfolder containing the executable batch file
スポンサーリンク

Avoidance strategy

The cause of the problem this time was the argument ‘> log.txt’.

Removing the argument fixed the problem; it now works correctly.

I thought the problem might be that the file path wasn’t an absolute path, so I tried changing it to an absolute path, but this didn’t solve the problem.

If you absolutely need to perform the same action, I recommend creating a new batch file and then running the batch file specified in the execution task from within that new batch file.

コメント

タイトルとURLをコピーしました