Last active
December 14, 2015 19:28
-
-
Save flickerfly/5136556 to your computer and use it in GitHub Desktop.
Find a windows service by the account it runs as
This file contains 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
$accounts = @("name1","name2") | |
ForEach ($account in $accounts) | |
{ | |
Get-WmiObject Win32_Service | where {$_.StartName -like "*$account*"} | |
} #end foreach |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment