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.

Solution


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: http://itprocentral.com/exchange-server-2016-prerequisites/

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.
image

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 ITPROCentral.com, MSExchange.org, Techgenix.com and Anderson Patricio.org (Portuguese).

Related Post

New version of Azure Backup Server introduces Mode... WOW! What a day for me! Microsoft Azure just announces new and improved features on the new version Azure Backup Server. Let’s start! They announce...
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...
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...
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...