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 'user@domain.com' -TargetDatabase DB01 -WhatIf
New-MoveRequest -Identity 'user@domain.com' -TargetDatabase DB01
(also moves any assosiaed archived mailbox)

You can view move request status with either:
Get-MoveRequestStatistics -Identity "user@domain.com" | 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 "user@domain.com" -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 "user@domain.com"
 You can also stop and suspend the migration request respectively:
Stop-MoveRequest -Identity "user@domain.com"
Suspend-MoneRequest -Identity "user@domain.com"
 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