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

  1.  

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

  1.  

Gather the Identity of the Target Mailbox   of the recreated mailbox using the following powershell cmds in the   DataCenter:
  Get-Mailbox <doman>\<alias> |ft Name

  1.  

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.

  1.  

Add LegacyDN to EmailAddresses of new   mailbox on premise (NOTE: THIS MUST BE DONE ON PREMISE):
    $adr = (Get-mailuser <domain\alias from step     two>).EmailAddresses
    $adr.Add(“X500:<ExchangeLegacyDN from step one>”)
    set-Mailuser <domain\alias> -EmailAddresses $adr

Wait for X500 address to replicate to   O365 (NOTE: THIS MUST BE DONE ON DATACENTER):
    (Get-mailbox <domain\alias>).EmailAddresses
 
Verify the X500 address of old mailbox is in the addresses list.

  1.  

Open a CXP Request with the following   Information:

  <domain>\<alias>
    ExchangeGuid
    PreviousDatabase

 

  Step

  Description - DC Op’s steps

  1.  

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

  1.  

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.

  1.  

Run the following command:

New-MailboxRestoreRequest   –SourceStoreMailbox <ExchangeGuid> -SourceDatabase   <PreviousDatabase> -TargetMailbox <domain\alias> -Priority High   –ConflictResolutionOption KeepLatestItem –AssociatedMessagesCopyOption Copy

  1.  

Wait for request to complete by   monitoring moverequest via:

Get-MailboxRestoreRequest   <domain>\<alias>\mailboxrestore

  1.  

Once request completes, save off move   request and attach to ops request bug:

Get-MailboxRestoreRequestStatistics   <domain>\<alias>\mailboxrestore   -IncludeReport |   Export-csv <bug#>.csv

  1.  

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.

arrow
arrow
    全站熱搜

    my007FFF 發表在 痞客邦 留言(0) 人氣()