How to check Active Directory Schema Versions

Schema version value is stored in the objectVersion attribute in Active Directory. There are different methods to query and find the attributes value:

  • Registry
  • Command Line – DSQUERY
  • ADSIEdit.msc
  • Powershell

Applies to: Windows server 2003, Windows server 2008 and Windows server 2012 server as well.

To check different AD schema versions, visit the following links: Active Directory Schema versions

Registry:

Navigate to registry: HKLM\System\CurrentControlSet\Services\NTDS\Parameters

DWORD Value: Schema Version (value in Decimal)

In example below, the schema version is 47 (Windows server 2008 R2)

image

 

Command Line – DSQUERY

Open the command prompt as administrator and type:

dsquery * cn=schema,cn=configuration,dc=DOMAINNAME,dc=COM -scope base -attr objectVersion 

image

 

ADSIEDIT

1.  Launch ADSIEdit.msc and connect to Schema naming context.

image

 

2.  On the right pane, right click and go to properties.

3.  In properties window, scroll down to attribute objectVersion

image

 

Powershell

Launch the Active Directory module for Powershell and type the following command:

Get-ADObject "cn=schema,cn=configuration,dc=DOMAINNAME,dc=COM" -properties objectversion

image

 

Related article: Active Directory Schema versions