New mailbox cmdlet

You're looking to create a new mailbox using PowerShell!

The cmdlet you're looking for is New-Mailbox. Here's the syntax:

New-Mailbox -Name <Name> -UserPrincipalName <UPN> -Alias <Alias> -Database <Database> [-OrganizationalUnit <OU>] [-PrimarySmtpAddress <SMTPAddress>] [-RecipientLimits <RecipientLimits>] [-RecipientPolicy <RecipientPolicy>] [-HiddenFromAddressListsEnabled <$true | $false>] [-HiddenFromExchangeClientsEnabled <$true | $false>] [-IgnoreDefaultScope <$true | $false>] [-DomainController <FQDN>] [-WhatIf [<SwitchParameter>]] [-Confirm [<SwitchParameter>]]

Here's a breakdown of the parameters:

Here's an example:

New-Mailbox -Name "John Doe" -UserPrincipalName "[email protected]" -Alias "johndoe" -Database "Mailbox Database" -OrganizationalUnit "Contoso.com/Users"

This command creates a new mailbox named "John Doe" with the UPN "[email protected]", alias "johndoe", and database "Mailbox Database" in the OU "Contoso.com/Users".