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 deploy Exchange Server 2016 In this Tutorial, we are going over the entire process to deploy Exchange Server 2016 server into an existing organization using the graphical user in...
How to install an Edge Transport role using comman... We are going over the process to install an Edge Transport role in Exchange Server 2013 using the command-line tools. There are a couple of requiremen...
Managing a new Exchange Server 2016 EAC having you... During the transition between Exchange Server 2010/2013 to Exchange Server 2016, before moving the mailboxes any administrator that tries to access th...
Script: Exchange Server 2016 Deployment (EXDeploy.... Hello folks, We created an automation script to deploy Exchange Server 2016 in a consistent way, and the script was published on our ITPROCentral a...