Installing Exchange 2013 on Windows 2012 R2 Server

Exchange 2013 installation Notes

Step 1
======
Run updates for Widows 2012 R2
Download and Install all prerequisites:

(1) Check for .NET Framework 4.5.2 or later by using regedit to find the value of:
Software\Microsoft\NET Framework Setup\NDP\v4.0\Full\Release subkey under HKEY_LOCAL_MACHINE
should be 379893 or greater.
If not install .NET Framework 4.5.2 or later
https://msdn.microsoft.com/en-us/library/5a4x27ek(v=vs.110).aspx
(will need a restart)

(2) Install Microsoft Unified Communications Managed API 4.0, Core Runtime 64-bit
http://download.microsoft.com/download/2/C/4/2C47A5C1-A1F3-4843-B9FE-84C0032C61EC/UcmaRuntimeSetup.exe
If while installing UCMA 4.0 you get a prerequisite of "Media Foundation" 
goto add roles and features and add the feature. (will require a reboot)

(3) Before Exchange 2013 SP1 the install would warn that the Office 
Filter Pack was required. However Exchange 2013 uses Search Foundation 
(Shared with Sharepoint 2013) and not MSSearch. So Ignore the warning 
and Exchange 2013 will still install.

(4)If this is not a domain controller then run the following Power Shell commands to install the required 
Windows components. Exchange needs remote server administration tools and IIS for Exchange management.
 (You can find these on the Exchange 2013 Prerequisites page)

Install-WindowsFeature RSAT-ADDS

Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience,
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

(5) Re-boot twice to ensure there are no previous restarts required
Insert Exchange 2013 DVD and start Setup

Step2
=====
Choose to check for updates

Step 3
======
Click Next to the introduction
Accept the licence agreement
Use recommended settings
Select Mailbox and Client Access roles, Automatically install roles
Accept default location
Accept First Organisation Name (Don't split permissions for Exchange and AD)
Accept Malware scanning
System then goes through Readiness Checks
	Checks for Prerequisites
	Installing Exchange on a DC is not recommended as it elevates 
	the permissions for Exchange Trusted Subsystem to domain 
	administrators see
https://technet.microsoft.com/en-us/library(EXCHG.150)/
ms.exch.setupreadiness.WarningInstallExchangeRolesOnDomainController.aspx
There are Performance considerations as well.
See above for Office Filter Pack
Install
Reboot and run updates.