Solved

Shell Command to get Smtp address of all mailboxes

Posted on 2011-03-09
4
1,024 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 500 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create an email address policy 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…
how to add IIS SMTP to handle application/Scanner relays into office 365.

687 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