With this guide we will learn how to export tasks from Task Scheduler to a file in Windows 11. It is a great way to create a list of all tasks, or see only disabled, enabled, or currently running scheduled processes.
The Task Scheduler is a powerful utility that comes preinstalled in all modern Windows versions. Using it, you can automate tasks on your computer by scheduling programs to run at specific times or even events! Task Scheduler supports a wide range of various criteria and monitors them in real-time. When the moment of time or an event happens and the criteria met, it runs the specified command, executable file or script you earlier set.
The scheduled event is called "a task". It will be performed by the Task Scheduler service, and includes triggers that start the task (say time or event) and actions that will do the main work (say run an executable file).
By following the below steps, you will export the list of scheduled tasks to a *.txt file, which includes the task path in the library, its name, and current state of each task.
Export All Scheduled Tasks To a File
- Right-click the Start button, and select Terminal from the menu. Tip: You can open the same menu with Win + X.
- In a PowerShell tab (opens by default), type the following command:
Get-ScheduledTask | Format-Table -AutoSize | Out-File "$([Environment]::GetFolderPath(""Desktop""))\Scheduled_Tasks.txt"
. This will create a newScheduled_Tasks
txt
file on your desktop. - Minimize all windows, say with the Win + D shortcut, and double-click the Scheduled_Tasks.txt file. It contains all your scheduled tasks, including active and disabled!
That's it.
Additionally, you can reduce the number of entries in the file by exporting only enabled, or only disabled, or only running tasks. Let's review these options.
Export only enabled tasks
- Open Start, type terminal and pick its shortcut from the Search result to launch it.
- In a PowerShell tab (opens by default), type the following command:
Get-ScheduledTask | where state -eq 'Ready' | Format-Table -AutoSize | Out-File "$([Environment]::GetFolderPath(""Desktop""))\Enabled_Scheduled_Tasks.txt"
- Now open the Enabled_Scheduled_Tasks.txt file in your favorite text editor and review the fetched tasks.
Save only disabled tasks to a file
- Launch Windows Terminal.
- In a PowerShell tab of Terminal execute this command:
Get-ScheduledTask | where state -eq 'Disabled' | Format-Table -AutoSize | Out-File "$([Environment]::GetFolderPath(""Desktop""))\Disabled_Scheduled_Tasks.txt"
. - Open the Disabled_Scheduled_Tasks.txt file placed on your desktop. You are done.
Export running tasks
- Open the Windows Terminal app.
- In a PowerShell tab of Terminal execute this command:
Get-ScheduledTask | where state -eq 'Running' | Format-Table -AutoSize | Out-File "$([Environment]::GetFolderPath(""Desktop""))\Running_Scheduled_Tasks.txt"
. - Now double-click the Running_Scheduled_Tasks.txt file to open its contents, and you are done.
That's it!
Closing words
This way, you can export the list of scheduled tasks to a TXT file. Having the list of tasks in a file allows you to quickly inspect them by their name and path without going through the slow and cluttered UI of the Task Scheduler app.
The exported list of scheduled tasks contain the TaskPath value that reflects its path in Task Scheduler, TaskName, and current State of each task. The Get-ScheduledTask cmdlet of PowerShell is very helpful. You can also filter its output by applying a condition to the State value of the task.
Support us
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options: