Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$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
You can’t perform that action at this time.