0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【タスクスケジューラ】無期限を設定しているのに、再起動したらタスク実行しなくなった

Posted at

困ったこと

タスクスケジューラで1時間おきに半永久的に実行させたいが、一度再起動を行うと実行されなくなってしまった。無効→有効にしてみたり、タスクが続いているのかと思ってタスクの終了をしたりしたが、上手くいかない。また次回の実行時刻には日時が入っているが、その時刻になっても実行されない。

設定していたトリガー

タスクスケジューラ_トリガ.png

対処

「毎日、毎週、毎月」に設定している かつ 継続時間を「無期限」に設定していると、
タスクを無効化して再度有効化した場合にうまくいかない場合があるとのこと。
https://jpwinsup.github.io/blog/2023/02/07/UserInterfaceAndApps/Repeat-task-indefinitely-issues/
上記の記事の対応方法に書かれていた通り「毎週」から「1回」に変更すれば、動くようになった。

タスクスケジューラ_解消.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?