Solved

How to retrieve all the email address from exchange server

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

Read this checklist to learn more about the 15 things you should never include in an email signature.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

867 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

16 Experts available now in Live!

Get 1:1 Help Now