Use this when a task doesn't start because of conditions.
Conditions
Task conditions add requirements beyond the trigger, such as only run when idle, on AC power or with a network connection. Unmet conditions are a common reason a task silently does not run.
1. Conditions: only on AC power, idle, network available?
2. Laptops on battery skip tasks by default.
3. Settings: stop if runs longer than, run missed tasks?
4. Adjust and test.
5. Check history for "condition not met".
trigger → conditions checked → task runs or is skipped
Context & applicabilityCommon mistakes · platform/version boundaries
- "Start the task only if the computer is on AC power" stops tasks on laptops.
- "Stop the task if it runs longer than 3 days" default ending long jobs.
- Idle conditions that never occur on servers.
- "Run task as soon as possible after a scheduled start is missed" not set, so missed runs never happen.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Conditions like idle, AC power or network can block a run.
- Unmet conditions skip runs silently.
- Check them when tasks never start.
Get-ScheduledTask -TaskName <name> | fl *— task definitionGet-ScheduledTaskInfo -TaskName <name>— last run time and resultschtasks /query /tn <name> /v /fo list— details in CMDGet-WinEvent -LogName Microsoft-Windows-TaskScheduler/Operational -MaxEvents 30— task history (enable first)
ReferenceWhy it matters1 section · depth on demand
Conditions and settings
| Setting | Effect |
|---|---|
| Start only if on AC power | Laptops skip tasks on battery (default on!) |
| Start only if network available | Waits for a connection |
| Wake the computer to run | Uses wake timers |
| Run whether user is logged on or not | Stores credentials or uses S4U |
| Stop if runs longer than | Default 3 days |
"Did not run on battery" is a common reason for missed tasks on laptops.
ReferenceImportant terms & boundaries2 sections · depth on demand
Settings worth knowing
| Setting | Effect |
|---|---|
| Run whether user is logged on or not | Runs in background, needs stored credentials or SYSTEM |
| Run with highest privileges | Elevated token |
| Wake the computer to run | Needs wake timers enabled |
| If the task is already running | Parallel, queue, ignore or stop existing |
| Stop if runs longer than | Default 72 hours |
In depth
Task conditions and settings control when a triggered task actually runs:
| Option | Effect |
|---|---|
| Start only if on AC power | Laptops skip tasks on battery (default on!) |
| Start only if network available | Waits for a connection |
| Run whether user is logged on or not | Stores credentials or uses S4U |
| Run with highest privileges | Elevated token |
| Stop if runs longer than | Default 3 days |
| If already running | Do not start new / queue / parallel / stop existing |
| Run task as soon as possible after a missed start | Catch up after downtime |
The AC-power default is a common reason tasks silently never run on laptops.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Task Scheduler → Conditions. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/win32/taskschd/task-scheduler-start-page · confidence 94%