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!
polycorjspAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Ben HartConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.