Export all users email addresses from Exchange

Want to create a complete list of all your email addresses in your domain?
And not only the default ones found with

dsquery user | dsget user -email

 

Answer

 

Ldifde -d "DC=domain,DC=co,DC=uk" -r "(&(mailnickname=*))" -l proxyAddresses -f emailaddresses.txt

 

 

Comments

Unknown said…
Thanks for the command. Three week browsing... finally. Those damn dsquery/dsget don't work in this special case. Even my AD Instructor couldn't answer when I asked this.

Thank you very much!!
Bodes Ill said…
Absolutely awesome command! I have spent hours looking for this. Nice, simple, gives exactly what I need. You're a star!!

Popular posts from this blog

Exchange Server Error -1018: How Microsoft IT Recovers Damaged Exchange Databases

Server and Domain Isolation Using IPsec and Group Policy

[Solved] The Group Policy client-side extension Internet Explorer Zonemapping failed to execute