How to Export Scheduled Tasks To A File on Windows 11

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

  1. Right-click the Start button, and select Terminal from the menu. Tip: You can open the same menu with Win + X.
  2. 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 new Scheduled_Taskstxt file on your desktop.
  3. 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

  1. Open Start, type terminal and pick its shortcut from the Search result to launch it.
  2. 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"
  3. 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

  1. Launch Windows Terminal.
  2. 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".
  3. Open the Disabled_Scheduled_Tasks.txt file placed on your desktop. You are done.

Export running tasks

  1. Open the Windows Terminal app.
  2. 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".
  3. 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:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

Leave a Reply

Your email address will not be published.

Exit mobile version
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.