Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I export a list of all groups and the users who are members of each of the groups on a Windows 2003 server?


share|improve this question
up vote 2 down vote accepted

On an individual server, net localgroup would display a list of all local groups. Then, run net localgroup <name> for each group, I'm not going to write that .BAT file for you :-)

On an AD domain, dsquery group | dsget group -members

share|improve this answer
Just what I'm looking for! Thanks mfinni! – GernBlandston Jan 15 '10 at 19:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.