Exchange hybrid prepareAD

fsdg 986 Reputation points
2021-10-11T14:50:16.56+00:00

Hello,

I need to migrate Exchange 2013/2016 to Exchange 2019 in hybrid environment.

According to this article /prepareAD is different in hybrid environment:
Setup /PrepareAD /TenantOrganizationconfig:C:\0365oconfig.xml /IacceptExchangeServerLicenseTerms
https://www.c-sharpcorner.com/article/hybrid-exchange-2010-to-hybrid-exchange-2016-part-one/

Microsoft says that you need to run this command only if after /prepareschema you receive the error message and only for Exchange 2013/2016
https://learn.microsoft.com/en-us/exchange/troubleshoot/administration/error-when-running-setup-prepareschema

Do I need to preperaAD this way in hybrid environment?:
Setup /PrepareAD /TenantOrganizationconfig:C:\0365oconfig.xml /IacceptExchangeServerLicenseTerms

Thank you

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,369 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.
1,901 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lucas Liu-MSFT 6,161 Reputation points
    2021-10-12T03:54:26.1+00:00

    Hi @fsdg ,
    The command line in the article you provided is the command line that needs to be run under specific circumstances. Normally, you can directly run the following command line to complete Prepare AD.

    <Virtual DVD drive letter>:\Setup.exe /IAcceptExchangeServerLicenseTerms_DiagnosticDataON /PrepareAD  
    

    It should be noted that the above command line is only available from the latest CU of Exchange 2016 and Exchange 2019 in September 2021. Respectively Exchange 2016 CU22 and Exchange 2019 CU11. For more informatin you could refer to: Use unattended mode in Exchange Setup and Exchange Server build numbers and release dates

    If your on-prem Exchange server is not the latest CU version, please run the following command line Prepare AD.

    <Virtual DVD drive letter>:\Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAD  
    

    For more informatin you could refer to: Prepare Active Directory and domains for Exchange Server

    The following is my test in the hybrid lab environment. Directly running the above command line can successfully Prepare AD.
    139580-image.png

    ----------

    If the response 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.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Amit Singh 4,846 Reputation points
    2021-10-12T03:08:09.633+00:00

    To install Exchange Server 2019, connect the Exchange Server 2019 media to the server machine and mount the ISO. Then open the Command Prompt window to navigate to the Setup.exe location using the cd (change directory) command.

    Then run the below command in Command Prompt window to prepare the Schema and the AD.

    Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms
    Setup.exe /PrepareAD /OrganizationName:”Contoso” /IAcceptExchangeServerLicenseTerms
    

    Here you have prepared the Active Directory to be Exchange 2019 friendly and now you can start the installation. Before you start, make sure that no new updates are available for the prerequisites you’ve installed.

    Now launch the Setup.exe.

    For more detail check this Step by Step guide - How Do I Migrate from Exchange 2013 to 2019?

    3 people found this answer helpful.
    0 comments No comments

  2. Andy David - MVP 142.3K Reputation points MVP
    2021-10-11T17:13:17.453+00:00

    All you need to run is:

    Setup /PrepareAD//IAcceptExchangeServerLicenseTerms_DiagnosticDataON
    

    The new switch is required for the latest CUs

    1 person found this answer helpful.
    0 comments No comments