Solved

dumping all email addresses for exchange 2007 mailboxes

Posted on 2010-09-08
5
345 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 15

Expert Comment

by:Dave_AND
ID: 33627862
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
ID: 33628162
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
ID: 33628272
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
ID: 33628297
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
ID: 33628462
Took about 10 secs on 1000 objects
0

Featured Post

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

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

A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

695 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