Go Premium for a chance to win a PS4. Enter to Win

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

how to list all exchange 2010 addresses for a specific Domain

Hi!

I have an exchange server accepting email from 4 different domains.  I want to have a list of all email ending with @emaildomain2.com.

Is it possible?

Thanks!
0
polycorjsp
Asked:
polycorjsp
1 Solution
 
Ben HartCommented:
Try this on for size

Get-Mailbox -resultsize unlimited | Select-Object displayname -expandproperty emailaddresses| Where-Object {$_.smtpaddress -like "*domain.com*"}| Select-Object displayName,SmtpAddress | Export-csv C:\domain.csv

Open in new window

0
 
polycorjspAuthor Commented:
Thanks!
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

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