How do I export all email users and email addresses from Active Directory 2003 to a text file?

How do I export all email users and email addresses from Active Directory 2003 to a text file?
I tried the Export feature on the AD domain, but it does not give me email addresses.
Thanks
cliffordgormleyAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
SamuraiCrowConnect With a Mentor Commented:
Run this on a 2003 server or a Windows XP workstation with the admin tools installed:

dsquery user -limit 0|dsget user -samid -email > C:\report.txt

if you want the firstname and last name instead of the username run this line:

dsquery user -limit 0|dsget user -fn -ln -email > C:\report.txt

Hope this helps
Crow
0
 
Seelan NaidooMicrosoft Systems AdminCommented:
do an export either from your machine - if you have the Exchange Management Tools installed..

or from the Exchange Server itself..

Administrative Groups -> expand group -> servers -> storage group > mailbox store -> mailboxes

right click, select export list

select tab delimited..

save, and open the tab delimited file with Microsoft Excel..
0
 
cliffordgormleyAuthor Commented:
Sean, that does not provide email addresses.
0
All Courses

From novice to tech pro — start learning today.