Author: Brody Kilpatrick | Created: October 15, 2021
Here are some notes from my recent experience preparing AD for Exchange 2019 and the commands I used.
First of all, I did not find any blogs that had fully correct step-by-step instructions on schema extensions and preparing AD. They were all missing something, and I had to refer back to Microsoft’s documentation, which was not clear and is (in my opinion) incomplete.
Secondly, these are notes - not instructions or a how-to. This is to help you write your own instructions.
What does my environment look like?
Here are references to articles, blogs, and documentation I used when extending AD for Exchange 2019.
My Notes
1.
Prerequisites - Regardless of all the Exchange prerequisites needed, you MUST have at least the following items to prepare AD using the command line.
You can see the above information at this link: https://docs.microsoft.com/en-us/exchange/plan-and-deploy/prerequisites?view=exchserver-2019#exchange-2019-prerequisites-for-preparing-active-directory
To install Exchange there are many more prerequisites.
2.
ALL domain controllers MUST BE UP, and you have to give time for replication to take place.
3.
Since I am already running a hybrid environment, I had to download the hybrid config xml from O365 and add the xml file to the final command. For reference and more information, check this blog: https://blog.rmilne.ca/2021/05/10/tenantorganizationconfig-required-when-preparing-active-directory/
4.
Here was my final command:
Setup.exe /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF /PrepareAD /OrganizationName:"orgname" /TenantOrganizationConfig C:\MyTenantOrganizationConfig.xml