Post date: Jun 18, 2014 7:55:23 AM
--- Remote mailbox move---
Open Windows Powershell - Not EMS
$UserCredential = Get-Credential (use domain admin credentials)
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
$OnPremAdmin=Get-Credential
Move Command
new-moverequest -identity domain\username -remote -remotehostname OWA.DOMAIN.IE -targetdeliverydomain domain.onmicrosoft.com -remotecredential $onpremadmin
Additional Switches
-BadItemLimit 500
-AcceptLargeDataLoss
To check status you can use the following commands
Get-moverequest (displays status of move requests)
Get-moverequest |fl (same as above with a little more info)
Get-moverequeststatists (gives % progress)
Get-MoveRequest -MoveStatus inprogress | Get-MoveRequestStatistics -IncludeReport | select * (gives you a report for all users currently being migrated)
Use the Shell to clear or remove a move request
This example clears the move request from all mailboxes that have a status of Completed.
Get-MoveRequest -MoveStatus Completed | Remove-MoveRequest
This example removes the move request for Ayla's mailbox.
Remove-MoveRequest -Identity 'Ayla@humongousinsurance.com'
So chances are there is a good possibility that a small number of mailboxes have the status of Failed and that if you dig in to the log of the transfer you will come across the following error: