remove user from migration batch

Glenn Maxwell 11,841 Reputation points
2023-08-25T15:35:59.0266667+00:00

Hi All

i am using exchange 2016 hybrid environment. I have scheduled migration jobs which runs daily which migrates users from onprem to online. one of the mailbox has failed to migrate to exchange online and this mailbox is in many migration batches. i want to remove this mailbox from all the migration jobs so that i can migrate it again. This mailbox is in many migration jobs i am not sure how to remove it from all the previous migration jobs. Experts guide me

Microsoft Exchange Online
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,631 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,709 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
595 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,165 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amit Singh 4,986 Reputation points
    2023-08-28T09:02:56.56+00:00

    Run the below command to remove the mailbox from the first migration batch in the list:

    Remove-MigrationUser -Identity <MailboxIdentity> -BatchId 'FirstBatch'

    Repeat this step for each migration batch that the mailbox is in.

    Once you have removed the mailbox from all migration jobs, you can try migrating it again.

    Some helpful articles - How to Troubleshoot Failed Migrations?

    Please Note: Since the web sites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Kael Yao-MSFT 37,661 Reputation points Microsoft Vendor
    2023-08-28T01:31:50.5166667+00:00

    Hi @Glenn Maxwell

    Please use this cmdlet to remove the user from migration batch: Remove-MigrationUser

    Remove-MigrationUser -identity user@contoso.com
    

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

    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.


  2. Glenn Maxwell 11,841 Reputation points
    2023-09-01T17:11:40.8766667+00:00

    i am getting below error

    Remove-MigrationUser -Identity user1@contoso.com -BatchId "migrate1"

    Remove-MigrationUser : A parameter cannot be found that matches parameter name 'BatchId'.


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.