Skip to content

Instantly share code, notes, and snippets.

@KirillPashkov
Created May 5, 2016 11:59
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 KirillPashkov/5db33e1311fa0e3042d2ae41cc67fe5a to your computer and use it in GitHub Desktop.
Save KirillPashkov/5db33e1311fa0e3042d2ae41cc67fe5a to your computer and use it in GitHub Desktop.
$Group = Read-Host 'Specify Group';
[void][System.Reflection.Assembly]::LoadWithPartialName('System.DirectoryServices.AccountManagement');
([System.DirectoryServices.AccountManagement.GroupPrincipal]::FindByIdentity([System.DirectoryServices.AccountManagement.ContextType]::Domain,$Group)).GetMembers(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment