How to Safely Extract Windows 11 ‘Task Scheduler XML Definitions’ (Backup Custom Triggers)

The Windows 11 Task Scheduler is a powerful tool for power users. You can create complex “Triggers” that tell Windows to run a specific PowerShell backup script exactly at 2:00 AM every Sunday, but only if the laptop is plugged into the wall and connected to a specific Wi-Fi network.

Configuring all those checkboxes and conditions takes time. If you want to deploy that exact same scheduled task to five other computers in your office, you do not want to rebuild it manually every time. You can safely extract the entire logic of the scheduled task into a single XML file and import it directly into the other machines.

How to Safely Extract Windows 11 Task Scheduler XML Definitions

You must use the Task Scheduler’s native “Export” function to dump the raw XML code.

  1. Click the Start button, type Task Scheduler, and press Enter to open the application.
  2. In the left-hand navigation pane, click on Task Scheduler Library.
  3. In the main center pane, scroll through the list to find the specific custom task you created.
  4. Click on your task once to highlight it.
  5. Look at the far right pane under the “Actions” menu. Click the button labeled Export…
  6. A “Save As” dialog will appear. Choose a safe location (like your Desktop or a USB drive).
  7. The file will be saved with a .xml extension. Click Save.

You have successfully extracted the complete blueprint of your scheduled task. If you open this `.xml` file in Notepad, you will see the raw code defining the exact triggers, actions, and power conditions. To deploy this task on another computer, simply open the Task Scheduler on the new machine, click Import Task… in the right-hand pane, and select your extracted XML file. The entire automation will be instantly created.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.