Task Scheduler on Windows 10 allows you to quickly create and run tasks automatically. Using this tool, you can launch apps, run scripts, or execute commands at a particular day and time, or even during a specific event.

If you already created one or multiple scheduled tasks, another benefit of Task Scheduler is the ability to quickly export and import your tasks in at least three different ways using the console, Command Prompt, and PowerShell. This is particularly useful when moving to a new installation of Windows 10, to prevent having to recreate them from scratch, or to save time when you need to deploy the same job on many computers in your organization.

In this Windows 10 guide, we'll walk you through the steps to export and import scheduled tasks to the same or different computer.

How to export and import scheduled tasks using Task Scheduler

The easiest way to export and import scheduled tasks on Windows 10 is to use Task Scheduler and the instructions below.

Exporting tasks with Task Scheduler

To export a scheduled task using Task Scheduler, use these steps:

  1. Open Start.
  2. Search for Task Scheduler, and click the top result to open the experience.
  3. Browse to the location of the scheduled task that you want to export.
  4. Right-click the item, and select the Export option.

  5. Browse and open the folder to export the task.
  6. Click the Save button.

Once you complete these steps, you'll end up with a .xml file that you can then import to another machine or another installation of Windows 10.

Using Task Scheduler, you can only export (or import) one task at a time, as such you'll need to repeat the steps to export additional scheduled tasks.

Importing tasks with Task Scheduler

To import a scheduled task on Windows 10, use these steps:

Important: This option will only restore the task; it'll not restore the script or application that the task will execute. If you're importing a task that runs a script or starts an application, you need to make sure that those resources exist on the device before proceeding with the steps below. Otherwise, the scheduled task will fail.

  1. Open Start.
  2. Search for Task Scheduler, and click the top result to open the experience.
  3. Browse to the import location.
  4. Right-click the folder, and select the Import Task option.

  5. Browse and open the folder with the scheduled task.
  6. Select the task.
  7. Click the Open button.

  8. Optional: Update the scheduled task settings as necessary.
  9. Click the OK button.

After completing the steps, the task will import automatically on your device.

How to export and import scheduled tasks using Command Prompt

Alternatively, you can also use Command Prompt to export and import scheduled tasks, which could be a better option when working with multiple computers.

Exporting tasks with Command Prompt

