Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Conditions

Direct answer

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.

When to use this

Use this when a task doesn't start because of conditions.

First 30 seconds

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".

Operational verification

trigger → conditions checked → task runs or is skipped

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common problems
  • "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.
Platform / version applicability
Windows execution, automation and observability
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows execution, automation and observability
Scope / prerequisiteUse this when a task doesn't start because of conditions.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

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.

observation · 1
Key points
  • Conditions like idle, AC power or network can block a run.
  • Unmet conditions skip runs silently.
  • Check them when tasks never start.
Key checks
  • Get-ScheduledTask -TaskName <name> | fl * — task definition
  • Get-ScheduledTaskInfo -TaskName <name> — last run time and result
  • schtasks /query /tn <name> /v /fo list — details in CMD
  • Get-WinEvent -LogName Microsoft-Windows-TaskScheduler/Operational -MaxEvents 30 — task history (enable first)
ReferenceWhy it matters1 section · depth on demand

Conditions and settings

SettingEffect
Start only if on AC powerLaptops skip tasks on battery (default on!)
Start only if network availableWaits for a connection
Wake the computer to runUses wake timers
Run whether user is logged on or notStores credentials or uses S4U
Stop if runs longer thanDefault 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

SettingEffect
Run whether user is logged on or notRuns in background, needs stored credentials or SYSTEM
Run with highest privilegesElevated token
Wake the computer to runNeeds wake timers enabled
If the task is already runningParallel, queue, ignore or stop existing
Stop if runs longer thanDefault 72 hours

In depth

Task conditions and settings control when a triggered task actually runs:

OptionEffect
Start only if on AC powerLaptops skip tasks on battery (default on!)
Start only if network availableWaits for a connection
Run whether user is logged on or notStores credentials or uses S4U
Run with highest privilegesElevated token
Stop if runs longer thanDefault 3 days
If already runningDo not start new / queue / parallel / stop existing
Run task as soon as possible after a missed startCatch up after downtime

The AC-power default is a common reason tasks silently never run on laptops.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows execution, automation and observability current

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%
Confirmation

Confirm action

Continue?