Find Mailboxes With Specific Domain

In this Exchange Online blog post, I will show you how to Find mailboxes with Specific domain.

You might be asked to find users with an email domain set as an SMTP Alias.

Exchange Online PowerShell allows us to manage Exchange recipients and automate tasks.

In my case, I have a group of users, I need to remove their SMTP alias, and I want to find them and produce a CSV file.

Find Mailboxes With Specific Domain

The first step in this process is to connect to Exchange Online using PowerShell and the best way to do it is using Cloud Shell.

In my previous post, I showed how to use it.

Once connected, I will run the following command that will output a list of users with the domain (change to match your domain)

To export the result to a CSV file, run the following command.

Exchange Online

Exchange Online is a cloud-based email service provided by Microsoft as part of the Office 365 suite.

It offers the rich capabilities of Microsoft Exchange Server as a cloud service, allowing users to access their email, calendar, contacts, and tasks from PCs, the web, and mobile devices.

Designed for businesses of all sizes, Exchange Online helps organizations maintain control over their environment while gaining the advantage of hosting their email on Microsoft servers.

Notable features include robust security measures, large mailbox storage, and compliance solutions, which make it a powerful tool for managing corporate communication and enhancing collaboration within an organization.