Solved

How to retrieve all the email address from exchange server

Posted on 2013-01-31
4
309 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create an email address policy 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…
In this video we show how to create a mailbox database 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 Servers >> Data…

821 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