Export Scheduled Tasks Windows 11: Full Guide
In this article
- Use Task Scheduler's Export Function
- Run PowerShell Get-ScheduledTask
- Use schtasks /query /xml
- Query with schtasks /v /fo LIST
- Filter and Export Specific Folders
- Include Hidden and Disabled Tasks
- Automate with a Batch Script
- Verify Export Integrity
- Secure Sensitive Task Data
- Restore Tasks from Export
- How to Choose
- Frequently Asked Questions
- Final Thoughts
Yes, you can export a complete list of scheduled tasks in Windows 11 using built-in tools like Task Scheduler, PowerShell, and the command line. This guide covers the most reliable methods to generate a readable, shareable, or archived list of all tasks—whether for troubleshooting, auditing, or system migration. It’s for IT administrators, power users, and anyone needing visibility into background automation on their PC.
Use Task Scheduler's Export Function
Open Task Scheduler from the Start menu or by typing taskschd.msc in Run (Win + R). In the left pane, select 'Task Scheduler Library' to view all tasks. Right-click the library root, choose 'Export Collection...', and pick a location to save the XML file. This method captures all tasks in a structured format, ideal for restoring or inspecting task triggers, actions, and security options.
Run PowerShell Get-ScheduledTask
Launch PowerShell as Administrator from the Start menu. Run Get-ScheduledTask | Export-Csv -Path "C:\Tasks.csv" -NoTypeInformation to export all tasks to a CSV file. This includes task names, states, authors, and last run times in a spreadsheet-friendly format. You can filter results—for example, Get-ScheduledTask | Where-Object State -eq 'Running'—before exporting for targeted reporting.
Use schtasks /query /xml
Open Command Prompt or PowerShell and type schtasks /query /xml > C:\Tasks.xml to dump all tasks in XML format. This command pulls every task, including system and hidden ones, into a single file. The XML output is compatible with other tools and scripts, making it useful for automated audits or integration with configuration management systems.
Query with schtasks /v /fo LIST
Run schtasks /query /v /fo LIST > C:\TasksList.txt to generate a detailed human-readable text file. The /v flag adds verbose fields like next run time, status, and author; /fo LIST formats it cleanly. This method is best for quick review or sharing with support teams who don’t need machine-readable data.
Filter and Export Specific Folders
In Task Scheduler, expand the left pane to view task folders like \Microsoft\Windows\Defrag. Right-click a folder, select 'Export Collection...', and save its tasks separately. In PowerShell, use Get-ScheduledTask -TaskPath "\Microsoft\Windows\UpdateOrchestrator\" | Export-Csv C:\UpdateTasks.csv to isolate specific components. This is critical when auditing high-risk areas like update schedulers or third-party software folders.
Include Hidden and Disabled Tasks
By default, all methods above include disabled and hidden tasks—unlike the Task Scheduler GUI view, which can hide them. PowerShell’s Get-ScheduledTask and schtasks commands do not filter these out. This ensures your audit is complete, revealing potential persistence mechanisms used by malware or legacy software.
Automate with a Batch Script
Create a .bat file with @echo off followed by schtasks /query /v /fo CSV > "C:\TaskExport_%date:~-4,4%%date:~-10,2%%date:~-7,2%.csv". Save it, then run it manually or schedule it to generate dated exports. This is useful for routine monitoring or pre-update snapshots. Ensure the target folder has write permissions and consider compressing old files to save space.
Verify Export Integrity
After export, open the file in Notepad, Excel, or a browser (for XML) to confirm it’s not empty or corrupted. Check for expected entries like \Microsoft\Windows\WindowsUpdate\Scheduled Start. If the file is blank, re-run the command as Administrator—some tasks require elevated privileges to read. Always validate exports before relying on them for system recovery or analysis.
Secure Sensitive Task Data
Exported task files may contain usernames, script paths, or command-line arguments with sensitive data. Store them in encrypted locations or delete them after use. Avoid emailing raw exports; if sharing is necessary, redact identifying details first. This is especially important in corporate environments where task lists could expose internal infrastructure.
Restore Tasks from Export
To reimport, use Task Scheduler’s 'Import Task' option and select your XML file. Alternatively, run schtasks /create /xml "C:\Tasks.xml" /tn "\ImportedTask"—though you may need to adjust task names and paths. This is useful for migrating configurations between machines or recovering after a reset. Note that some tasks may fail to import due to missing prerequisites or permissions.
How to Choose
The right method depends on your needs. Use PowerShell Export-Csv for spreadsheet analysis or filtering. Choose schtasks /v /fo LIST for quick, readable reports. Pick XML exports via Task Scheduler or schtasks /xml when you need full fidelity for backup or scripting. Batch scripts are best for regular, automated exports. Always run tools as Administrator to ensure all tasks are captured. If you're troubleshooting, verbose text or CSV formats make it easier to search for anomalies. For security audits, XML gives the most complete view of triggers and actions.
Frequently Asked Questions
Can I export only enabled tasks?
Yes. In PowerShell, use Get-ScheduledTask | Where-Object State -eq 'Ready' | Export-Csv C:\EnabledTasks.csv to export only active tasks.
Why are some tasks missing from my export?
Running the command without Administrator privileges can block access to system tasks. Always open PowerShell or CMD as Administrator to see all entries.
Can I export tasks to JSON format?
Yes. Use Get-ScheduledTask | ConvertTo-Json | Out-File C:\Tasks.json in PowerShell to create a JSON file suitable for parsing in scripts or web tools.
Do exported tasks include passwords or credentials?
No. Exported XML or CSV files do not include stored passwords. However, they may show usernames or command lines that reference scripts or network paths.
Is it safe to delete the exported files?
Yes, the export files are copies. Deleting them won’t affect the actual scheduled tasks on your system.
Can I schedule the export to run automatically?
Yes. Create a batch or PowerShell script, then use Task Scheduler to run it daily or weekly. Ensure the script has a unique filename (e.g., timestamped) to avoid overwrites.
Final Thoughts
Exporting scheduled tasks in Windows 11 is straightforward with the right tools. Whether you need a quick text list or a full XML backup, PowerShell and command-line utilities offer flexibility and depth. Always run as Administrator to ensure completeness, and handle exported files securely—especially in shared or managed environments. With these methods, you can audit, migrate, or troubleshoot tasks with confidence.