PowerTip: Use a PowerShell Function to Find Scheduled Task Info

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



Comments (3)

  1. christophe says:

    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…..

  2. thesmall says:

    @Christophe You would need to import the PowerShellPack Module.

  3. bill says:

    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?

Skip to main content