PowerTip: Find running services with PowerShell

Summary: Use Windows PowerShell to find running services.

Hey, Scripting Guy! Question How can I use Windows PowerShell to quickly produce a sortable list of running services on my computer?

Hey, Scripting Guy! Answer Use the Get-Service cmdlet to return the services, and the Out-GridView to produce a sortable list:

gsv | ogv

Note   gsv is an alias for Get-Service, and ogv is an alias for Out-GridView.

Comments (5)

  1. shoeboy says:

    Another option would be gsv | ? Status -eq Running | ogv . This will give you a gridview output of only the running services..

  2. James A. Brown says:

    Find "running" services? Don’t you mean:

    gsv | ? -Status -eq "Running" | ogv

  3. shoeboy says:

    Try this: gsv | ? Status -eq "Running" | ogv : This will give you a list of the running services only on the Grid View..

  4. Tim Bolton says:

    Don’t forget you can expand on this if you use PassThru

  5. Antony Gibbs says:

    The question refers to *running* services, so this can be done with the following filtered command:

    Get-Service | Where-Object Status -EQ "Running" | Out-GridView
    gsv | where Status -EQ "Running" | ogv

Skip to main content