Automation · Scheduling
Windows Task Scheduler
Cheat sheet · https://pcornel.dk/topic.php?topic=5351
Answer
Windows Task Scheduler runs programs and scripts on schedules or events, configured in taskschd.msc, schtasks or Register-ScheduledTask, with history in the TaskScheduler Operational log.
Remember
- Use taskschd.msc, schtasks or Register-ScheduledTask.
- Account and conditions decide whether it runs.
- History is in the TaskScheduler Operational log.
First checks
Get-ScheduledTask -TaskPath \<folder>\— tasksGet-ScheduledTaskInfo <n>— last run/resultschtasks /query /v /fo list /tn <n>— details
Verify in this order
trigger → task → action
Where it usually breaks
Trigger → queue accepted → worker lease/pickup → task running → terminal result → target mutation/read-back → effective runtime state → workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5351