PowerTip: Create XML Representation of Scheduled Task


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

Comments (2)

  1. s.mcknight says:

    Hey Ed…there are time I am at the console…and the banner changes from Administrator…to Select Administrator…what does that mean…?

  2. Maekee says:

    I guess Import-ScheduledTask also works?
    s.mcknight: Sounds like you have selected text in the Powershell host-window

Skip to main content