To export a task using Command Prompt on Windows 10, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to export a scheduled task and press Enter:

    schtasks /query /xml /tn "\TASK-PATH-TASKSCHEDULER\TASK-NAME" > "%UserProfile%\EXPORT-FOLDER-PATH\TASK-EXPORT-NAME.xml"

    In the command, make sure to update the command ("\TASK-PATH-TASKSCHEDULER\TASK-NAME," "%UserProfile%\EXPORT-FOLDER-PATH\TASK-EXPORT-NAME.xml) with your device details.

Once you complete the steps, the task will be exported as a .xml file in the location you specified.

Import tasks with Command Prompt

Command Prompt does not offer an import option. Instead, you'll need to use the "create" flag to create and schedule a new task using the exported settings in the .xml file.

To import a task, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to import a scheduled task and press Enter:

    schtasks /create /xml "%UserProfile%\IMPORTED-FOLDER-PATH\TASK-INPORT-NAME.xml" /tn "\TASKSCHEDULER-FOLDER-PATH\TASK-INPORT-NAME" /ru "COMPUTER-NAME\USER-NAME"

    In the command, make sure to update the command ("%UserProfile%\IMPORTED-FOLDER-PATH\TASK-INPORT-NAME.xml," "\TASKSCHEDULER-FOLDER-PATH\TASK-INPORT-NAME," "COMPUTER-NAME\USER-NAME") with your device details.

    Quick tip: If the command fails or you don't want to enter the password manually, make sure to append the /rp ACCOUNT-PASSWORD (replacing "ACCOUNT-PASSWORD" with your actual password) after specifying the "COMPUTER-NAME\USER-NAME" parameters.

  4. Type your account password and press Enter.

After you complete the steps, the new scheduled task will be created using the exported settings in the location you specified in Task Scheduler.

How to export and import scheduled tasks using PowerShell

Similar to the Command Prompt option, you can also export and import tasks using PowerShell.

Exporting tasks with PowerShell

To export a scheduled task with PowerShell, use these steps:

  1. Open Start.
  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.
  3. Type the following command to export a scheduled task and press Enter:

    Export-ScheduledTask -TaskName "TASK-NAME" -TaskPath "\TASK-PATH-TASKSCHEDULER\" | out-file C:\PATH\TO\EXPORT-FOLDER\TASK-EXPORT-NAME.xml

    In the command, make sure to update the command ("TASK-NAME," "\TASK-PATH-TASKSCHEDULER\," "C:\PATH\TO\EXPORT-FOLDER\TASK-EXPORT-NAME.xml") with your device details.

Once you complete these steps, the task will export into a file using a .xml extension, which you can then use to import the same task on the same or another computer or installation.

Importing tasks with PowerShell

Although there is an "Export" cmdlet, you won't find an "Import" cmdlet variant using PowerShell. Instead, you'll need to register a new task that will import the same settings included in the exported .xml file.

To import a task with PowerShell, use these steps:

  1. Open Start.
  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.
  3. Type the following command to import a scheduled task and press Enter:

    Register-ScheduledTask -xml (Get-Content 'C:\PATH\TO\IMPORTED-FOLDER-PATH\TASK-INPORT-NAME.xml' | Out-String) -TaskName "TASK-IMPORT-NAME" -TaskPath "\TASK-PATH-TASKSCHEDULER\" -User COMPUTER-NAME\USER-NAME –Force

    In the command make sure to update the command ("C:\PATH\TO\IMPORTED-FOLDER-PATH\TASK-INPORT-NAME.xml," "TASK-IMPORT-NAME," "\TASK-PATH-TASKSCHEDULER\," "COMPUTER-NAME\USER-NAME") with your device details.

    Quick tip: If the command fails or you don't want to enter the password manually, make sure to append the -Password ACCOUNT-PASSWORD (replacing "ACCOUNT-PASSWORD" with your actual password) after specifying the "COMPUTER-NAME\USER-NAME" parameters.

After completing these steps, the exported scheduled task will be imported to the location you specified in Task Scheduler.

While this guide is focused on Windows 10, the ability to export and import scheduled tasks has been around for a long time, and you can also refer to these instructions if you're running Windows 8.1 or Windows 7.

More Windows 10 resources

For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:

Latest And Best Prime Day Deals

The Ring Alarm security system is reaching new low prices for Prime Day
Ring Alarm home security systems

Various configurations of the Ring Alarm are discounted to their best prices yet exclusively for Prime members at Amazon through Tuesday night to help keep your home secure.

The Sonos Beam Prime Day deal includes a $40 discount and 2 $50 Amazon gift cards
The Sonos Beam Prime Day deal includes a $40 discount and $100 in Amazon gift cards
$359.00 $499.00 Save $140

That's just so much savings in one deal. You'll have to wait for the physical gift cards, but that's basically $100 to spend however you want.

Prime Day dropped this PlayStation 4 console bundle to just $250
PlayStation 4 Slim 1TB console with Marvel's Spider-Man and Horizon Zero Dawn
$249.99 $359.98 Save $110

This deal on the PlayStation 4 Slim console saves you $50 off its regular price while also including Marvel's Spider-Man and Horizon Zero Dawn Complete Edition for free. You'll just need an Amazon Prime membership to snag it.

The newest device in the Echo family, the Show 5, is now down to just $50
Echo Show 5
$49.99 $89.99 Save $40

It's only been on the market since May, but it hasn't escaped the Prime Day price cuts.

Amp up your home security with these huge Prime Day discount on nearly all Ring products
Save on Ring products today only

Whether you need a video doorbell, whole home alarm system, or some lights to brighten a dark area, Amazon has it all marked down today!

These huge price drops on the entire Galaxy S10 lineup might be one of the best Prime Day phone deals we'll see
Samsung Galaxy S10 128GB unlocked Prism Black Android smartphone
$599.99 $900.00 Save $300

We love the Galaxy S10, and we love deals. This combines two of our true loves in one!

Scour Amazon Warehouse's deals to save an extra 20% on tech and more through Prime Day
Extra 20% off Amazon Warehouse

Amazon Warehouse sells a myriad of items in varying conditions, from refurbished to open-box, used, warehouse-damaged, and more. It's a great place to snag a deal, and now Prime members can save an extra 20% off select items at checkout.

There's never been a better deal on the Ring Video Doorbell 2 than this pre-Prime Day offer
Ring Video Doorbell 2 (Certified Refurbished)
$89.99 $169.99 Save $80

Amazon is taking $80 off the certified refurbished Ring Video Doorbell 2, which lets you see and speak with visitors at your front door no matter where you are in the world.

More Prime Day Deals