Part 3 – Install and Configure Exchange Server 2019

Introduction

In Part 2 of this blog series, we have reviewed the required components of Exchange Server 2019 Install and Configure. We successfully installed the prerequisites for Windows Server 2019 for Exchange Server installation. As all prerequisites for Windows Server 2019 are complete. Now is the time to extend your Active Directory with Exchange Server 2019. It’s recommended to perform this task after hours and ensure you have a backup of your active directory before you perform steps mentioned in this blog post.

Exchange Server 2019 installation requires AD Schema to be prepared.

Extend the Active Directory schema

When you extend the Active Directory schema for Exchange, the following requirements apply:

  • Your account needs to be a member of the Schema Admins and Enterprise Admins security groups. If you have multiple Active Directory forests, make sure you’re logged into the right one.
  • The computer needs to be a member of the same Active Directory domain and site as the schema master.
  • If you use the /DomainController:<DomainControllerFQDN> switch, you need to specify the domain controller that’s the schema master.
  • The only supported way to extend the schema for Exchange is to use Setup.exe with /PrepareSchema, /PrepareAD, or the Exchange Setup wizard. Other ways of extending the schema aren’t supported.

Run the following cmdlet from PowerShell to extend AD Schema for Exchange Server 2019.

.\Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareSchema

Part 3 - Install and Configure Exchange Server 2019Prepare Active Directory

After Active Directory schema has been extended, you can prepare other parts of Active Directory for Exchange. During this step, Exchange will create containers, objects, and other items in Active Directory to store information. The collection of the Exchange containers, objects, attributes, and so on, is called the Exchange organization.

When you prepare Active Directory for Exchange, the following requirements apply:

  • Your account needs to be a member of the Enterprise Admins security group. If you skipped Step 1 because you want the /PrepareAD command to extend the schema, the account also needs to be a member of the Schema Admins security group.
  • The computer needs to be needs to be a member of the same Active Directory domain and site as the schema master and must be able to contact all of the domains in the forest on TCP port 389.
  • Wait until Active Directory has finished replicating the schema changes from Step 1 to all domain controllers before you try to prepare Active Directory.
  • You need to select a name for the Exchange organization. The organization name is used internally by Exchange and isn’t typically seen by users, doesn’t affect the functionality of Exchange, and doesn’t determine what you can use for email addresses.
    • The organization name can’t contain more than 64 characters and can’t be blank.
    • Valid characters are A to Z, a to z, 0 to 9, hyphen or dash (-), and space, but leading or trailing spaces aren’t allowed.
    • You can’t change the organization name after it’s set.

To prepare Active Directory for Exchange, run the following command in a Windows Command Prompt window:

.\Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAD /OrganizationName: “MS Expert Talk”

I’m using the Exchange installation files on drive E: and named Exchange organization “MS Expert Talk“.Part 3 - Install and Configure Exchange Server 2019

If you have a hybrid deployment configured between your on-premises organization and Exchange Online, add the /TenantOrganizationConfig switch to the command.

You must wait while Active Directory replicates the changes from this step to all your domain controllers before you proceed. You can use repadmin tool to check the progress of the replication.

Prepare Active Directory Domains

The final step is to prepare the Active Directory domain where Exchange servers will be installed or where mail-enabled users will be located. This step creates additional containers and security groups and sets the permission, so Exchange can access them.

If you have multiple domains in your Active Directory forest, you have the following choices in how to prepare them:

  • Prepare all domains in the Active Directory forest
  • Choose the Active Directory domains to prepare

Regardless of the method you choose, wait until Active Directory has finished replicating the changes to all domain controllers before you proceed. Otherwise, you might get an error when you try to prepare the domains.

Prepare all domains in the Active Directory forest

When you prepare all domains in the Active Directory forest for Exchange, your account needs to be a member of the Enterprise Admins security group.

To prepare all domains in your Active Directory forest, run the following command in a Windows Command Prompt window:

.\Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAllDomains

Part 3 - Install and Configure Exchange Server 2019

Choose the Active Directory domains to prepare

You don’t need to do this step in the domain where you ran the /PrepareAD command, because the /PrepareAD command has automatically prepared that domain for you.

When you prepare specific domains in your Active Directory forest, the following requirements apply:

  • You need to prepare every domain where an Exchange server will be installed.
  • You need to prepare any domain that will contain mail-enabled users, even if the domain won’t contain any Exchange servers.
  • Your account needs to be a member of the Domain Admins group in the domain that you want to prepare.
  • If the domain that you want to prepare was created after you ran /PrepareAD, your account also needs to be a member of the Organization Management role group in Exchange.

To a prepare a specific domain in your Active Directory forest, run the following command in a Windows Command Prompt window:

.\Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareDomain:<Domain Name>

If you have a single domain AD forest, you are not required to perform this step. For this tutorial, I only have single forest root domain and I am not required to run this cmdlets in my topology.

Verify Active Directory Extension

After all the steps have been performed, make sure the Active Directory has been extended with required attributes for Exchange Server 2019. The table in the following section contain the Exchange objects in Active Directory that are updated each time you install a new version of Exchange. You can compare the object versions you see with the values in the tables to verify that Exchange successfully updated Active Directory during the installation.

  • rangeUpper is located in the Schema naming context in the properties of the ms-Exch-Schema-Version-Pt
  • objectVersion (Default) is the objectVersion attribute located in the Default naming context in the properties of the Microsoft Exchange System Objects
  • objectVersion (Configuration) is the objectVersion attribute located in the Configuration naming context in Services > Microsoft Exchange in the properties of the <Your Exchange Organization Name>
Exchange 2019 version rangeUpper objectVersion (Default) objectVersion (Configuration)
Exchange 2019 RTM 17000 13236 16751
Exchange 2019 Preview 15332 13236 16213

Conclusion

In this blog post, we have extended the active directory schema for Exchange Server 2019. We have also verified the Active Directory schema has been extended. In next blog post of this series, we will go through the installation of Exchange Server 2019.