How to Check AD Schema Version using PowerShell
Active Directory Schema (AD DS) – The Active Directory schema contains formal definitions of every object class that can be created in an Active Directory forest. The schema also contains formal definitions of every attribute that can exist in an Active Directory object.
This article describes how to find the current Schema Version.
How to Check AD Schema Version Using Get-AdObject
To check AD schema version, use the Get-AdObject cmdlet in PowerShell.
To check the ad schema version, take the steps listed below.
- With administrator permissions, open PowerShell. By doing this, you can be sure you have the rights needed to view AD schema data.
- Run the following command to get the active directory schema version.
Get-ADObject (Get-ADRootDSE).schemaNamingContext -Property objectversion
The Get-AdObject command returns DistinguishedName, Name, ObjectClass, ObjectGUI and ObjectVersion. ObjectVersion show the AD schema version for the active directory domain services.
The outcome of running the command mentioned above on a Windows Server 2012system to get the ad schema version is shown below.
How to Check AD Schema Version using ADSIEdit.msc
- Start ADSIEdit.msc
- Navigate to
"CN=Schema,CN=Configuration,DC=Windowstechno,DC=local"
- Scroll down to find out the
objectversion
attribute value.
The objectversion
attribute value contains the Active Directory schema version. On the Windows Server 2012, the active directory schema version is 69.
How to Get AD Schema Version using DSQuery
command
dsquery * "CN=Schema,CN=Configuration,DC=Windowstechno,DC=local" -scope base -attr objectVersion
How to Get AD Schema Version using Regedit
Open the registry editor and navigate to below registry path; –
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Parameters]
Active Directory Schema Version List
Window Server Version and Schema Version List
Below are the list of Windows server versions and Active Directory schema versions.
Window Server Version | Schema Version |
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/2022 | 88 |
So, that’s all in this blog. I will meet you soon with next stuff. Have a nice day!!!
Recommended content
- System Owned Attribute in Active Directory
- ‘Name’ Attribute cannot be modified – owned by the system
- Specific Considerations When Modifying the “CN” attribute?
Guys please don’t forget to like and share the post. Also join our WindowsTechno Community and where you can post your queries/doubts and our experts will address them.
You can also share the feedback on below windows techno email id.
If you have any questions, feel free to contact us on support@windowstechno.com also follow us on facebook@windowstechno to get updates about new blog posts.