** UPDATED --> 07/27/2019 **
1.19 - Bug fixes
1.18 - Changed to .NET 4.8 only. Removed .NET 4.7.x.
1.17 - Fixed issues with 1.16 and even more updates
1.16 - MORE Updates
1.15 - LOTS OF UPDATES
v1.14
V1.13
V 1.12
V 1.11
v 1.10
v 1.9
v 1.8
v1.7
This script is a revised version of the one I wrote for Exchange Server 2013. The script will install prerequisites for Exchange Server 2016 on Windows 2012, Windows 2012 R2 and Windows 2016. There is no longer an option for Filter Packs or disabling IPv6. Ive added a function to change the server Power Plan from Balanced to High Performance as well.
Code Snippet:
$Menu2016 = { Write-Host " **********************************************************************" -ForegroundColor White Write-Host " Exchange Server 2016 on Windows Server 2016 - Prerequisites Script " -ForegroundColor Cyan Write-Host " **********************************************************************" -ForegroundColor White Write-Host " " Write-Host " .NET UPDATE - Default is .NET 4.8.0" -ForegroundColor Green Write-Host '' Write-Host " Install NEW Server" -ForegroundColor Cyan Write-Host " -------------------" -ForegroundColor Cyan Write-Host " 1) Install Mailbox prerequisites - Part 1" -ForegroundColor White Write-Host " 2) Install Mailbox prerequisites - Part 2" -ForegroundColor White Write-Host " 3) Install Edge Transport Server prerequisites" -ForegroundColor White Write-Host " " Write-Host " Prerequisite Checks" -ForegroundColor Cyan Write-Host " --------------------" -ForegroundColor Cyan Write-Host " 10) Check Prerequisites for Mailbox role" -ForegroundColor White Write-Host " 11) Check Prerequisites for Edge role" -ForegroundColor White Write-Host " 12) Additional Exchange Server checks" -ForegroundColor White Write-Host " " Write-Host " One-Off Installations" -ForegroundColor Cyan Write-Host " ----------------------" -ForegroundColor Cyan Write-Host " 20) Install - One-Off - .NET 4.8 - CU13+" -ForegroundColor White Write-Host " 21) Install - One-Off - Windows Features [MBX]" -ForegroundColor White Write-Host " 22) Install - One Off - Unified Communications Managed API 4.0" -ForegroundColor White Write-Host " 23) Install - One Off - Microsoft C++ 2013 (CU11+)" -ForegroundColor White Write-Host " 24) Install - One Off - Microsoft C++ 2012 (CU11+)" -ForegroundColor White Write-Host " 25) Configure TCP Keep ALive (1800000) [All Roles]" -ForegroundColor White Write-Host " " Write-Host " Additional Options" -ForegroundColor Cyan Write-Host " -------------------" -ForegroundColor Cyan Write-Host " 30) Set Power Plan to High Performance" -ForegroundColor White Write-Host " 31) Disable Power Management for NICs." -ForegroundColor White Write-Host " 32) Disable SSL 3.0 Support" -ForegroundColor White Write-Host " 33) Disable RC4 Support" -ForegroundColor White Write-Host " 34) Configure PageFile to RAM + 10 MB" -ForegroundColor Green Write-Host " 35) Launch Windows Update" -ForegroundColor White Write-Host ' ' Write-Host " Windows Defender " -ForegroundColor Cyan Write-Host " -----------------" -ForegroundColor Cyan Write-Host " 40) Add Windows Defender Exclusions" -ForegroundColor White Write-Host " 41) Clear Windows Defender Exclusions" -ForegroundColor White Write-Host " 42) Report Windows Defender Exclusions" -ForegroundColor White Write-Host ' ' Write-Host " 98) Restart the Server" -ForegroundColor Red Write-Host " 99) Exit" -ForegroundColor Cyan Write-Host " " Write-Host " Select an option.. [1-99]? " -NoNewLine }
$Menu2016 = { Write-Host " **********************************************************************" -ForegroundColor White Write-Host " Exchange Server 2016 on Windows Server 2016 - Prerequisites Script " -ForegroundColor Cyan Write-Host " **********************************************************************" -ForegroundColor White Write-Host " " Write-Host " .NET UPDATE - Default is .NET 4.8.0" -ForegroundColor Green Write-Host '' Write-Host " Install NEW Server" -ForegroundColor Cyan Write-Host " -------------------" -ForegroundColor Cyan Write-Host " 1) Install Mailbox prerequisites - Part 1" -ForegroundColor White Write-Host " 2) Install Mailbox prerequisites - Part 2" -ForegroundColor White Write-Host " 3) Install Edge Transport Server prerequisites" -ForegroundColor White Write-Host " " Write-Host " Prerequisite Checks" -ForegroundColor Cyan Write-Host " --------------------" -ForegroundColor Cyan Write-Host " 10) Check Prerequisites for Mailbox role" -ForegroundColor White Write-Host " 11) Check Prerequisites for Edge role" -ForegroundColor White Write-Host " 12) Additional Exchange Server checks" -ForegroundColor White Write-Host " " Write-Host " One-Off Installations" -ForegroundColor Cyan Write-Host " ----------------------" -ForegroundColor Cyan Write-Host " 20) Install - One-Off - .NET 4.8 - CU13+" -ForegroundColor White Write-Host " 21) Install - One-Off - Windows Features [MBX]" -ForegroundColor White Write-Host " 22) Install - One Off - Unified Communications Managed API 4.0" -ForegroundColor White Write-Host " 23) Install - One Off - Microsoft C++ 2013 (CU11+)" -ForegroundColor White Write-Host " 24) Install - One Off - Microsoft C++ 2012 (CU11+)" -ForegroundColor White Write-Host " 25) Configure TCP Keep ALive (1800000) [All Roles]" -ForegroundColor White Write-Host " " Write-Host " Additional Options" -ForegroundColor Cyan Write-Host " -------------------" -ForegroundColor Cyan Write-Host " 30) Set Power Plan to High Performance" -ForegroundColor White Write-Host " 31) Disable Power Management for NICs." -ForegroundColor White Write-Host " 32) Disable SSL 3.0 Support" -ForegroundColor White Write-Host " 33) Disable RC4 Support" -ForegroundColor White Write-Host " 34) Configure PageFile to RAM + 10 MB" -ForegroundColor Green Write-Host " 35) Launch Windows Update" -ForegroundColor White Write-Host ' ' Write-Host " Windows Defender " -ForegroundColor Cyan Write-Host " -----------------" -ForegroundColor Cyan Write-Host " 40) Add Windows Defender Exclusions" -ForegroundColor White Write-Host " 41) Clear Windows Defender Exclusions" -ForegroundColor White Write-Host " 42) Report Windows Defender Exclusions" -ForegroundColor White Write-Host ' ' Write-Host " 98) Restart the Server" -ForegroundColor Red Write-Host " 99) Exit" -ForegroundColor Cyan Write-Host " " Write-Host " Select an option.. [1-99]? " -NoNewLine }