Thanks.. this should work.. is they a way to list the contacts within the groups as well?
Main Topics
Browse All TopicsHey all - I have a few hundred distro lists within a OU. I need to export the group membership for all into Excel or some other readable format.. I have found several scripts that work for one exporting group members on a single group.. but not for all groups within a OU.. Not sure it matters, but I suspect several of these groups have no members, and some have other groups nested within them.
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi, you can try this VBS code as well. I will read the groups from an OU that you specify with
Set objOU = GetObject("LDAP://ou=Group
and export the members to a separate worksheet in an excel document.
You just need to change the OU path above to point to the right one. That code has been offered here too:
http://www.experts-exchang
Regards,
Rob.
Business Accounts
Answer for Membership
by: mkline71Posted on 2009-08-11 at 07:04:58ID: 25069160
i'll test this later this afternoon but try adfind by joe richards
http://www.joeware .net/freet ools/tools /adfind/in dex.htm</A >
adfind -b "DN of your OU" -f "objectcategory=group" name member -nodn -csv > c:\groups.csv
Thanks
Mike