Get Schema version of one or all domain controllers in a domain

Single Domain Controller:

To find out the current schema version by inspecting the objectVersion property of CN=Schema,CN=Configuration, For example, to find out the current schema version, use a tool like ADSIEDIT or dsquery, e.g.:



Multiple Domain Controllers:

During a schema update or just as a pre-check it is important to find the schema versions across the domain. To verify after a schema update (let’s say going from 2016 to 2019) has occurred on a DC holding the schema master role and see if replication is working to update all the other DCs

Using the following script will query the domain and provide the schema version for each domain controller:

Below is a list of OS versions and related schema versions:

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
Windows Server 2019 88