question

JustinMicheal-7973 avatar image
0 Votes"
JustinMicheal-7973 asked KyleXu-MSFT commented

User has duplicate mailboxes

We have couple of users whose mailbox exist in both Exchange Online and on-premises.

The New-MailboxRestoreRequest -command restores only one message from the disabled onprem mailbox. How to fix this issue?
User has more than one item in the disabled mailbox:

I tried restoring two mailboxes, both restore requests were able to restore only one item

My requirement is to disable the duplicate OnPrem mailbox on restore it’s contents to Exchange Online mailbox.

office-exchange-online-itprooffice-exchange-server-mailflowoffice-exchange-server-connectivity
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered KyleXu-MSFT commented

@JustinMicheal-7973

The New-MailboxRestoreRequest -command restores only one message from the disabled onprem mailbox. How to fix this issue? User has more than one item in the disabled mailbox:

This command will recover all items from the disabled mailbox. If this command only recover one email from your disabled mailbox, I think you may recover the wrong disabled mailbox(There only exist one email in this mailbox).

You can try to follow this article to restored this disabled mailbox item to a new Exchange on-premises mailbox, check whether there only exist one email in this disabled mailbox.

============================

There also exist an another improvement plan: before step 3 "Disconnect the on-premises mailbox", you could use New-MailboxExportRequest command to export data from Exchange on-premises mailbox. Then, at the step 9, you could use Office 365 network upload service to import data to Exchange online mailbox.

In this way, you will could check whether PST files contain all emails correctly.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I double checked the source, target and database guid’s for the New-MailboxRestoreRequest step 9 and they are correct. Also the disabled mailbox has 177 items:

ItemCount : 177

MailboxGuid : hidden

DisconnectReason : Disabled


As there are clear instructions from Microsoft on how to recover a mailbox when it exists in both Exchange Online and Onprem, I’d prefer to get those instructions working rather than use completely different command (New-MailboxExportRequest). Do you need any additional info?

0 Votes 0 ·
KyleXu-MSFT avatar image KyleXu-MSFT JustinMicheal-7973 ·

I have provided the article in the original post. I would suggest you try to restore the data to another Exchange on-premises mailbox(Used to practice and understand this command).

If you could restore it to an Exchange on-premise mailbox, then you can try to restore it to an Exchange online mailbox. They are in the same way.

Here is an annotation for the command that used to rrestore data to Exchange online mailbox:

 New-MailboxRestoreRequest -RemoteHostName "mail.contoso.com" -RemoteCredential $cred -SourceStoreMailbox "exchange guid of disconnected mailbox" -TargetMailbox "exchange guid of cloud mailbox" -RemoteDatabaseGuid "guid of on-premises database" -RemoteRestoreType DisconnectedMailbox

-RemoteHostName: Exchange on-premises FQDN which could be resolved from the Internet
-RemoteCredential: Exchange on-premises Administrator account
-SourceStoreMailbox: GUID for Exchange on-premises mailbox that you want to restore data from
-TargetMailbox: GUID for Exchange online mailbox that you want to restore data to
-RemoteDatabaseGuid: Exchange Database GUID that hosted the disabled mailbox

0 Votes 0 ·
KyleXu-MSFT avatar image KyleXu-MSFT JustinMicheal-7973 ·

I am writing here to confirm with you any update about this thread now?
If the above suggestion helps, please be free to mark it as an answer for helping more people.

0 Votes 0 ·