Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Task Scheduler Library

Direct answer

The Task Scheduler Library is the folder tree of all scheduled tasks, including Microsoft's built-in ones under \Microsoft\Windows. Create your own folder to keep custom tasks organized.

When to use this

Use this when organizing scheduled tasks.

First 30 seconds

1. Browse taskschd.msc library folders.

2. Custom tasks in their own folder.

3. Export: Export-ScheduledTask <name>.

4. Microsoft tasks: change only if documented.

5. Permissions on task folders.

Operational verification

library folders → task definitions (XML) in C:\Windows\System32\Tasks

Context & applicabilityCommon mistakes · platform/version boundaries
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 organizing scheduled tasks.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Disabling built-in maintenance tasks without knowing their role (Defender, disk optimisation).
  • Malware persistence hiding in deep folders — review new tasks (event 4698).
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
  • Use your own folder for custom tasks.
  • Microsoft tasks live under \Microsoft\Windows.
  • Export tasks as XML for backup.
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

What it is

The Task Scheduler Library is the folder tree shown in taskschd.msc. Each folder maps to a directory under C:\Windows\System32\Tasks, and each task is an XML definition. Put your own tasks in a dedicated folder (for example \Company\) so they are easy to find, export and audit separately from the built-in \Microsoft\Windows\ tasks.

ReferenceHow it works1 section · depth on demand

In depth

The Task Scheduler Library is a folder tree (\Microsoft\Windows\… for OS tasks); tasks are stored as XML in C:\Windows\System32\Tasks.

Get-ScheduledTask -TaskPath '\CorpOps\' | Get-ScheduledTaskInfo | Select TaskName,LastRunTime,LastTaskResult,NextRunTime
Export-ScheduledTask -TaskName Cleanup -TaskPath '\CorpOps\' > cleanup.xml
Register-ScheduledTask -Xml (Get-Content cleanup.xml -Raw) -TaskName Cleanup -TaskPath '\CorpOps\'
schtasks /query /fo LIST /v /tn "\CorpOps\Cleanup"

Put your own tasks in a dedicated folder; attackers often hide persistence among the many Microsoft tasks.

ReferenceImportant terms & boundaries1 section · depth on demand
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 → Task Scheduler Library. 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?