Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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