PowerTip: Use a PowerShell Function to Find Scheduled Task Info

PowerTip: Use a PowerShell Function to Find Scheduled Task Info

  • Comments 3
  • Likes

Summary: Use a Windows PowerShell function to find running scheduled tasks on your computer running Windows 8.

Hey, Scripting Guy! Question How can I find information about running scheduled tasks on my computer running Windows 8?

Hey, Scripting Guy! Answer Use the Get-ScheduledTask function and pipe the resulting list to the Where-Object to identify a running state. Choose a couple of properties such as taskname and state. The following command illustrates this technique.

Get-ScheduledTask | select taskname, state | ? state -eq running

 

 

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Hi guy !!!!

    Which module should I import to run this command? Because i have not Get-ScheduledTask cmdlet in my indows 8 and server 2012 by default.....

  • @Christophe You would need to import the PowerShellPack Module.

  • Is there any way to see how long a task has been running?  Or, using Get-ScheduledTaskInfo, to see the start/end times of a completed task?