Solved

Shell Command to get Smtp address of all mailboxes

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
Find out what you should include to make the best professional email signature for your organization.
In this video we show how to create a Contact 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 Recipients >> Contact ta…
To show how to create a transport rule 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 >> Rules tab.:  To cr…

856 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