Created
February 2, 2016 10:16
-
-
Save kayasax/2d115c9566e8f3240d21 to your computer and use it in GitHub Desktop.
Get group membership with ADSI
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
([ADSI]"WinNT://$ip/$admingroup,group").psbase.Invoke("Members") |%{ | |
$_.GetType().InvokeMember("Name", 'GetProperty', $null, $_, $null) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment