Enable Remote Mailbox (Hybrid) using Exchange Management Shell
- First create a new mailbox in Active Directory and then assign a licence to the account on Office 365.
- To create an Online Mailbox for user & whilst running in Hybrid Mode you need to run the following PowerShell command on the On-Prem Exchange server to connect the AD account to the O365 mailbox:
Open the Exchange Management Shell on-prem and run the following cmdlets:
Enable-RemoteMailbox “Ahmed Mohammed” -RemoteRoutingAddress "amohammed@specialistech.mail.onmicrosoft.com"
The Enable-RemoteMailbox cmdlet can be run immediately after creating the user account in Active Directory.
Replace the Full name, username and domain name (example highlighted below in yellow):