Question : Best way to export Distribution group names, users, and email addresses from Exchange 2003.

Hey guys,

  I've been asked to provide a list of all Distribution groups, the member users of those groups, and the email address associated with each group in the most easy to read format. I'm sure csv would be fine unless someone has an easier-to-read way of doing this. I also have been asked to provide a list of all user names that have an email address associated with them and all email addresses assocoated with each account (we have multiple email addresses and domains for most user accounts). I'm pretty new when it comes to using dsquery and haven't found a query that does exactly what I need yet. Does anyone have any suggestions using either AD or something on the Exchange side? My servers are all running Server 2003 Enterprise. Exchange is 2003 standard. Thanks.

Answer : Best way to export Distribution group names, users, and email addresses from Exchange 2003.

Are you removing the { }'s e.g., with a server called ALPHA that is a domain controller you would put:

ldifde -f groups.ldf -s ALPHA -r "(&(objectcategory=group)(objectclass=group))"

This will dump all groups - not sure if you can just pick the Distribution Group unless they are in a particular container.

It also helps if I get the syntax correct - sorry.groups.ldf

This will give you the groups on the server and the members of those groups.  Not sure if you can export all that you want in one go.

To export the members details of a specific Distribution group you can use this:

ldifde -f members.ldf -r "memberOf=cn=group name,ou=ou name,dc=domain,dc=name" -l mail

 

Random Solutions  
 
programming4us programming4us