Created
June 21, 2018 18:31
-
-
Save zackn9ne/83127f6b94b14a6c7735f9f498bb182b to your computer and use it in GitHub Desktop.
Get all People in a Group
This file contains hidden or 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
Get-ADGroupMember -Identity "$Group" | | |
Select samAccountName,Name, | |
@{Name="DisplayName";Expression={(Get-ADUser $_.distinguishedName -Properties Displayname).Displayname}}, | |
@{Name="Title";Expression={(Get-ADUser $_.distinguishedName -Properties Title).title}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment