Solved

dumping all email addresses for exchange 2007 mailboxes

Posted on 2010-09-08
5
340 Views
Last Modified: 2012-06-27
I need to dump the email addresses for my exchange users.  Some have more than one address and I need all of them in the dump.  I have tried:  
    get-user jane.Doe | select name, proxyaddresses and get-user jane.Doe | select name, emailaddresses
   The name field dumps as expected, but no email addresses get dumped.  

I need this to include mailboxes and contacts.

Thanks for any help!

Susan
0
Comment
Question by:suelizy
  • 2
  • 2
5 Comments
 
LVL 15

Expert Comment

by:Dave_AND
Comment Utility
Have a look at this: http://www.exchangepedia.com/2005/09/how-to-export-all-email-addresses-from-a-domain.html

Just tested it on my Exchange 2010 and it worked correctly
0
 

Author Comment

by:suelizy
Comment Utility
I did find that, but there is a lot of code in that one.  We have about 67,000 objects that will have to be queried.  How long did it take you to run it?  How many objects did it have to query?

I have gotten closer, I can dump it to the powershell screen with:  Get-Mailbox | fl Name, PrimarySMTPaddress, Emailaddresses

I cannot get it to dump to file.  I have tried adding these, but the data does not dump.
     | Export-CSV "c:\proxy.csv" and
     | >c:\proxy.txt

Thanks!

Susan
0
 
LVL 13

Expert Comment

by:soostibi
Comment Utility
I think this will do what you want:
(Get-Mailbox),(get-mailcontact)| %{$_} | Select-Object -ExpandProperty emailaddresses | Select-object -expandproperty smtpaddress

Open in new window

0
 
LVL 13

Accepted Solution

by:
soostibi earned 500 total points
Comment Utility
Sorry, I forgot about the name. Here is the corrected one:
(Get-Mailbox),(get-mailcontact)| %{$_} | Select-Object -property name -ExpandProperty emailaddresses | Select-Object -Property name, smtpaddress

Open in new window

0
 
LVL 15

Expert Comment

by:Dave_AND
Comment Utility
Took about 10 secs on 1000 objects
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
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
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…

762 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

10 Experts available now in Live!

Get 1:1 Help Now