weismat Asked: 2010-12-30 20:03:32 +0800 CST2010-12-30 20:03:32 +0800 CST 2010-12-30 20:03:32 +0800 CST Command line to backup schedulded tasks in Windows 7 772 How can I create a backup of my schedulded tasks so that I can restore them on my backup server easily? Edit: I would prefer a command line version, so that the backup of the schedulded tasks is a job on its own so that I do not miss any changes. windows backup windows-7 3 Answers Voted SpacemanSpiff 2010-12-30T20:06:18+08:002010-12-30T20:06:18+08:00 Right click on each one, and choose export, they appear to be in XML format. Best Answer Wesley 2010-12-30T23:03:41+08:002010-12-30T23:03:41+08:00 For a command line solution, try one of the following two: Copy all files in the "C:\WINDOWS\Tasks" folder ala RoboCopy Play around with the command schtasks /query /xml ONE and pipe the output into a .xml file. So... schtasks /query /xml ONE >> myTasks.xml More on schtasks can be found at MSDN and TechNet. Ankur Dholakiya 2010-12-30T21:13:16+08:002010-12-30T21:13:16+08:00 following steps: 1.Open Scheduled Tasks on your local machine (go to Start, Settings, Control Panel, Scheduled Tasks). 2.Right-click the task your want to move or copy. Click here to view image 3.If you want to copy the task, select Copy, and if you want to move the task, select Cut. 4.Open My Network Places in Windows Explorer, expand the domain or workgroup, and select the target machine where you want to copy or move the task. 5.Right-click the target machine's Scheduled Tasks, and click Paste.
Right click on each one, and choose export, they appear to be in XML format.
For a command line solution, try one of the following two:
schtasks /query /xml ONE
and pipe the output into a .xml file. So...schtasks /query /xml ONE >> myTasks.xml
More on schtasks can be found at MSDN and TechNet.
following steps:
1.Open Scheduled Tasks on your local machine (go to Start, Settings, Control Panel, Scheduled Tasks).
2.Right-click the task your want to move or copy.
Click here to view image
3.If you want to copy the task, select Copy, and if you want to move the task, select Cut.
4.Open My Network Places in Windows Explorer, expand the domain or workgroup, and select the target machine where you want to copy or move the task.
5.Right-click the target machine's Scheduled Tasks, and click Paste.