Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

get all mail addresses from exchange 2007

Posted on 2010-11-09
5
Medium Priority
?
458 Views
Last Modified: 2012-05-10
how to get all email addresses in the global address list of exchange 2007 ?
0
Comment
Question by:F_A_H_D
  • 3
  • 2
5 Comments
 
LVL 49

Expert Comment

by:Akhater
ID: 34091023
get-Mailbox -ResultSize unlimited | ft name,primarysmtpaddress
will give you all the mailboxes


get-distributiongroup -ResultSize unlimited | ft name,primarysmtpaddress
will give you the distribution groups

get-dynamicdistributiongroup -ResultSize unlimited | ft name,primarysmtpaddress
will give you all the dynamic distribution groups

get-mailcontact -ResultSize unlimited | ft name,primarysmtpaddress
will give you all the mail contacts
0
 
LVL 3

Author Comment

by:F_A_H_D
ID: 34091179
and how to export it to csv or xls
0
 
LVL 49

Accepted Solution

by:
Akhater earned 200 total points
ID: 34091215
get-Mailbox -ResultSize unlimited | select-object name,primarysmtpaddress | export-csv c:\Mailboxes.csv

get-distributiongroup -ResultSize unlimited | select-object name,primarysmtpaddress | export-csv c:\Distro.csv

get-dynamicdistributiongroup -ResultSize unlimited | select-object name,primarysmtpaddress | export-csv c:\DynDistro.csv

get-mailcontact -ResultSize unlimited | select-object name,primarysmtpaddress | export-csv c:\Contacts.csv
0
 
LVL 3

Author Closing Comment

by:F_A_H_D
ID: 34091527
perfect
0
 
LVL 3

Author Comment

by:F_A_H_D
ID: 35783515
and if it exchange 2010
how to get the creation date and last login ?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
Stellar Exchange Toolkit: this 5 in 1 toolkit comes loaded with mega-software tool. Here’s an introduction to tools’ usage and advantages:
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…
This video discusses moving either the default database or any database to a new volume.
Suggested Courses

916 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