How to import a scheduled task automatically from an XML file?

Solution 1:

You can use the schtasks command:

schtasks /Create [/S <system> [/U <username> [/P [<password>]]]] /XML <xmlfile> /TN <taskname>

For more help type schtasks /Create /? at the command prompt.