Every time we plan to upgrade our domain controller, the first question pops up in our mind is - Do we need to upgrade our schema?
There is very simple way to check.
From Command Line
dsquery * cn=schema,cn=configuration,dc=testlab,dc=com -scope base -attr objectVersion
From Powershell
Get-ADObject (Get-ADRootDSE).schemaNamingContext -Property objectVersionAnd now compare the output with following table, to know your AD Schema Version.
AD version | objectVersion |
Windows Server 2000 | 13 |
Windows Server 2003 | 30 |
Windows Server 2003 R2 | 31 |
Windows Server 2008 | 44 |
Windows Server 2008 R2 | 47 |
Windows Server 2012 | 56 |
Windows Server 2012 R2 | 69 |
Windows Server 2016 | 87 |