Created
March 9, 2021 18:39
-
-
Save signalwarrant/284d4acacbe2c4479ea188133be01450 to your computer and use it in GitHub Desktop.
Filer-Left.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1 | |
Get-Service | Where-object { $_.Status -eq 'Running' -and $_.name -like 's*'} | |
#2 | |
Get-Service -name s*| Where-object { $_.Status -eq 'Running'} | |
#1 | |
Measure-Command -Expression {Get-Service | Where-object { $_.Status -eq 'Running' -and $_.name -like 's*'}} | |
#2 | |
Measure-Command -Expression {Get-Service -name s*| Where-object { $_.Status -eq 'Running'}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment