Obscurum per Obscurius

Explaining the obscure by means of the more obscure

How to Query Active Directory to Determine the Schema Version

How to Query Active Directory to Determine the Schema Version

Rate This
  • Comments 2

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
   
Leave a Comment
  • Please add 4 and 1 and type the answer here:
  • Post
  • Since this article appears high on search results, I wanted to clarify for others that visit this page: according to KB 556086, the schema version for Server 2012 RTM is 56 and not 52 as indicated in this article (this article was written before RTM)

    support.microsoft.com/.../556086

  • Thanks for the feedback Aakash.  Correction made.

Page 1 of 1 (2 items)