Skip to content

Instantly share code, notes, and snippets.

@kayasax
Created February 2, 2016 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kayasax/2d115c9566e8f3240d21 to your computer and use it in GitHub Desktop.
Save kayasax/2d115c9566e8f3240d21 to your computer and use it in GitHub Desktop.
Get group membership with ADSI
([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