Created
December 21, 2016 22:41
-
-
Save kalebo/bcb11962a878835e643c5495218a97c7 to your computer and use it in GitHub Desktop.
Select more info for each of the users in a AD group, sort and format
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
get-adgroupmember adgroupname | foreach {get-aduser $_.name | select name, surname, givenname} | sort-object surname | Format-Table -autosize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment