Hi All,

A short guide here on how to move Resource mailboxes with ease using PowerShell, this also can be done with any mailbox user.

Pretty much follow the commands like so, ensure you know the Alias of the Mailbox you are moving, your Server FQDN and your Target Domain in Office 365.

$LiveCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

Import-PSSession $Session -Prefix O365     (Prefix is very important, you need to specify a Prefix so Exchange and Exchange Online can determine who the command is for and to process)

$OnPremAdmin= Get-Credential

New-O365MoveRequest -Identity “MAILBOXALAIAS” -Remote -RemoteHostName “Domain.com.au” -RemoteCredential
$OnPremAdmin -TargetDeliveryDomain “Domain.mail.onmicrosoft.com

Now you can check the progress, using this command.

get-o365moverequest “MAILBOXALAIAS” – It Will show if it has failed, In progress or completed.

But what if it fails? You can view in your Exchange Management Console. Click under Office 365 Hybrid, and than move requests. You can view the logs and determine the issue. Some of the issues I had were with corrupted items. Otherwise running the above is usually fine

Run the following,

get-o365moverequest “MAILBOXALIAS” | Set-Moverequest -baditemlimit 10

Resume-O365moverequest “MAILBOXALIAS”

Check the Progress again,

get-o365moverequest “MAILBOXALIAS”

Hope this helps, let me know if anything doesn’t seem right by posting below =)

 

Cheers

Warwick@WiseOwl