Monday 23 March 2015

Migrating users between mailbox databases in Exchange 2013

Migrating users between mailbox databases in Exchange 2013

Test whether mailbox is suitable to move:
New-MoveRequest -Identity '[email protected]' -TargetDatabase DB01 -WhatIf
New-MoveRequest -Identity '[email protected]' -TargetDatabase DB01
(also moves any assosiaed archived mailbox)

You can view move request status with either:
Get-MoveRequestStatistics -Identity "[email protected]" | Format-List
Get-MoveRequestStatistics -MoveRequestQueue <mailbox-server>
You can also view the report data (which is extremely useful when diagnosing migration problems!):

Get-MoveRequestStatistics -Identity "[email protected]" -includereport | Format-List

You can also resume any failed move request with:
Get-MoveRequest -MoveStatus Failed | Resume-MoveRequest
And to delete a move request:
Remove-MoveRequest -Identity "[email protected]"
 You can also stop and suspend the migration request respectively:
Stop-MoveRequest -Identity "[email protected]"
Suspend-MoneRequest -Identity "[email protected]"
 It is also worth noteing that when a mailbox is migrated from one database to another - it is not actually deleted immiediately and is rather put into a "soft-deleted" state and are not actually purged until the "deleted mailbox rentation" period lapses or the Remove-StoreMailbox command is issued. You can review all of the mailboxes in the "soft-deleted" state by issuing:

Get-MailboxDatabase | Get-MailboxStatistics | Where { $_.DisconnectReason -eq "SoftDeleted" } | ft DisplayName,Database,DisconnectDate

For more information please see here.

0 comments:

Post a Comment