Tip: You can find the Active Directory Schema Version with PowerShell :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
#requires -Version 1 -Modules activedirectory function Get-ADVersion { # ForestUpdateVersion $configurationNamingContext = (Get-ADRootDSE).configurationNamingContext $forestUpdateRevision = (Get-ADObject -Identity "CN=ActiveDirectoryUpdate,CN=ForestUpdates,$configurationNamingContext" -Properties Revision).Revision switch ($forestUpdateRevision) { 15 {$forestUpdateRevisionOS = 'Windows Server 2012 R2'} 11 {$forestUpdateRevisionOS = 'Windows Server 2012'} 5 {$forestUpdateRevisionOS = 'Windows Server 2008 R2'} 2 {$forestUpdateRevisionOS = 'Windows Server 2008'} default {'Unknowwn'} } # SchemaObject Version $schemaNamingContext = (Get-ADRootDSE).schemaNamingContext $schemaObjectVersion = (Get-ADObject -Identity $schemaNamingContext -Property objectVersion).objectVersion switch ($schemaObjectVersion) { 13 {$schemaObjectVersionOS = 'Windows Server 2000'} 30 {$schemaObjectVersionOS = 'Windows Server 2003'} 31 {$schemaObjectVersionOS = 'Windows Server 2003 R2'} 39 {$schemaObjectVersionOS = 'Windows Server 2008 Beta'} 44 {$schemaObjectVersionOS = 'Windows Server 2008'} 47 {$schemaObjectVersionOS = 'Windows Server 2008 R2'} 51 {$schemaObjectVersionOS = 'Windows Server 8 Developer Preview'} 52 {$schemaObjectVersionOS = 'Windows Server 8 Beta'} 56 {$schemaObjectVersionOS = 'Windows Server 2012'} 69 {$schemaObjectVersionOS = 'Windows Server 2012 R2'} 81 {$schemaObjectVersionOS = 'Windows Server 2016 Technical Preview'} default {'Unknown'} } # DomainUpdateVersion $defaultNamingContext = (Get-ADRootDSE).defaultNamingContext $domainUpdateVersion = (Get-ADObject "CN=ActiveDirectoryUpdate,CN=DomainUpdates,CN=System,$defaultNamingContext" -Properties revision).revision switch ($domainUpdateVersion) { 10 {$domainUpdateVersionOS = 'Windows Server 2012 R2'} 9 {$domainUpdateVersionOS = 'Windows Server 2012'} 5 {$domainUpdateVersionOS = 'Windows Server 2008 R2'} 3 {$domainUpdateVersionOS = 'Windows Server 2008'} default {'Unknown'} } # Summary [PSCustomObject]@{ ForestUpdateVersion = $("$forestUpdateRevision ($forestUpdateRevisionOS)") SchemaObjectVersion = $("$schemaObjectVersion ($schemaObjectVersionOS)") DomainUpdateVersion = $("$domainUpdateVersion ($domainUpdateVersionOS)") } } |