Share via

remove user from migration batch

Glenn Maxwell 13,681 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 cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

Exchange | Hybrid management
Exchange | Hybrid management

The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.

Exchange | Other
Exchange | Other

A powerful email and collaboration platform developed by Microsoft, designed to support enterprise-level communication and productivity. Miscellaneous topics that do not fit into specific categories.

0 comments No comments

Answer accepted by question author

  1. Amit Singh 5,326 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. Kai Yao 37,786 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.

    1 person found this answer helpful.

  2. Glenn Maxwell 13,681 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.