Troubleshoot a Windows Scheduled Task That Runs Manually but Fails on Schedule
Before you begin
- Applies to:Scheduled tasks on Windows 11 that fail to run on schedule.
- Where to start:Open Task Scheduler on the affected PC. Use PowerShell 7 or later if you choose the optional command check.
- What you need:Record the exact task name and folder path. Get the owner’s approval before editing or manually triggering the task.
Guide tools
Troubleshooting Steps
Check whether the trigger actually fired
Start hereWhere to click
- Open Start, search for Task Scheduler, and open it.
- Expand Task Scheduler Library, open the task’s folder, and select the task. Compare Next Run Time and Last Run Time with the missed schedule.
- Check the Triggers, Conditions, and History tabs.
What to look for · Confirm the task and trigger are enabled and check power, network, and idle conditions. Replace Example Task and the task path in the command. Use a single backslash for the library root or a path such as \Maintenance\ for a folder. History only shows events collected while logging was enabled. If needed, ask an administrator to enable history for the next occurrence.
Get-ScheduledTaskInfo -TaskName 'Example Task' -TaskPath '\' | Select-Object LastRunTime, LastTaskResult, NextRunTime, NumberOfMissedRunsCompare the scheduled account and action
Narrow the causeWhere to click
- Open the task’s Properties and select General to see the run account.
- Select Actions, choose the relevant action, and open Edit to read the executable, arguments, and Start in directory. Close without saving when finished inspecting.
What to look for · An interactive drive mapping or current directory may be absent in an unattended session. Use approved absolute paths and confirm that the scheduled account has access to the executable and any required UNC share.
Verify the next scheduled run
VerifyWhere to click
- After an approved correction and the next scheduled run, open Task Scheduler and select the task.
- Select History and compare events from that run with the expected application output.
What to look for · A successful task result may only mean the process exited successfully. Confirm the intended work happened by checking the expected log entry, file, or other output.
Reference
Your feedback keeps these production procedures accurate and battle-tested.