テーマ: scheduled-tasks
-
ScheduledTasks モジュールによる定期タスクの構築:アクション、トリガー、実行主体、結果コード
New-ScheduledTaskAction、-Trigger、-Principal を組み合わせ、Register-ScheduledTask でタスクを登録します。NT AUTHORITY\SYSTEM での実行には保存したパスワードが不要で、Get-ScheduledTaskInfo と文書化されたタスクスケジューラの結果定数から、前回の実行が実際に成功したかを判断できます。
-
Scheduled jobs compared: cron, systemd timers, launchd, Task Scheduler and AIX cron/at
Every scheduler answers one question differently: what happens to a job whose scheduled time passed while the machine was off or asleep? Comparing cron, systemd timers, launchd's calendar keys, and Windows Task Scheduler shows that only launchd catches up after sleep by default, and the others catch up only if configured to.
機械可読: JSON