Validating AD preparation to deploy Exchange 2013

Hi!

These days I’m creating an Hybrid Exchange environment with O365 where we are going from Ex 2007 to Ex 2013 and one of the prerequisites is prepare AD for that.

After copy exchange binaries to a DC with FSMO roles, execute the following lines:

.\Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms
.\Setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms
.\Setup.exe /PrepareDomain /IAcceptExchangeServerLicenseTerms

When finished, check that replications are all ok with:

repadmin /showrepl

To finish validate your upgrades cheking version number of everyone with these powershell lines, faster than go to ADSIEdit and seek there.

# Exchange Schema Version
$sc = (Get-ADRootDSE).SchemaNamingContext
$ob = “CN=ms-Exch-Schema-Version-Pt,” + $sc
(Get-ADObject $ob -pr rangeUpper).rangeUpper

# Exchange Object Version (forest)
$cc = (Get-ADRootDSE).ConfigurationNamingContext
$fl = “(objectClass=msExchOrganizationContainer)”
(Get-ADObject -LDAPFilter $fl -SearchBase $cc -pr objectVersion).objectVersion

# Exchange Object Version (domain) – assumes single domain forest
$dc = (Get-ADRootDSE).DefaultNamingContext
$ob = “CN=Microsoft Exchange System Objects,” + $dc
(Get-ADObject $ob -pr objectVersion).objectVersion

Regards!