PowerShell Code: Find Users with Email Address From a Specific Domain

Today I’ll show you a great and also a classic Exchange Server PowerShell Code that will show you how to find users with an email address In a specific Domain.

To get this to work, you will need to use Exchange Management Shell or ISE with the Exchange snap-in loaded.

Get-Mailbox -ResultSize Unlimited | Where-Object {($_.EmailAddresses -like "*@JustDomain.local*")}