Skip to main content
Operating system & services

Scheduled Task

Monitor Windows scheduled tasks such as backups and get alerted when a task ends with an error code or is disabled.

The Scheduled Task check monitors Task Scheduler on Windows devices. It reports tasks whose last run ended with an error code, disabled tasks if you choose, and the case where no task matches the patterns. Use it, for example, for backup, export, or maintenance tasks that must run reliably. The check ships for Windows x64 and Windows Arm64, queries Task Scheduler through PowerShell, and runs every 15 minutes by default. Linux and macOS are not supported.

Steps

  1. Go to Devices and open the device.
  2. Click the Checks tab → Add Check → Scheduled Task.
  3. Enter the tasks you want to monitor under Task name patterns.
  4. Click Add Check.

To assign the check to several devices, use a config package.

Settings

FieldTypeRequiredDefaultDescription
Task name patternslist of stringsNo— (all tasks)Task name patterns, e.g. Backup* or \MyApp\*. Leave empty to check all tasks
Include disabled tasksbooleanNoOffReports disabled tasks as a warning instead of skipping them

Patterns

  • Each pattern is compared with the task name and with the full path of folder and name (e.g. \MyApp\Nightly Export). A task is checked as soon as any pattern matches.
  • Wildcards follow the PowerShell -like operator: * for any number of characters, ? for exactly one character. Matching is case-insensitive.
  • Empty entries are ignored.
  • Without patterns, the check covers all tasks on the device, including built-in Windows tasks. If any of them ends with an error code, the check turns Critical. Add patterns if you only want to monitor specific tasks.
  • Disabled tasks are skipped by default. A pattern that only matches disabled tasks therefore leads to the warning "No tasks matched the patterns" while Include disabled tasks is off.

Results

Each checked task gets its own status. The overall check result is the worst status across all tasks.

ConditionStatus
Last result 0 (success), 267009 (currently running), or 267011 (has not run yet)OK
Task is disabled (only with Include disabled tasks)Warning
Any other last resultCritical
Patterns are set but no task matchesWarning ("No tasks matched the patterns")
The task query returns no output, e.g. because it takes longer than 30 secondsWarning ("No output from task query")
The task query fails with an errorFailure ("Task query failed")

For each task the check shows the name, folder path, state, last result, and time of the last run. It also reports how many tasks were found. The result view lists at most 50 tasks. The overall status and the number of tasks found still include every checked task.

See also: Set up alerts for a check