Description
Disabling mailboxes on premise results in deletion of mailboxes in the cloud via DirSync. If a restore request is made within 30 days, the following procedure can be used to merge the content of the previous RemovedMailbox into an existing mailbox.
***WARNING*** because this is merging data from mailbox into another mailbox, care must be taken to verify both source and destinations before executing this procedure.
Scope
Per User
Detailed Execution Steps
The following table provides detailed instructions for each step in the above workflow
Step |
Description |
Gather the ExchangeGuid, Source Database and LegacyDN of the deleted mailbox using the following powershell cmds in the DataCenter: Get-RemovedMailbox <domain>\<alias>* |ft Name, ExchangeGuid, PreviousDatabase, LegacyExchangeDN |
|
Gather the Identity of the Target Mailbox of the recreated mailbox using the following powershell cmds in the DataCenter: |
|
Verify that Name from both of previous operations are the same. The name from the Removed mailbox might have random numbers/letters appended to it. |
|
Add LegacyDN to EmailAddresses of new mailbox on premise (NOTE: THIS MUST BE DONE ON PREMISE): Wait for X500 address to replicate to O365 (NOTE: THIS MUST BE DONE ON DATACENTER): |
|
Open a CXP Request with the following Information: <domain>\<alias> |
Step |
Description - DC Op’s steps |
Gather the size of the RemovedMailbox and Target Mailbox: Get-MailboxStatistics –database <PreviousDatabase> -StoreMailboxIdentity <ExchangeGuid> |ft DisplayName, TotalItemSize, ItemCount Get-MailboxStatistics <doman>\<alias> |ft DisplayName, TotalItemSize, ItemCount |
|
Verify that Name from both of previous operations are the same. The name from the Removed mailbox might have random numbers/letters appended to it. |
|
Run the following command: New-MailboxRestoreRequest –SourceStoreMailbox <ExchangeGuid> -SourceDatabase <PreviousDatabase> -TargetMailbox <domain\alias> -Priority High –ConflictResolutionOption KeepLatestItem –AssociatedMessagesCopyOption Copy |
|
Wait for request to complete by monitoring moverequest via: Get-MailboxRestoreRequest <domain>\<alias>\mailboxrestore |
|
Once request completes, save off move request and attach to ops request bug: Get-MailboxRestoreRequestStatistics <domain>\<alias>\mailboxrestore -IncludeReport | Export-csv <bug#>.csv |
|
Save the output from above steps into ops bug and remove request: Remove-MailboxRestoreRequest <domain>\<alias>\mailboxrestore |
Note: Where applicable the script or workflow or cmdlet should always be executed via Central Admin for Auditing. So please keep that in mind while prescribing the steps to the operator.
Validation Steps
Verify the restore completed successfully by summing TotalItemSize and ItemCount of source and target mailboxes gathered in step six, and then validating against Target after successful completion. Note: There may be duplicate items in both mailboxes that end up not being merged resulting in a number less than the sum.
Get-MailboxStatistics <domain>\<alias> |ft DisplayName, TotalItemSize, ItemCount
Steps to undo the changes
There is no process to undo a merge. Any data restored to a mailbox, cannot be deleted nor rolled back by canceling the request.
留言列表