remove user from migration batch

Glenn Maxwell 12,876 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

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,178 questions
Exchange | Exchange Server | Management
Exchange | Hybrid management
Exchange | Other
0 comments No comments
{count} votes

Accepted answer
  1. Amit Singh 5,306 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 37,746 Reputation points Moderator
    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 ******@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 12,876 Reputation points
    2023-09-01T17:11:40.8766667+00:00

    i am getting below error

    Remove-MigrationUser -Identity ******@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.