PowerTip: Create XML Representation of Scheduled Task

PowerTip: Create XML Representation of Scheduled Task

  • Comments 2
  • Likes

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

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Hey Ed...there are time I am at the console...and the banner changes from Administrator...to Select Administrator...what does that mean...?

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