Wednesday, February 27, 2013
List users in an active directory group
dsquery group domainroot -name groupname | dsget group -members | dsget user -fn -ln >output.csv
This will dump a list of users in the "groupname" you have entered.
Subscribe to:
Posts (Atom)