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-premises 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.