?
Solved

Shell Command to get Smtp address of all mailboxes

Posted on 2011-03-09
4
Medium Priority
?
1,025 Views
Last Modified: 2012-05-11
Hi ,

Please suggest a Shell command to get email address and DisplayName of all mailboxes in exchange database.
0
Comment
Question by:iriz
[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
4 Comments
 
LVL 74

Accepted Solution

by:
Glen Knight earned 2000 total points
ID: 35080512
Use the following:

Get-Mailbox | fl Name, WindowsEmailAddress
0
 

Author Closing Comment

by:iriz
ID: 35080533
Thankssssss .. :)
0
 
LVL 74

Expert Comment

by:Glen Knight
ID: 35080536
You could also use the PrimarySmtpAddress instead of WindowsEmailAddress this will return the primary address if more emaill addresses are in use.
0
 

Author Comment

by:iriz
ID: 35081533
Some one told me to user below command.. It never worked..

Get-Mailbox -resultsize unlimited | where {$_.emailaddresses -like "*domain.com.*"} | Export-csv c:\DomainComAu.csv
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

After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
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…
Suggested Courses

771 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