unable to migrate

Glenn Maxwell 12,211 Reputation points
2025-01-12T06:52:52.3133333+00:00

Hi All,

I am using an Exchange 2016 hybrid environment and facing an issue migrating a user from on-premises to online. I am seeing the error below.

mr

I tried using the Enable-RemoteMailbox syntax from on-premises, but it did not work since the mailbox already exists in the on-premises environment.

Enable-RemoteMailbox -id "user1" -RemoteRoutingAddress "user1@contoso.mail.onmicrosoft.com" -alias user1
This task does not support recipients of this type. The specified recipient User1 is of type UserMailbox. Please make sure that this recipient
matches the required recipient type for this task.

If I delete the mailbox from the on-premises Exchange and execute the Enable-RemoteMailbox command, will it work?

Please note: I do not want the Active Directory account to be deleted, as I cannot recreate the account in AD. In our environment, AD accounts are created by an IAM tool.

Could someone guide me on how to delete the mailbox in on-premises Exchange without deleting the associated AD account or guide me how to troubleshoot migration error.

Microsoft Exchange Online
Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,420 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,705 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,774 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,211 questions
0 comments No comments
{count} votes

Accepted answer
  1. Xintao Qiao-MSFT 6,030 Reputation points Microsoft Vendor
    2025-01-13T02:54:01.1566667+00:00

    Hi, @Glenn Maxwell

    Based on your description, if you delete the mailbox from your on-premises Exchange and then execute the Enable-RemoteMailbox command, it should work fine. This is because the user will no longer own the local mailbox, and the cmdlet can create a remote mailbox for the user in a cloud-based service, and if they do, the data in the local mailbox will be lost.

    Considering that you can't delete an Active Directory account, you can try disabling the mailbox. When you disable a mailbox, all Exchange attributes are removed from the associated user account in Active Directory. Disable or delete a mailbox in Exchange Server | Microsoft Learn

    The GUI operations for Exchange 2016 are visible: Step by Step How to Delete Mailbox Without Deleting User Account in Exchange Server : MKS Technology Inc

    For errors during migration, you can try the following common suggestions:

    1.The issue does not affect the entire database, but a specific mailbox. You can refer to: How to Fix Error “Too Many Transient Failure Retries Permanent Exception”?

    2.Since some mailboxes have this issue, using PST migration is also a good option. Export emails, contacts, and calendar items to Outlook using a .pst file - Microsoft Support


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


1 additional answer

Sort by: Most helpful
  1. Amit Singh 5,071 Reputation points
    2025-01-13T06:45:53.2333333+00:00

    To remove the mailbox from on-prem Exchange without affecting the AD account, you can go with the below command-

    Disable-Mailbox -Identity "user1"
    

    This will remove the mailbox from on-prem but keep the AD account intact.

    To Fix Error “Too Many Transient Failure Retries Permanent Exception" error you can go with the Xiantao recommendation.

    Let me know if you have any other query.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.