January 17th, 2015

PowerTip: Create XML Representation of Scheduled Task

Doctor Scripto
Scripter

Summary: Learn how to export a scheduled task to XML by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to create an XML representation of a scheduled task?

Hey, Scripting Guy! Answer Use the Get-ScheduledTask function and pipe the results to the Export-ScheduledTask function,
           for example:

Get-ScheduledTask applog | Export-ScheduledTask

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.