skip to Main Content

Create bulk mailboxes in Exchange 2016 with PowerShell

In a previous article, we installed Exchange Server 2016. It’s the first Exchange Server in the organization, which means that there are no mailboxes configured. We need to create mailboxes for the existing users in the AD. In this article, you will learn how to create bulk mailboxes in Exchange 2016 with PowerShell. Are you ready?

Mailboxes area is empty after installing Exchange 2016

After installing Exchange Server 2016, we like to have a look in the mailboxes area. Log into Exchange Admin Center and navigate to recipients and click mailboxes. The mailboxes area is almost empty, except one mailbox is showing. That’s the account that we used for installing Exchange Server 2016.

Create bulk mailboxes in Exchange 2016 with PowerShell mailboxes

We can create mailboxes in Exchange Admin Center by clicking the + icon and following the wizard. For a couple of users, that would be great. What if you have more than a thousand users? The answer is, bulk create mailboxes in Exchange 2016 with PowerShell.

Create mailbox in Exchange for an existing user in AD

Run Exchange Management Shell as administrator. Verify that the user is in AD with the Get-User cmdlet. After that, make use of the Enable-Mailbox cmdlet to create a mailbox for the user in AD. If you have more than one database, it will automatically find a healthy database and creates the mailbox.

We like to create a mailbox for an existing user in AD, but the mailbox needs to be created in a specific database. In our organization, we have two databases configured in Exchange.

Create bulk mailboxes in Exchange 2016 with PowerShell two databases

Let’s create a new mailbox for the existing user in DB02. We are going to make use of the -Database parameter.

The mailbox is successfully created. Have a look at EAC in the mailboxes area. Click the refresh icon, and two new mailboxes show up.

Create bulk mailboxes in Exchange 2016 with PowerShell mailboxes three users

What if we need to enable a thousand mailboxes for existing users in AD?

Create bulk mailboxes in Exchange for existing users based on AD OU

We like to bulk create mailboxes for existing users based on OU. The users in the OU Finance are going to need a mailbox. First, let’s find the distinguished name of the Organizational Unit with PowerShell.

Copy the Distinguished Name value and paste it in the next command. Verify that the users are showing, after that enable the mailbox for the users in the OU Finance.

The mailboxes for the users in OU Finance are created, that’s great. We are going to confirm that in EAC by clicking the refresh icon.

Create bulk mailboxes in Exchange 2016 with PowerShell mailboxes 10 users

Create bulk mailboxes in Exchange for specific existing users in AD

What if you like to bulk create mailboxes for selected users? Let’s say that only seven users of the IT OU need to get a mailbox, but the IT department contains fifty users. Let’s get a list of users in the OU (in our example, we will only output ten users). After that, export the AD users from the given OU to a text file.

Find the text file in the exported path. The text file contains 50 users.

Create bulk mailboxes in Exchange 2016 with PowerShell export txt

Edit the list by removing or adding extra users to it. Now it contains seven users. Save the text file as import_users in the C:\ drive.

Now let’s bulk create mailboxes for the users in the text file.

Mailboxes from the text file are created, that’s fantastic. Let’s have a look at EAC. Click the refresh icon.

Create bulk mailboxes in Exchange 2016 with PowerShell mailboxes 17 users

The mailboxes are showing in EAC. I hope that this helped you to bulk create new mailboxes for existing users in AD. It’s faster when you do it with PowerShell.

Keep reading: Bulk move AD users to another OU with PowerShell »

Conclusion

In this article, you learned how to create bulk mailboxes in Exchange 2016 with PowerShell. If there is a small group that you need to create a mailbox for, you can do it with EAC. If you have many users who need a mailbox, bulk create new mailboxes with PowerShell.

I hope that this article was informative and that you enjoyed reading. You may also like Configure internal DNS Exchange 2016. Don’t forget to follow us and share this article.

ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Connect with ALI TAJRAN on social media. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top