Active Directory (Forest Prep) Schema Versions:
Windows Server | objectVersion |
---|---|
Windows Server 2019 | 88 |
Windows Server 2016 | 87 |
Windows Server 2016 Technical Preview Schema | 81 |
Windows Server 2012 R2 Schema | 69 |
Windows Server 2012 Schema | 56 |
Windows Server 8 BETA Schema | 52 |
Windows Server 8 Developer Preview Schema | 51 |
Windows 2008 R2 Schema | 47 |
Windows 2008 Schema | 44 |
Windows 2008 BETA Schema | 39 |
Windows 2003 R2 Schema | 31 |
Windows 2003 Schema | 30 |
Windows 2000 Schema | 13 |
How to find Active directory Schema
Using “ADSIEdit.msc” or/and “LDP.exe” tools:Navigate to:”CN=Schema,CN=Configuration,DC=domain,DC=local“and review the current “objectVersion” attribute.
Using “DSQuery” command line:”dsquery * cn=schema,cn=configuration,dc=domainname,dc=local -scope base -attr objectVersion“The following information provides a mapping between the “objectVersion” attribute value, to
Using PowerShell
================
ACTIVE DIRECTORY
================
using the Active Directory Cmdlets:
import-module ActiveDirectory
$ADForestConfigurationDN = ((Get-ADForest).PartitionsContainer) -Replace(‘CN=Partitions,’)
$ADSchemaInfo = Get-ADObject “cn=schema,$ADForestConfigurationDN” -properties objectversion
$ADSchemaVersion = $ADSchemaInfo.objectversion
Write-Output “The current AD Schema Version is $RootDSEADObjectVersion which is $ADSchemaVersionName `r ”
Write-Output ” `r “
Regedit
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NTDS\Parameters
Exchange Schema Versions
What is Exchange Schema
Exchange Schema version or Exchange Active Directory versions , The tables in the following sections contain the Exchange objects in Active Directory that are updated each time you install a new version of Exchange (a new installation or a CU). There are three very important parameters of the Exchange Schema: rangeUpper, objectVersion (Default), objectVersion (Configuration).
- rangeUpper is located in the Schema naming context in the properties of the ms-Exch-Schema-Version-Pt container.
- objectVersion (Default) is the objectVersion attribute located in the Default naming context in the properties of the Microsoft Exchange System Objects container.
- objectVersion (Configuration) is the objectVersion attribute located in the Configuration naming context in Services > Microsoft Exchange in the properties of the <Your Exchange Organization Name> container.
Exchange 2016 Schema Active Directory versions (Forest Prep)
When you run prepare schema and PrepareAD
<Virtual DVD drive letter>:\Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareSchema
Exchange 2016 version | rangeUpper | objectVersion (Default) | objectVersion (Configuration) |
---|---|---|---|
Exchange 2016 CU20 | 15333 | 13240 | 16220 |
Exchange 2016 CU19 | 15333 | 13239 | 16219 |
Exchange 2016 CU18 | 15332 | 13238 | 16218 |
Exchange 2016 CU17 | 15332 | 13237 | 16217 |
Exchange 2016 CU16 | 15332 | 13237 | 16217 |
Exchange 2016 CU15 | 15332 | 13237 | 16217 |
Exchange 2016 CU14 | 15332 | 13237 | 16217 |
Exchange 2016 CU13 | 15332 | 13237 | 16217 |
Exchange 2016 CU12 | 15332 | 13236 | 16215 |
Exchange 2016 CU11 | 15332 | 13236 | 16214 |
Exchange 2016 CU10 | 15332 | 13236 | 16213 |
Exchange 2016 CU9 | 15332 | 13236 | 16213 |
Exchange 2016 CU8 | 15332 | 13236 | 16213 |
Exchange 2016 CU7 | 15332 | 13236 | 16213 |
Exchange 2016 CU6 | 15330 | 13236 | 16213 |
Exchange 2016 CU5 | 15326 | 13236 | 16213 |
Exchange 2016 CU4 | 15326 | 13236 | 16213 |
Exchange 2016 CU3 | 15326 | 13236 | 16212 |
Exchange 2016 CU2 | 15325 | 13236 | 16212 |
Exchange 2016 CU1 | 15323 | 13236 | 16211 |
Exchange 2016 RTM | 15317 | 13236 | 16210 |
Exchange 2016 Preview | 15317 | 13236 | 16041 |
Exchange 2019 Schema Active Directory versions (Forest Prep)
Exchange 2019 version | rangeUpper | objectVersion (Default) | objectVersion (Configuration) |
---|---|---|---|
Exchange 2019 CU9 | 17002 | 13240 | 16757 |
Exchange 2019 CU8 | 17002 | 13239 | 16756 |
Exchange 2019 CU7 | 17001 | 13238 | 16755 |
Exchange 2019 CU6 | 17001 | 13237 | 16754 |
Exchange 2019 CU5 | 17001 | 13237 | 16754 |
Exchange 2019 CU4 | 17001 | 13237 | 16754 |
Exchange 2019 CU3 | 17001 | 13237 | 16754 |
Exchange 2019 CU2 | 17001 | 13237 | 16754 |
Exchange 2019 CU1 | 17000 | 13236 | 16752 |
Exchange 2019 RTM | 17000 | 13236 | 16751 |
Exchange 2019 Preview | 15332 | 13236 | 16213 |
How to Find Forest rangeUpper and objectVersion
For the forest, you can find out the current schema version by consulting the rangeUpper property of CN=ms-Exch-Schema-Version-Pt,cn=schema,cn=configuration,. To read the forest version, consult the objectVersion property of cn=,cn=Microsoft Exchange,cn=Services,cn=Configuration,.
For example, to find out the current Exchange forest schema version and forest version, use a tool like ADSIEDIT or use PowerShell (replace ‘Contoso’ with the name of your Exchange organization):
ADSIEDIT
CMD-> adsiedit.msc->connect->Schema->configuration->cn=ms-Exch-Schema-Version-pt
Rangupper: 1533 for Exchange 2016 Cu20
objectVersion Default
The same action below but choose connect default
objectVersion configuration
The same action below but choose connect configuration
PowerShell
#Forest rangeUpper
#Forest objectVersion
$RootDSE= ([ADSI]"").distinguishedName
([ADSI]"LDAP://CN=ms-Exch-Schema-Version-Pt,CN=Schema,CN=Configuration,$RootDSE").rangeUpper
([ADSI]"LDAP://cn=viettechgroup,cn=Microsoft Exchange,cn=Services,cn=Configuration,$RootDSE").objectVersion
#//Domain
$RootDSE= ([ADSI]"").distinguishedName
([ADSI]"LDAP://CN=Microsoft Exchange System Objects,$RootDSE").objectVersion
or
PS C:\> # Exchange Schema Version
PS C:\> $sc = (Get-ADRootDSE).SchemaNamingContext
PS C:\> $ob = "CN=ms-Exch-Schema-Version-Pt," + $sc
PS C:\> Write-Output "RangeUpper: $((Get-ADObject $ob -pr rangeUpper).rangeUpper)"
RangeUpper: 15332
PS C:\># Exchange Object Version (domain)
PS C:\>$dc = (Get-ADRootDSE).DefaultNamingContext
PS C:\>$ob = "CN=Microsoft Exchange System Objects," + $dc
PS C:\>Write-Output "ObjectVersion (Default): $((Get-ADObject $ob -pr objectVersion).objectVersion)"
ObjectVersion (Default): 13237
PS C:\># Exchange Object Version (forest)
PS C:\>$cc = (Get-ADRootDSE).ConfigurationNamingContext
PS C:\>$fl = "(objectClass=msExchOrganizationContainer)"
PS C:\>Write-Output "ObjectVersion (Configuration): $((Get-ADObject -LDAPFilter $fl -SearchBase $cc -pr objectVersion).objectVersion)"
ObjectVersion (Configuration): 16217
Download Script here Get-ADversions.ps1
Good luck for you to install and deploy Exchange Server 2016, 2019
Phuong Nguyen