Windows Server 2008: export scheduled tasks to XML and review them

An XML export records a task, not its programs or credentials. Prepare a later transfer without running or modifying the production task.

1. Identify the task

Open Task Scheduler through Administrative Tools. Verify computer, library folder and task name; names can repeat in different folders. Record OS, date, enabled state and business owner. Include required subfolders explicitly.

2. Export one definition

Select the task and choose Export in the Actions pane. Save XML in a protected archive associated with computer and task path. Repeat for other required tasks. Do not choose Run, Import, Disable or Delete. Exporting one task does not export the whole library.

3. Compare XML read-only

Open a copy as text. Compare triggers, actions, principal, privilege level, conditions and settings against the interface. For program actions include arguments and working directory. Not every action launches an ordinary executable. Mark missing or unknown information rather than repairing XML during inventory.

4. Preserve dependencies separately

Map scripts, programs, configuration, data paths and permissions. Copy authorized files separately. XML is not a password backup, although arguments and descriptions may contain confidential information. Keep the archive private. Accounts and logon methods require separate preparation before transfer.

5. Test transfer separately

Preserve the original export. Any later import needs a prepared isolated test with controlled triggers and test data. Registration itself can activate a registration trigger. Readable XML proves neither portability nor successful execution. This inventory leaves production tasks unchanged.

Sources