Solved

LDIFDE Export Members of Distribution List & email addresses??

Posted on 2006-10-26
5
2,218 Views
Last Modified: 2012-08-14
Hi Guys,

Not sure if this is in the right section, i couldnt find an AD section.

Basically i need to provide a .txt file listing all email addresses of users in a certain distribution list. So far all i can do is list members and the email address of the distribution list, i need the email addresses of the members of the list.

Heres an example of what ive got so far:

ldifde -f exportgroup.txt -s DC -d "cn=test3,cn=Users,dc=domain,dc=net" -l "member,mail"

As i say i only get the members and the email address of the list itself, ideally all i really need is a list of email addresses of the members. This is very urgent and so have given 500 points, please help!

Cheers

Dan.

0
Comment
Question by:he_who_dares
  • 3
5 Comments
 
LVL 15

Accepted Solution

by:
wwwally earned 500 total points
ID: 17811271
I should use the 2003 ds commands to get the list.
It would look somthing like this:

dsquery group -name YourGroupname | dsget group -members | dsget user -email > c:\output.txt
Good luck,

Walter
0
 
LVL 31

Expert Comment

by:LeeDerbyshire
ID: 17811730
I don't think you can get the email addresses from active directory like that.  You can get the members (like you have done), but the only email address stored in AD is that of the DL itself.  My guess is that when you send to the DL, the email addresses are resolved at send time from the member values.
0
 
LVL 31

Expert Comment

by:LeeDerbyshire
ID: 17811782
Mind you, I haven't tried the dsquery method suggested by wwwally.  I meant to say that you can't get them using ldifde.
0
 
LVL 31

Expert Comment

by:LeeDerbyshire
ID: 17811823
I tried wwwally's ds method, and it works great.  I am impressed!
0
 

Author Comment

by:he_who_dares
ID: 17837412
Thanks for your help guys.

Just as a note for anyone else possibly reading this post... there is a program called Hyena that will pull all of this information out of AD plus much more, i found it soon after i posted on here and its a god send!

Cheers
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Migrating imap accounts to onsite exchange 6 36
Exchange 2016 2 37
Restrict Mailbox size in Exchange 2 25
Round robin for Exchange 2013 4 24
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Find out what you should include to make the best professional email signature for your organization.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question