This time, we will show you how to back up and restore tasks registered in the Task Scheduler in Windows 10/11.
For example, if you do a clean install of Windows 10/11 or replace your computer, all the tasks you added will be lost.
If you find it troublesome to add the same task again, please refer to the method introduced here to back up your data and easily restore it.
How to back up tasks registered in Task Scheduler
1. Press Windows Key + R to open Run, type the following command and press Enter:
taskschd.msc
2. Task Scheduler will open, so click on "Task Scheduler Library" on the left.
3. Right-click on the task you want to back up and click "Export".
4. "Save As" will appear, so open the location where you want to save it and click "Save".
This completes the backup task.
The backed up tasksextensionThe file is in ".xml" format, and when you open it in Notepad, it will contain the following image:
How to restore backed up tasks
1. Restore from Task Scheduler
1. Press Windows Key + R to open Run, type the following command and press Enter:
taskschd.msc
2. Task Scheduler will open. Right-click on "Task Scheduler Library" on the left and click "Import Tasks".
3.Then, the "Create Task" screen will appear. Click OK to complete the task restoration.
2. Restore with commands
1.Start buttonRight-click and open Terminal (Admin).
2. Type the following command and press Enter:
schtasks /create /XML "XMLファイルのパス" /tn "タスク名" /F
For example, if the file "Check for 7-zip updates.xml" is saved in the "E:\test\test" folder, the command would be as follows:
schtasks /create /XML "E:\test\test\7-zip の更新の有無をチェック.xml" /tn "7-zip の更新の有無をチェック" /F
Be sure to enclose the "XML file path" and "task name" in double quotation marks (").
If you do not enclose the command in double quotation marks and the name or path contains spaces, an error will occur and the command will not be executed.
Immediately execute the registered command
If you want to run the command you just registered immediately, enter the following command and press Enter:
schtasks /run /TN "タスク名"
If the task name is "Check for 7-zip updates", it will look like this:
schtasks /run /TN "7-zip の更新の有無をチェック"







Comment: