Solved

how to list all exchange 2010 addresses for a specific Domain

Posted on 2013-10-30
2
308 Views
Last Modified: 2013-10-30
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
Comment
Question by:polycorjsp
2 Comments
 
LVL 14

Accepted Solution

by:
Ben Hart earned 500 total points
ID: 39611924
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
 

Author Closing Comment

by:polycorjsp
ID: 39611950
Thanks!
0

Featured Post

Does Powershell have you tied up in knots?

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create an Accepted Domain 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 >> Ac…
In this video we show how to create a mailbox database 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 Servers >> Data…

809 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