Created
May 5, 2016 11:59
-
-
Save KirillPashkov/5db33e1311fa0e3042d2ae41cc67fe5a to your computer and use it in GitHub Desktop.
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
$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