• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

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
0
cliffordgormley
Asked:
cliffordgormley
1 Solution
 
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
 
SamuraiCrowCommented:
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
 
cliffordgormleyAuthor Commented:
Sean, that does not provide email addresses.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now