How to import multiple tasks from a XML in Windows Server 2008

importscheduled-taskwindows-server-2008-r2

I have all the tasks from a server in a XML file obtained using

schtasks /Query /XML ONE>C:\schedtasksBackup.xml

Now, I want to import all the tasks in another server. All the info explains how to import o create ONE task at a time, but not multiple tasks at the same time.

It's possible? Or do I need to split the file in multiple atomic tasks file?

Best Answer

I believe that if you want to use schtasks you need to make them atomic. I would recommend that you use the new-task cmdlet in powershell if you want to schedule multiple tasks (or just want more granular options) see PowerShellPack if you do not already have the resource kit installed.