Distribution List Members Export
I’m trying from so long to get the list of members in my AD 2003 distribution list with their email address. I used LDIFDE & CSVDE for the same but dint helped. I even tried searching help on web for the same, yet no success. So now, can anyone from here please provide me a sample string for doing this? Thanks for all your helps.
Re: Distribution List Members Export
Try something similar to below to enumerate members of
cn=Mylist,ou=Sales,dc=MyDomain,dc=com:
csvde -f report.txt -r "memberOf=cn=MyList,ou=Sales,dc=MyDomain,dc=com" -l sAMAccountName,displayName,mail
ldifde -f report.txt -r "memberOf=cn=MyList,ou=Sales,dc=MyDomain,dc=com" -l sAMAccountName,displayName,mail
You must specify the full distinguished name of the distribution group.
RE: Distribution List Members Export
Thank you very much for the help Eduards. You were correct. By the way can you please suggest a link for the csvde syntax that I may use for future events?
Help appreciated.
Re: Distribution List Members Export
The only syntax I've seen is what you get at a DC command prompt with the
command: csvde -?
I redirected this to a text file for reference. The -r switch can accept any
LDAP search filter.