- The first option is to let the Exchange 2016 Setup wizard do it during setup. This approach is more suitable if we are doing small deployment and there are no separate teams to manage the servers.
- The Second option is what as described in below detailed procedure.
NOTE: The account we use to perform these steps will need to be a member of both the Schema Admins and Enterprise Admins security groups.
Extend the Active Directory schema:
Before we extend your schema:
- The account you’re logged in must be a member of the Schema Admins and Enterprise Admins security groups.
- The computer where you’ll run the command to extend the schema needs to be in the same Active Directory domain and site as the schema master.
- If you use the DomainController parameter, make sure to use the name of the domain controller that’s the schema master.
- The only way to extend the schema for Exchange is to use use Exchange 2016 Setup wizard or the process we are discussing in this article. Other ways of extending the schema are not supported.
Steps to extend Schema:
- Open a Windows Command Prompt window and navigate to the Exchange installation files location.
- Run the following command to extend the schema.
- Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms
NOTE: Once schema is extended, wait for Active Directory to replicate the changes to all domain controllers. We can check replication status using the Repadmin tool.
Prepare Active Directory:
Once Schema extension is completed successfully, we can move to next step to prepare AD. In this process, Exchange will create containers, objects, and other items in Active Directory that will be used to store information.
The collection of all of the Exchange containers, objects, attributes, and so on, is called the Exchange organization.
Before we prepare Active Directory for Exchange:
- The account you’re logged in as needs to be a member of the Enterprise Admins security group.
- The computer where we’ll run the command needs to be in the same Active Directory domain and site as the schema master. It’ll also need to contact all of the domains in the forest on TCP port 389.
- Wait until Active Directory has replicated the changes made in step 1 to all of your domain controllers before you do this step.
Exchange Organization Name:
We need to provide name for the Exchange organization during this step. This name is used internally by Exchange. The name of the company where Exchange is being installed is often used for the organization name. We can name it anything we want, provided that we follow below conditions:
- Organization Name cannot be blank.
- Any uppercase or lowercase letters from A to Z.
- Numbers 0 to 9.
- Spaces. However not at the beginning or end of the name.
- Hyphen or dash in the name.
- The name can be up to 64 characters.
- The name can’t be changed after its set.
Steps to Prepare AD:
- Open a Windows Command Prompt window and navigate to Exchange installation files location.
- Run the following command.
- Setup.exe /PrepareAD /OrganizationName:”Organization name” /IAcceptExchangeServerLicenseTerms
If we have multiple domains in your Active Directory forest, we have a couple of choices in how we can prepare them as listed below.
This parameter will prepare every domain for Exchange in Active Directory forest. Steps to
Open a Windows Command Prompt window and go to where you downloaded the Exchange installation files.
Run the following command:
Setup.exe /PrepareAllDomains /IAcceptExchangeServerLicenseTerms
NOTE: We need to prepare every domain where an Exchange server will be installed. We will also need to prepare any domain that’ll contain mail-enabled users, even if those domains do not contain any Exchange servers.
Steps to prepare individual domains:
1. Open windows Command Prompt window & navigate to Exchange installation files location.
2. Run the following command with the FQDN of the domain we want to prepare. We don’t have to include the FQDN if we are preparing the domain where we are executing the command.
3. Setup.exe /PrepareDomain: /IAcceptExchangeServerLicenseTerms
4. Repeat the steps for each Active Directory domain where we will install an Exchange server or where mail-enabled users will be located.
How to verify installation:
- In the Schema naming context, verify rangeUpper property on ms-Exch-Schema-Verision-Pt.
- In the Configuration naming context, verify objectVersion property in the CN=,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=
- In the Default naming context, verify objectVersion property in the Microsoft Exchange System Objects container under DC=
- We can also check the Exchange setup log to verify that Active Directory preparation has completed successfully.
- We won’t be able to use the Get-ExchangeServer cmdlet mentioned until we have completed the installation of at least one Mailbox server role in an Active Directory site.
One thought on “Prepare Active Directory and domains for Exchange Server 2016”