Last active
March 5, 2020 22:04
-
-
Save samurailink3/7136822 to your computer and use it in GitHub Desktop.
Get list of users from AD group and export to a file. File is roughly fixed-width, so use Excel to break up the data.
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
dsquery group "CN=Group Name,OU=Groups,DC=Example,DC=com" | dsget group -members | dsget user -ln -fn -samid -email > C:\Users\username\Desktop\file.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment