Need to export users list from the Group

What's the quick way to export the list of users from the specific group.   Adfind or AD query?
LVL 17
Who is Participating?
Sarang TinguriaConnect With a Mentor Sr EngineerCommented:
run this

dsquery group -samid "Group Name" | dsget group -members | dsget user -display -email >C:\Groupname.csv

Open in new window

note :- edit the group name
Mike KlineConnect With a Mentor Commented:
Lots of ways, I outlined some here

In that example I looked for enabled users but you can take the useraccountcontrol part out if you want all users.


Thomas Zucker-ScharffConnect With a Mentor Systems AnalystCommented:
You can also use luser.exe (it is seen as malware by some engines).
Sarang TinguriaConnect With a Mentor Sr EngineerCommented:
You may also use

Cjwdev | AD Info - Active Directory Reporting Tool
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.