How to Install Exchange 2016 on Windows Server 2012 R2 -------------------------------------------------------------------- 1. Active Directory prerequisites ---------------------------------- • Schema master: Windows Server 2008 or later. • Domain Controller: In each AD site where you plan to install Exchange 2016, you must have a writable DC running at least Windows Server 2008 or later. • Global catalog: In each AD site where you plan to install Exchange 2016, you must have a GC running at least Windows Server 2008 or later. • Active Directory Forest: Forest functional level must be Windows Server 2008 or higher. Get-ADDomain | fl *Root, NetBIOS*, Replica*, *mode, *Master, PDC* Get-Adforest | FL name, *master, *catalogs, *mode 2. Active Directory Health Check Commands: ------------------------------------------ #Check FSMO roles distribution: netdom query fsmo #Run DCDiag DNS test - separately, in verbose mode: dcdiag /test:DNS /v /e /f:dcdiag-DNS.log #(Optional) Run DNSLINT utility with /ad for AD replication tests: #Available at http://support.microsoft.com/kb/321045 #Note: Replace the IP with actual DC IP address dnslint /ad /s 192.168.1.10 /v #Run DCDIAG without DNS test(we add the debug switch /d for more details): dcdiag /v /d /skip:DNS /f:dcdiag.log 3. Prepare Active Directory and domains --------------------------------------- 3.1 Confirm that .NET Framework 4.5.2 is already installed: 3.1.1 Confirm feature installation: Get-WindowsFeature NET-Framework-45* 3.1.2 Confirm .NET Framework 4.5 version: Get-ItemProperty -Path 'HKLM:\Software\Microsoft\NET Framework Setup\NDP\v4\Full' | select version 3.2 Install RSAT-ADDS on the Exchange 2016 member server (Exchange 2016 prep. machine) ----------------------------------------------------------------------------- # Note: # - AD preparation will be performed on this machine, not on Schema Master DC Install-WindowsFeature RSAT-ADDS #Note !!!: You MUST restart the server, or "/PrepareAD" will fail 3.3 Extract the Exchange 2016 Installation Package 3.4 Prepare the Schema: ----------------------- setup /IacceptExchangeServerLicenseTerms /PrepareSchema 3.3 Check the Schema Version (ms-Exch-Schema-Version-Pt): ---------------------------------------------------------- #Exch.2016 RTM-15317 #Note: Replace "Your_Domain" and "Your_Domain_Suffix" with the relevant data repadmin /showattr * "CN=ms-Exch-Schema-Version-Pt,cn=schema,cn=configuration,dc=NetoMeter,dc=local" /atts:rangeUpper 3.4 Introduce Exchange Org and prepare Root Domain: --------------------------------------------------- #Note: In a single-domain forest, this command will prepare the domain too #Don;t forget to specify an Organization Name: setup /IacceptExchangeServerLicenseTerms /PrepareAD /OrganizationName:NetoMeter 3.5 ONLY!!! in a multi-domain forest - prepare the rest of the domains: ----------------------------------------------------------------------- (which will contain Exchange servers or users) setup /IacceptExchangeServerLicenseTerms /PrepareDomain #or you can prepare all domains simultaneously (must be Enterprise Admin): setup /IacceptExchangeServerLicenseTerms /PrepareAllDomains 3.3 Check the msExchProductId value for the created Exchange organization object -------------------------------------------------------------------------------- #Exch.2016 - 15.01.0225.042 #Note: Replace "Your_Org", "Your_Domain" and "Your_Domain_Suffix" with the relevant data repadmin /showattr * "CN=NetoMeter,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=NetoMeter,DC=local" /atts:msExchProductId 4. Prepare the Exchange 2016 server: ------------------------------------ 4.1 Install required Windows components for MBX role on Server 2012 R2: ------------------------------------------------------------------------- # https://technet.microsoft.com/en-us/library/bb691354(v=exchg.160).aspx#Anchor_2 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 4.2 Confirm that .NET Framework 4.5.2 is aleady installed (out of the box on Server 2012 R2): Get-ItemProperty -Path 'HKLM:\Software\Microsoft\NET Framework Setup\NDP\v4\Full' | select version 4.3 Unified Communications Managed API 4.0 Runtime: -------------------------------------------------------------- https://www.microsoft.com/en-us/download/details.aspx?id=34992 5. Install Exchange 2016 ------------------------- 6. Validate installation ------------------------- Get-ExchangeServer | FL Name,ServerRole,AdminDisplayVersion Test-ServiceHealth | FL Role,RequiredServicesRunning $admin="administrator@netometer.local" Send-MailMessage -to $admin -from $admin -body "Test e-mail" -subject Test -SmtpServer localhost Get-Volume D,E Get-Volume D,E | Format-Volume -FileSystem REFS -SetIntegrityStreams $false Move-Databasepath "MBX1-16" –EdbFilepath "D:\MBX1-16\MBX1-16.edb" –LogFolderpath "E:\MBX1-16" Get-MailboxDatabase | select name, edb*path, log*path Note: • The account which you use for Exchange 2016 Setup wizard must be a member of Schema Admins Domain Admins and Enterprise Admins (to be able to prepare AD and the domain) ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: http://www.netometer.com :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::