Creating a Mailbox in Exchange is an extremely easy process. There are 3 types of mailboxes that can be created and they are for Users, Shared and Resource types. Exchange 2016 also offers the ability to create “Linked Mailboxes” which are essentially associated to external accounts should a Domain trust relationship exist with the current domain. User Mailboxes are of course the most used ones followed by Shared Mailboxes and the Resource Mailboxes which can be further created as Room or Equipment types.
Exchange offers the ability to create these mailboxes either by using the ECP page or even more conveniently with PowerShell commands. Very useful for creating and managing objects in batches. This article will cover both methods. In addition doesn’t matter if the Mailbox will be associated to existing users of Active Directory. Should this be the case the non-existing users will be automatically created in Active Directory irrespective of the method used.
Creating a User Mailbox using the Exchange ECP page

Â
Let’s use the + button to create a new User Mailbox

Â
The wizard offers the option to either create a mailbox for an existing user in Active Directory or create a new one providing the necessary details

Â

Â
As soon as the information are submitted the mailbox is created as per screenshot below

Â
By issuing the Get-Mailbox command we can also see the new user mailbox created

Â
Equally it appears in the Active Directory the User with populated entries
Â
Creating a User Mailbox using PowerShell
Using the ECP page to create and manage single objects is quite handy but if we are dealing with the management of multiple objects at the same time then this is an area where PowerShell can show one of its main pluses
The following is just a simple example showing the creation of a User Mailbox with the out of the box cmd-lets. Let’s say we want to create a mailbox for a new user not existing in Active Directory yet Ideally we can also provide a CSV file with all the necessary information and execute PowerShell commands in batch. This can be accomplished in 3 simple steps:
 Step 1: Let’s create a variable for the Password
 $password = Read-Host “Enter password” -AsSecureString

Â

Â
Step 2: Let’s get a list of available Mailbox Databases where to store this mailbox
Get-MailboxDatabase

Step 3: Let’s use the New-Mailbox cmd-let
New-Mailbox -UserPrincipalName Marty@domalab.com -Alias Marty -Database “domalab-DB01” -Name Marty
-OrganizationalUnit “domalab.com/AAD/EMEA/UK/Users” -Password $password -FirstName Marty -LastName McFly -DisplayName “Marty McFly”
-ResetPasswordOnNextLogon $true

Â
Excellent User Mailbox created! So If we now refresh the Recipient>Mailbox page again from the Exchange ECP page

Â
And the User Marty has been created as well in Active Directory as well

Â
Fantastic Marty McFly is now part of the Team 🙂
Next topic will cover how to move mailboxes between Exchange Databases
Add Comment