Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1029
  • Last Modified:

Shell Command to get Smtp address of all mailboxes

Hi ,

Please suggest a Shell command to get email address and DisplayName of all mailboxes in exchange database.
0
iriz
Asked:
iriz
  • 2
  • 2
1 Solution
 
Glen KnightCommented:
Use the following:

Get-Mailbox | fl Name, WindowsEmailAddress
0
 
irizAuthor Commented:
Thankssssss .. :)
0
 
Glen KnightCommented:
You could also use the PrimarySmtpAddress instead of WindowsEmailAddress this will return the primary address if more emaill addresses are in use.
0
 
irizAuthor Commented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now