How to deploy Exchange Server 2016 using command-line

Share this:

Exchange Server 2016 can be deployed using the graphical user-interface or a setup deployment wizard, in this Tutorial we are going to cover the required steps to deploy using command-line.


If you are deploying the first Exchange Server ever on your existent forest, then you need to prepare Active Directory to support the Exchange Organization. The same is required when deploying the first Exchange Server 2016 in an existent organization (which could be Exchange Server 2013 or Exchange Server 2010).

In this Tutorial, we are assuming that you are deploying an additional Exchange Server 2016 in your Exchange Organization. The first step is to make sure that all prerequisites are in place, and we cover all steps required in this following Tutorial:

After checking all pre-requisites are in place, the administrator can open the command prompt (for Exchange Server 2016 it is easier to open Command-prompt instead of PowerShell) as administrator, and then go to the folder where the Exchange Server 2016 installation files are, and use the following command:

setup.exe /Mode:install /Role:Mailbox /IAcceptExchangeServerLicenseTerms

The results of the command above can be seen in the figure below, the only additional parameter that was used was /MDBName:DB30 which defines the name of the Mailbox Database that is created during the server installation.

In the new architecture of Exchange Server 2016 we don’t have a lot of option when deploying an Exchange Server inside of the network, since the role will be Mailbox and because of that the process to deploy using command-line was simplified where there is no decision making from the administrator side.

A similar process can be used to deploy Edge server using command-line, however instead of using /Role:Mailbox the proper value would be /Role:Edge.

Written by Anderson Patricio

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at,, and Anderson (Portuguese).

Related Post

How to prepare Active Directory separately in Exch... In this Tutorial we are going over the process to prepare Active Directory which is a required step when deploying the first Exchange Server 2013 Serv...
Installing Red Hat Enterprise Linux 7.3 We are going over the process to install Red Hat Enterprise Linux. We created a new VM in our Hyper-V environment and we will install the Red Hat Ente...
Exchange Server 2016 – Creating a DAG Creating a DAG object in an Exchange Server 2016 organization and preparing the witness server to support the new DAG. Solution The DAG is a l...
Exchange Server 2016 – Configuring DAG Netwo... How to configure the network adapter to support a DAG implementation using Exchange Server 2016. The DAG can be used with a single adapter however, us...