?
Solved

How to retrieve all the email address from exchange server

Posted on 2013-01-31
4
Medium Priority
?
327 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 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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
If you have come across a situation where you need to find some EDB mailbox recovery techniques, then here you will find the same. In this article, we will take you through three techniques using which you will be able to perform EDB recovery. You …
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

840 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