PowerTip: Create XML Representation of Scheduled Task

Doctor Scripto

Dr Scripto

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

0 comments

Leave a comment