Finding the Active Directory schema version

adschema01

When the Domain Controller upgrade take place, the Active Directory schema must be extended in order to enable the new features. This extension causes the increment of schema version.

This is a summary of schema versions relative to Windows editions.

WINDOWS EDITION SCHEMA VERSION
Windows 2000 Server 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 - Preview 69

 

Procedure

To find current Active Directory schema there are different ways:

  • Registry
  • Command Prompt
  • PowerShell

Registry

Open the Registry Editor and navigate to:

HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters\<Schema Version>

adschema02

 

Command Prompt

Using the dsquery command, from the Command Prompt type the following:

dsquery * cn=schema,cn=configuration,dc=domain,dc=com -scope base -attr objectVersion"

Just replace dc=domain, dc=com with your configuration.

C:\>dsquery * cn=schema,cn=configuration,dc=nolabnoparty,dc=local -scope base -attr objectVersion"

adschema03

 

PowerShell

Launch the PowerShell ActiveDirectory module and type the following command to get the schema version.

Get-ADObject "cn=schema,cn=configuration,dc=domain,dc=com" -properties objectversion

Replace dc=domain, dc=com with your configuration.

PS C:\>Import-Module ActiveDirectory
PS C:\>Get-ADObject "cn=schema,cn=configuration,dc=nolabnoparty,dc=local" -properties objectversion

adschema04

These methods allows you to easily identify the Active Directory schema version in use in your environment.

firma