Find Email in Active Directory Domain Using CSVDE/LDIFDE

Posted on March 16th, 2009 in Active Directory,Exchange 2000,Exchange 2003,Microsoft,Server 2003,Server 2008 by Gil Kreslavsky

In windows 2003 and later you can use AD saved queries , but for windows 2000 domain the only way is by using CSVDE/LDIFDE
The following command should do the work :You will receive file output

csvde -f outputfilename.csv -d “dc=domain,dc=com” -r “(&(mailnickname=*)(proxyAddresses=smtp:email@yourdomain.com))” -l name

Change  “dc=domain,dc=com” to  your AD domain name and suffix, and email@yourdomain.com with the email address you’re looking for.

To find all recipients who have an email address from a particular SMTP domain, you can use a wild card (*), see example bellow:

csvde -f  filename.csv -d “dc=domain,dc=com” -r “(&(mailnickname=*)(proxyAddresses=smtp:*@yourdomain.com))” -l name

Related Articles

Facebook comments:

Post a comment






Search Kreslavsky.com
Custom Search