To get all users in an AD Group, open powershell and run the following lines:
Import-Module
ActiveDirectory
Get-ADGroupMember
-Identity "TestGroup" | Export-CSV TestGroupMembers.csv
Replace TestGroup with the name of the AD Group you wish to get the members of.
No comments:
Post a Comment