Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
I made the edit more apparent so people wouldn't overlook that you would prefer a command line way of doing things. –  Wesley Dec 30 '10 at 19:36
    
Thanks for the accepted answer! Glad I could help. –  Wesley Jan 3 '11 at 20:22
add comment

3 Answers

up vote 2 down vote accepted

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.

share|improve this answer
add comment

Right click on each one, and choose export, they appear to be in XML format.

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.