Solved

How to retrieve all the email address from exchange server

Posted on 2013-01-31
4
306 Views
Last Modified: 2013-02-10
Hi,

Any can one hep me that.. how to get all user mail id from exchange sever?
I need to export into excel or word? is it possible?

Sudhakar
0
Comment
Question by:kbmsudha84
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
Rajitha Chimmani earned 500 total points
ID: 38842451
If you are looking for just the primary SMTP address of the users, you can use the below command to export the email addresses to a csv file.

Get-Mailbox -Resultsize unlimited -Filter {Recipienttypedetails -eq UserMailbox} | Select Name,PrimarySMTPAddress | Export-csv Users.csv

If you are looking for all email addresses to be listed, you can use the below command
Get-Mailbox -Resultsize unlimited | Select Name -expand emailaddresses | where {$_.smtpaddress} | Ft Name,SMTPAddress | export-csv Users.csv
0
 

Author Comment

by:kbmsudha84
ID: 38842457
Hi,

Thanks.. where should i run?  Is it in Exchange server using cmd window?

I tried in exchange server side. but its say bad command line
0
 
LVL 16

Expert Comment

by:Rajitha Chimmani
ID: 38842511
Open Exchange Management Shell and copy the entire command
0
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 38842578
You can also run with

CSVDE -F C:\User.csv ............. use filters with -L for attributes you want

- Rancy
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Exchange 2013 Email forwarding. 5 35
exchange 6 32
EXCHANGE 6 23
Exchange 2003 Message retrieval 3 14
We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now