?
Solved

How to retrieve all the email address from exchange server

Posted on 2013-01-31
4
Medium Priority
?
312 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
Rajitha Chimmani earned 1500 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
In this video we show how to create an Address List 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 Organization >> Ad…
how to add IIS SMTP to handle application/Scanner relays into office 365.
Suggested Courses

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