Skip to content

Instantly share code, notes, and snippets.

@jonathanmedd
Created May 3, 2017 15:48
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/35424ca26f6a86c2c8ccecb2094e715f to your computer and use it in GitHub Desktop.
Save jonathanmedd/35424ca26f6a86c2c8ccecb2094e715f to your computer and use it in GitHub Desktop.
Get-ServiceWhereMethod3
(Get-Service).Where({ $_.Status -eq "Running" }, 'First')
Status Name DisplayName
------ ---- -----------
Running AdobeARMservice Adobe Acrobat Update Service
(Get-Service).Where({ $_.Status -eq "Running" }, 'Last')
Status Name DisplayName
------ ---- -----------
Running ZeroConfigService Intel(R) PROSet/Wireless Zero Confi...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment