How to Install Exchange 2016 on Windows Server 2016 Step by Step Guide

line5

ex 2016

KEEP IN MIND

This tutorial will install Exchange Server 2016 on Windows Server 2016.

  • The Active Directory is already installed along with DNS in a separate server. Additional domain controller also have been configured to make it look similar to production environment (In this scenario, I configured Active Directory in Microsoft Server 2019)

How to Install Active Directory in Windows Server 2019:

https://techencyclopedia.wordpress.com/2020/02/16/how-to-install-active-directory-in-windows-server-2019-step-by-step-guide/

How to Install Additional Domain Controller in Windows 2919:

https://techencyclopedia.wordpress.com/2020/02/17/how-to-install-additional-domain-controller-in-windows-server-2019-step-by-step-guide/

  • To install Exchange 2016, you have to install Windows Server 2016 and add to the domain.

How to Install Windows Server 2016:

https://techencyclopedia.wordpress.com/2016/08/24/install-windows-server-2016-step-by-step/

  • The Exchange installation can be done using domain administrator account. If it is not the domain administrator account, the Schema and Enterprise administrator privileges should be given.
  • For this tutorial, Exchange Server 2016 CU11 is used. DOWNLOAD LINK FOR Cumulative Update 11 for Exchange Server 2016 (KB4134118): https://www.microsoft.com/en-us/download/details.aspx?id=57388

It is always good idea to follow articles in Microsoft that focus Exchange to make the installation run error free. Furthermore, the technology changes and new updates are introduced and prerequisites and requirements tend to change. Because of that reason, I have listed important links in this post, so readers can install any version of Exchange server. 

The Exchange sever download page provides important links to articles about System Requirements.

installation links

 

Exchange server 2016 versions history

Before installing the Exchange Server, you have to get an idea about the version you have downloaded. Refer following article for Exchange server 2016 build numbers and released dates. Based on the CU version the prerequisites might slightly change. For instance, the required .NET version varies based on the Exchange version.

https://docs.microsoft.com/en-us/exchange/new-features/build-numbers-and-release-dates?view=exchserver-2019

build number

Prerequisites

It is important to understand the prerequisites needed for Exchange 2016 installation. Refer the following article given below.

https://docs.microsoft.com/en-us/Exchange/plan-and-deploy/prerequisites?view=exchserver-2016

Prepare Active Directory and Schema

You have to prepare the AD and Schema properly and this article shows you how to do that.

https://docs.microsoft.com/en-us/exchange/plan-and-deploy/prepare-ad-and-domains?view=exchserver-2016

TUTORIAL

Tutorial is divided into four sections to make it easier to follow

  • STEP 01: Install prerequisites for preparing Active Directory
  • STEP 02: Prepare active directory and domains
  • STEP 03: Install prerequisites for Server 2016 to install Exchange 2016
  • STEP 04: Install Exchange Server 2016
STEP 01: Install prerequisites for preparing Active Directory

Following prerequisites are needed to prepare Active Directory before installing Exchange Server 2016

 

Microsoft .Net Framework 4.8 or later

Download and run the setup

Accept the license terms to continue

SVR 2016 EX16-2020-02-25-20-15-51

Setup updates the files used by the programs listed. Press ‘No’ and restart the server machine after the installation

SVR 2016 EX16-2020-02-25-20-18-13

Wait until the installation finishes

SVR 2016 EX16-2020-02-25-20-18-55

After installation completes click ‘Finish’

SVR 2016 EX16-2020-02-25-20-24-49

Select ‘Restart Now’ to restart

SVR 2016 EX16-2020-02-25-20-25-34

 

How to check the .NET version

Before installing the .NET, you can check the installed version using regedit.exe

Go to ‘Start’ menu and select ‘Run’ and type ‘regedit.exe’

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full

SVR 2016 EX16-2020-02-24-10-55-40

 

SVR 2016 EX16-2020-02-24-10-59-56

 

SVR 2016 EX16-2020-02-24-11-00-02

 

Visual C++ Redistributable Package for Visual Studio 2012

Download and run the setup

Accept the Licence terms and click ‘Install’

SVR 2016 EX16-2020-02-25-21-11-53

Wait until the installation finishes

SVR 2016 EX16-2020-02-25-21-12-21

Close after the Setup Successful message

SVR 2016 EX16-2020-02-25-21-12-33

 

Remote Tools Administration Pack

Run Windows PowerShell as Administrator and paste following commands to install necessary features

Install-WindowsFeature RSAT-ADDS

Go to ‘Start’ menu select right click on ‘Windows PowerShell ISE’

SVR 2016 EX16-2020-02-24-17-43-51

Select ‘Run as administrator’

SVR 2016 EX16-2020-02-24-17-43-58

Run the command to install ‘Remote Tools Administration Pack’

SVR 2016 EX16-2020-02-24-17-53-11.png

 

STEP 02: Prepare active directory and domains
  • Prepare Schema
  • Prepare Active Directory
  • Prepare Domains

 

Prepare Schema

You have to extend the Active Directory Schema and prepare the Active Directory and domain. In the command prompt go to the location where the Exchange 2016 setup files are located and run this command (It is important to make sure there are no mistakes)

Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms

Go to the location where Exchange 2016 setup files are located

SVR 2016 EX16-2020-02-26-08-02-39

Type the command

SVR 2016 EX16-2020-02-26-08-21-52

 

Prepare Active Directory

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

You have to provide the organization name between “”

SVR 2016 EX16-2020-02-26-08-33-25

 

Prepare Domains

Setup.exe /PrepareAllDomains /IAcceptExchangeServerLicenseTerms

SVR 2016 EX16-2020-02-26-08-28-42

 

STEP 03 : Install prerequisites for Server 2016 to install Exchange 2016

Following prerequisites are needed to be installed in Microsoft Windows Server 2016 before installing Exchange Server 2016

This is for Exchange 2016 Mailbox server role

Edge Transport role

Please note that, in this case Edge Transport role is not installed. However, the prerequisites needed are stated below.

 

Prerequisites for mail box server role (PowerShell command)

Install-WindowsFeature NET-Framework-45-Features, Server-Media-Foundation, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, RSAT-Clustering-PowerShell, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation, RSAT-ADDS

SVR 2016 EX16-2020-02-25-21-21-05

If you encounter an error you can install the features one by one. (In this case the mentioned feature is already installed)

Install-WindowsFeature NET-Framework-45-Features

SVR 2016 EX16-2020-02-24-18-46-42

 

Microsoft .NET Framework 4.8 or later

Already installed. Refer Step 01.

 

Microsoft Knowledge Base article KB3206632

If your Windows Server 2016 version is 14393.576 or earlier you need to update Windows to Install Exchange Server 2016

Firstly, check your Windows version by running ‘winver’ command

SVR 2016 EX16-2020-02-25-21-29-09

Since the version is 14393.0, in this case we have to install this update

Firstly, download the update

http://www.catalog.update.microsoft.com/Search.aspx?q=KB3206632

windows update 2016 for exchange

 

Run the downloaded Windows update

Click ‘Yes’ in ‘Windows Update Standalone Installer’ to proceed

SVR 2016 EX16-2020-02-25-21-59-04

Wait until the installation finishes

SVR 2016 EX16-2020-02-25-22-00-10

Restart the server to complete the installation

SVR 2016 EX16-2020-02-25-23-29-43

SVR 2016 EX16-2020-02-25-23-29-57

 

Visual C++ Redistributable Package for Visual Studio 2012

Already installed. Refer Step 01.

 

Visual C++ Redistributable Package for Visual Studio 2013

Only the Mailbox role requires the Visual C++ Redistributable Packages for Visual Studio 2013

Run the setup

SVR 2016 EX16-2020-02-25-21-54-20

Wait until the installation finishes

SVR 2016 EX16-2020-02-25-21-54-40

Click ‘close’ after the installation

SVR 2016 EX16-2020-02-25-21-55-28

 

Microsoft Unified Communications Managed API 4.0, Core Runtime 64-bit

Run the setup file and click ‘Next’ to proceed

SVR 2016 EX16-2020-02-26-06-35-13

Accept the License Terms and click ‘Install’ to proceed

SVR 2016 EX16-2020-02-26-06-35-28

After the installation completes click ‘Finish’

SVR 2016 EX16-2020-02-26-06-40-53

 

Prerequisites for Edge Transport Server Role (PowerShell command)

This is an optional role and no need to be installed (detailed description is given in STEP 04 regarding Edger Transport role)

Install-WindowsFeature ADLDS

SVR 2016 EX16-2020-02-24-18-55-13

 

STEP 04: Install Exchange Server 2016

Run the Exchange 2016 setup

Initially you are asked to check for updates It is important to install the latest version otherwise you might get errors later on during the installation.

SVR 2016 EX16-2020-02-26-08-34-55

Files that are required to run the Exchange server 2016 installation is copied to the server

SVR 2016 EX16-2020-02-26-08-35-55

Read the ‘introduction’ Microsoft has provided and it includes important links

SVR 2016 EX16-2020-02-26-13-33-22

Accept the License Agreement and proceed

SVR 2016 EX16-2020-02-26-13-33-43

Use ‘Recommended Settings’ and click ‘Next’

SVR 2016 EX16-2020-02-26-13-33-48

Select ‘Mailbox’ Server role

(you do not need Edge Transport role in this case which is optional . Edge is designed to sit in a perimeter network to provide mail security)

What is Edge Transport role?

Edge Transport server provides protection against spam and apply mail flow rules to control mail flow.

You can install more than one Edge Transport server in the perimeter network. Deploying more than one Edge Transport server provides redundancy and failover capabilities for your inbound message flow. You can load balance the SMTP traffic to your organization among Edge Transport servers by defining more than one MX record with the same priority value for your mail domain. You can achieve consistency in the configuration among multiple Edge Transport servers by using cloned configuration scripts.

https://docs.microsoft.com/en-us/exchange/architecture/edge-transport-servers/edge-transport-servers?view=exchserver-2019

SVR 2016 EX16-2020-02-26-13-33-57

If you need you can browse installation location or keep as it is

SVR 2016 EX16-2020-02-26-13-34-01

In this case Malware Protection is disabled. If you need you can enable it. Or you can use a third party product.

SVR 2016 EX16-2020-02-26-13-34-07

Wait until the ‘Readiness Checks’ completes

SVR 2016 EX16-2020-02-26-13-35-20

Wait until the Exchange Server is installed

SVR 2016 EX16-2020-02-26-13-38-05

If the setup progress is slow make sure to disable or remove anti-malware service to make the installation run faster

SVR 2016 EX16-2020-02-26-14-29-04

 

Verify Exchange Server installation 

Exchange Management Shell

Run this command in Exchange Management Shell

Get-ExchangeServer

Select the ‘Exchange Management Shell’ from ‘start’ menu

EX 2016 datacenter-2020-03-02-07-41-34

Run the command

EX 2016 datacenter-2020-03-02-07-42-37

 

Review the Exchange Setup log

go to the following location

<location where exchange server is installed>:\ExchangeSetupLogs\ExchangeSetup.log

Login to Exchange Admin Center

Use following URL

https://localhost/ecp

Alternative you can use the IP address instead of ‘localhost’

https://192.168.1.10/ecp

EX 2016 datacenter-2020-03-02-06-57-55

TROUBLESHOOTING

  • If the additional domain controller is installed make sure it is up and running
  • Provide Schema and Enterprise administrator privileges to the account that is used to install the Exchange Server
  • Always download the most recent Exchange server 2016 product from Microsoft
  • Disable or uninstall antivirus protection (Uninstall Windows Defender using remove roles and feature wizard to make the installation faster)
  • Exchange Services should be up and running during the installation

 

Prepare schema error

An error will occur if you try to Prepare schema without installing Remote Tools Administration Pack and rest of the configuration

SVR 2016 EX16-2020-02-24-12-00-20

 

Installing prerequisites for Mail box server role error

If you encounter an error when installing multiple features, remove the particular feature that gives the error and try to install one by one. The best way to prevent this is to install the latest version of Exchange Sever 2016 and Windows Server 2016.

SVR 2016 EX16-2020-02-24-18-46-42

 

Download the latest Exchange server 2016 product

When the Exchange server 2016 came, the Server 2016 did not support the product fully and make sure you download the latest Exchange 2016 Cumulative Update

Download link: https://www.microsoft.com/en-us/download/details.aspx?id=57388

Error - you have to download the latest exchnage server product

 

Services not running 

SVR 2016 EX16-2020-02-26-14-54-46

Check whether MSExchangeADTopology service is running or not. If not manually start the service at the Server Manager or Task Manager

What is MSExchangeADTopology service?

Provides Active Directory topology information to Exchange services. If this service is stopped, most Exchange services can’t start.

REFER THIS LINK TO GET AN IDEA ABOUT EXCHANGE SERVICES: https://docs.microsoft.com/en-us/Exchange/plan-and-deploy/deployment-ref/services-overview?redirectedfrom=MSDN&view=exchserver-2019

Please note that after the ‘Step 4 of 13 – restoring services’ the Services can be started.

SVR 2016 EX16-2020-02-26-15-02-37

 

How to Install Exchange 2016 on Server 2012 R2

line5

Please note that..

  • Only the mail box server role is installed In this tutorial .
  • Unlike Exchange 2013, Exchange 2016 has only the Mail Box server role and edge transport server roles.
  • To install Exchange 2016 the domain and forest functional levels need to be windows server 2008 or higher.

Prerequisites

Install following

    Microsoft .Net Framework 4.5
    Microsoft Unified Communications Managed API 4.0, Core Runtime 64-bit

Prepare active directory and domains

Prepare schema

on the command prompt navigate to the location where setup files are located and type these commands to prepare schema

Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms

Prepare active directory

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

Prepare domains

Setup.exe /PrepareAllDomains /IAcceptExchangeServerLicenseTerms

Run Windows PowerShell as Administrator and paste following commands to install necessary features

To install remote tools administration pack

Install-WindowsFeature RSAT-ADDS

For mail box server role

Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, RSAT-Clustering-PowerShell, Web-Mgmt-Console, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation

Installation of Exchange 2016

After carrying out above tasks you can continue with exchange 2016 installation

EX2016-2016-06-28-11-13-45

EX2016-2016-06-28-11-13-57

EX2016-2016-06-28-11-16-43

EX2016-2016-06-28-11-25-01

EX2016-2016-06-28-11-25-10

EX2016-2016-06-28-11-25-15

EX2016-2016-06-28-11-25-48

EX2016-2016-06-28-11-25-51

EX2016-2016-06-28-11-26-21

EX2016-2016-06-28-16-42-35

Access EAC

After installation process you can navigate to Exchange Administrator Center (EAC) by using following URL thorough the web browser.

https://localhost/ecp