Created
July 17, 2018 17:45
-
-
Save h3nryza/fd41d5d183ff0eb24b85a20699a39a89 to your computer and use it in GitHub Desktop.
Powershell get users of a local computer group
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-CimInstance Win32_GroupUser | where {$_.GroupComponent -like "*admini*"} |select -ExpandProperty PartComponent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment