How to deploy Exchange Server 2016 using command-line

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.