How to Query Active Directory to Determine the Schema Version

You can query Active Directory to determine the schema version as shown below.  Replace “dc=domainname” with your information:


dsquery * cn=schema,cn=configuration,dc=domainname,dc=local -scope base -attr objectVersion


The PowerShell version below does not require any customization:

Get-ADObject (get-adrootdse).schemaNamingContext -Property objectVersion


The table below shows Active Directory schema versions.

Windows 2000 Server 13
Windows 2003 RTM, SP1, SP2 30
Windows 2003 R2 31
Windows 2008 44
Windows 2008 R2 47
Windows Server 2012 Beta 52
Windows Server 2012 56
 Windows Server 2012 R2 69