Created
October 22, 2018 17:34
-
-
Save JohnL4/619d17e9498caf8a661b53077affa3d0 to your computer and use it in GitHub Desktop.
List Windows services matching a string
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
| get-service | ? {$_.Name -match 'allscripts|sunrise|helios' -or $_.DisplayName -match 'allscripts|sunrise|helios'} | |
| <# Could maybe create a string variable w/the regexp so we don't have to type it twice. #> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment