Exchange 2016 Unattended Install

Previously, I walked through the Exchange install process using the GUI. In this post I’d like to do a real quick walkthrough on how to install Exchange 2016 using the unattended installer.

I will assume that the prerequisites that I laid out in part 1 are already installed, and that we are adding a server to an existing Exchange 2016 environment. This will make the install command we need to run pretty simple.

Open a PowerShell/CMD prompt as an administrator and run the following command:

PS C:\Users\mkrause\Desktop\EX2016> .\Setup /mode:Install /r:MB /IAcceptExchangeServerLicenseTerms

As the process completes, we should get messages stating each step completed. Once the install is finished we are reminded that we need to reboot the server before placing it into production.

If you want to use the unattended installer to install Exchange 2016 to a new environment, you will need to perform a few additional steps before continuing with the install shown above.

While installing Exchange using the GUI, we had to prepare the schema, and create a new organization name. These are required steps in the unattended installer as well. It’s just two additional commands that need to be run before the actual installer.

Schema Upgrade:

PS C:\Users\mrkause\Desktop\EX2016> .\setup /PrepareSchema /IAcceptExchangeServerLicenseTerms

Name the organization:

PS C:\Users\mkrause\Desktop\EX2016> .\setup /PrepareAD /OrganizationName: "EXLab" /IAcceptExchangeServerLicenseTerms

After each of these commands is completed successfully, the actual install can take place using the command I used above to install my second server.