Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jonathanmedd
Created May 3, 2017 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanmedd/a195a47561576e968ad6b36d1e97705f to your computer and use it in GitHub Desktop.
Save jonathanmedd/a195a47561576e968ad6b36d1e97705f to your computer and use it in GitHub Desktop.
Get-ServiceWhereMethod4
$Services = (Get-Service).Where({ $_.Status -eq "Running" }, 'Split')
PS C:\> $Services[0]
Status Name DisplayName
------ ---- -----------
Running AdobeARMservice Adobe Acrobat Update Service
Running AppHostSvc Application Host Helper Service
Running Appinfo Application Information
Running AudioEndpointBu... Windows Audio Endpoint Builder
Running Audiosrv Windows Audio
Running BFE Base Filtering Engine
Running BITS Background Intelligent Transfer Ser...
Running BrokerInfrastru... Background Tasks Infrastructure Ser...
Running Browser Computer Browser
Running CDPSvc Connected Devices Platform Service
.....
$Services[1]
Status Name DisplayName
------ ---- -----------
Stopped AdobeFlashPlaye... Adobe Flash Player Update Service
Stopped AJRouter AllJoyn Router Service
Stopped ALG Application Layer Gateway Service
Stopped AppIDSvc Application Identity
Stopped AppMgmt Application Management
Stopped AppReadiness App Readiness
Stopped AppVClient Microsoft App-V Client
Stopped AppXSvc AppX Deployment Service (AppXSVC)
Stopped aspnet_state ASP.NET State Service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment