Required to Create a Shared Mailbox in Hybrid Exchange? Ever wondered how to do this rather than create it onsite and then have the lengthy process of migrating it to the cloud. If so then you are not alone. The following post should help assist you in completing this task. This is particular helpful if you have recently carried out a migration to Exchange Online or are part of the way through the process at present. The official Microsoft PowerShell commands can be found on the following page. However, as normal their is little to no context behind this for the standard IT Administrator.
Creation of Shared Mailbox
First you need to connect to PowerShell and authenticate. If your not familiar with this process then we recommend reading the following blog post to assist first. Once you have opened PowerShell and successfully connected to Exchange Online. You can amend the below PowerShell command to suit your requirements for the mailbox you are provisioning.
New-Remotemailbox -Shared -Alias "Finance.Team" -Name "Finance.Team" -FirstName "Finance" -LastName "Team" -OnPremisesOrganizationalUnit "OU=Shared Mailboxes,DC=TheTechEvolution,DC=com" -SamAccountName "Finance.Team" -UserPrincipalName "Finance.Team@TheTechEvolution.com"
The above command will then create the mailbox called Finance.Team in Exchange Online. Whilst leaving a disabled User account in your on premises AD similar to the legacy shared mailbox creation.
Seeing an issue where the mailbox is not showing in Exchange Online. Move the account to an OU in scope of Microsoft 365. If this is not the case the mailbox will provision in a soft deleted state. You would then need to rerun an manual delta sync or wait up to 30 minutes.
Please Leave a Comment
If the above has helped you in exchange hybrid create a shared mailbox then please let us know by leaving a comment or feel free to share the article below. If you have any errors or require more details on anything covered then please comment.
Hybrid Exchange Create A Shared Mailbox for Microsoft Exchange 365 Online