Every once and a while you come across these little annoying¬†obsticles when working with Active Directory that should be easy to solve but requires some special tools, for example that there is no way to export all the members of a group in the Active Directory Users & Computers GUI tool.¬†Using advanced search filter for a user with the “Member of” filter doesn’t seem to work so one way to do it is with “dsquery” and “dsget”, tools for Windows 2003 that you can find using Google probably. Here is how to list all members of a specific AD group.

List all members in the group “MYGROUP”:

dsquery group -name MYGROUP | DSGET group -members

Then you can put it to a text file by simply adding “> mygroup-members.txt” and the end for example. More simple than struggling around with VBScripts, and very useful.