How to migrate Resource (room) mailboxes to Office 365

This guide is based on an Exchange 2013 Hybrid environment and describes the steps required to migrate resources mailboxes (in this case Room mailboxes) from On-premise Exchange to Exchange Online (Office 365)

Step 1:          Connect to Exchange Online via Powershell

Open Windows PowerShell and run the following command:

$UserCredential = Get-Credential


When prompted, type your Exchange Online user name and password


Run the following command:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic –AllowRedirection


Run the following command:

Import-PSSession $Session


You are now connected to Exchange Online via powershell

Step 2:          Move Resource (Room) Mailbox to Exchange Online via Powershell

Run the following command:


When prompted, enter the on-premises administrator credentials.

Run the following command:

New-MoveRequest –identity “UPN of mailbox to be migrated” -Remote -RemoteHostName “FQDN of your hybrid server(s) e.g.” -RemoteCredential $OnPremAdmin -TargetDeliveryDomain “”


The resource mailbox is now queued for migration


Leave a Reply

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