Migration batch by powershell

Marc 631 Reputation points
2022-10-26T23:55:28.577+00:00

To save time I would like to create a cloud Migration batch by powershell.
A part the ExchangeOnlineManagement module and Connect-ExchangeOnline -UserPrincipalName <user>
what are the comandlet i need to complete this task?

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,578 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
547 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,551 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Joyce Shen - MSFT 16,671 Reputation points
    2022-10-27T02:46:20.15+00:00

    Hi @Marc

    What type of migration do you want to perform?

    The command related to migration batch you may need:

    You could take a reference at the examples using them:

    Moving mailboxes to smaller batches for completion
    USING NEW-MIGRATIONBATCH TO PERFORM LOCAL MAILBOX MOVES IN EXCHANGE SERVER 2013
    Complete migration batch with PowerShell
    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.


    If an Answer 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.

    0 comments No comments

  2. Marc 631 Reputation points
    2022-10-27T08:56:47.723+00:00

    Thank you @Joyce Shen - MSFT

    Creating manually I usually setup the value below:

       -Give migration batch a unique name  
       -Select the mailbox migration path  
       -Select the migration type  
       -Select migration endpoint  
       -Target delivery domain  
       -Start the migration batch by  
       -Endthe migration batch by  
    

    Do you have an example where there are all those setting ?


  3. Marc 631 Reputation points
    2022-10-31T16:17:13.24+00:00

    I couldn't find a way to add the attributes that I need .....

    Install-Module -Name ExchangeOnlineManagement
    set-executionpolicy remotesigned -Scope CurrentUser -forceConnect-ExchangeOnline -UserPrincipalName chris@Company portal .com

    New-MigrationBatch -Name "TestUsers 01" -UserIds TestMailbox01@exchangelabs.co.uk –Local –TargetDatabases DB02 –AutoStart -DisableOnCopy
    -AutoStart

    Complete-MigrationBatch -Identity " TestUsers 01"


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.