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

ResourceMailbox-1

When prompted, type your Exchange Online user name and password

ResourceMailbox-2

Run the following command:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid/" -Credential $UserCredential -Authentication Basic –AllowRedirection

ResourceMailbox-3

Run the following command:

Import-PSSession $Session

ResourceMailbox-4

You are now connected to Exchange Online via PowerShell

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

Run the following command:

$OnPremAdmin=Get-Credential

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. hybrid.yourdomain.com” -RemoteCredential $OnPremAdmin -TargetDeliveryDomain“yourdomain.mail.onmicrosoft.com”

ResourceMailbox-5

The resource mailbox is now queued for migration.