Solved

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

Posted on 2006-11-01
3
244 Views
Last Modified: 2012-05-05
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
Comment
Question by:cliffordgormley
3 Comments
 
LVL 10

Expert Comment

by:SeanUK777
ID: 17850606
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
 
LVL 9

Accepted Solution

by:
SamuraiCrow earned 250 total points
ID: 17852287
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
 

Author Comment

by:cliffordgormley
ID: 17853071
Sean, that does not provide email addresses.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question