An update to the earlier post on HOW TO: Find an email address in Active Directory (Note: Content from this post has been merged with the previous post, simply click on this link to see the roll-up post on finding email addresses), which shows how to find a recipient with a particular email address using ADUC's Saved Queries feature.
Using CSVDE/LDIFDE to find an email address: Saved Queries isn't available in the Windows 2000 version of ADUC. You can also use CSVDE or LDIFDE to export this information to a file, using the following command:
To find all recipients who have an email address from a particular SMTP domain, you can use a wildcard, e.g.:
Finding email addresses using the Exchange shell (Exchange Server 2007): The Exchange Server 2007 shell makes it easier (once you familiarize yourself with shell basics). To get a list of all recipients with email addresses from a particular domain:
01/03/2007: Changed title, added Update to differentiate from previous post with same title
12/03/2007: Content from this post merged into the previous post HOW TO: Find an email address in Active Directory.
Using CSVDE/LDIFDE to find an email address: Saved Queries isn't available in the Windows 2000 version of ADUC. You can also use CSVDE or LDIFDE to export this information to a file, using the following command:csvde -f outputfilename.csv -d "dc=domain,dc=com" -r "(&(mailnickname=*)(proxyAddresses=smtp:foo@domain.com))" -l name
Replace "dc=domain,dc=com" with your AD domain name and suffix, and foo@domain.com with the exact email address you're looking for.To find all recipients who have an email address from a particular SMTP domain, you can use a wildcard, e.g.:
csvde -f outputfilename.csv -d "dc=domain,dc=com" -r "(&(mailnickname=*)(proxyAddresses=smtp:*@domain.com))" -l name
In the above example, only the name field is exported. All CSVDE/LDIFDE queries also return the object's distinguishedName. To add more fields to the list, insert a coma after name and type new field names separated by a coma: e.g.name,displayName,sAMAccountName,proxyAddresses,homeMDB
Finding email addresses using the Exchange shell (Exchange Server 2007): The Exchange Server 2007 shell makes it easier (once you familiarize yourself with shell basics). To get a list of all recipients with email addresses from a particular domain:get-recipient | where {$_.emailaddresses -match "domain.com"} | select name,emailaddresses
To get a list of recipients with a particular email address:get-recipient | where {$_.emailaddresses -match "foo@domain.com"} | select name,emailaddresses
Changes:01/03/2007: Changed title, added Update to differentiate from previous post with same title
12/03/2007: Content from this post merged into the previous post HOW TO: Find an email address in Active Directory.
Labels: AD/LDAP, Exchange Shell, GAL/Address Lists, Mailbox

Exchangepedia Blog is read by visitors from all 50 US States and 150 countries world-wide

2 Comments:
User AD accounts going to expire in 10 days. Can the AD send an notification email to that particular user everyday at 12mn?
I noticed that many shortcuts on discovering someone'e email address are given, but why not go through an easier and specifically dedicated email locating program? I mean there are literally hundreds of them out there, and many times they can save you hours of searching with tricks. I went to
http://howtofindsomeonesemailaddress.wikidot.com/ to find out my info on using email locaters properly, but most of the others out there are also credible and well worth a look. Just my $.02
Post a Comment
Links to this post:
Create a Link
<< Home