Microsoft Exchange 2016 Mailbox role deployment document
Install Windows features (using PowerShell)
Install-WindowsFeature AS-HTTP-Activation, Server-Media-Foundation, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, RSAT-Clustering-PowerShell, Web-Mgmt-Console, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation, RSAT-ADDS
Install system patches and dependency packages (always in order)
KB2919442
https://www.microsoft.com/en-us/download/details.aspx? id=42153
KB2919355
https://www.microsoft.com/en-us/download/details.aspx? id=42334
.NET Framework 4.7.1
https://www.microsoft.com/en-us/download/details.aspx? id=56116
Microsoft Unified Communications Managed API 4.0 Core Runtime(64 Bit)
http://go.microsoft.com/fwlink/p/? linkId=258269
https://download.microsoft.com/download/D/D/E/DDE74F32-B59D-4763-8286-E133E4A8A9A3/UcmaRuntimeSetup.exe
Visual C++ 2013 Redistributable Package
https://www.microsoft.com/en-us/download/confirmation.aspx? id=40784
Pre-installation preparation (required for new or upgraded architecture environments)
Open PwerShell and switch to the Exchange installation file directory
3.1 extend the Active Directory schema
Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms
3.2 prepare Active Directory
Setup.exe /PrepareAD /OrganizationName:"" /IAcceptExchangeServerLicenseTerms
3.3 Preparing Active Directory and Domains
Setup.exe /PrepareAllDomains /IAcceptExchangeServerLicenseTerms
formal installation
4.1 run setup
4.2 Keep Default, Next
4.3 Select Mailbox Role, Next
4.4 wait for the installation to complete