Solved

get all mail addresses from exchange 2007

Posted on 2010-11-09
5
437 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 50 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

Industry Leaders: 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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
how to add IIS SMTP to handle application/Scanner relays into office 365.

730 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