In this article, I will show you how to check the AD Schema version using Powershell. First, you need to log into your Active Directory Domain Controller.
If you have more than one domain controller, you should log in to the forest root domain controller.
Open PowerShell with Administrator Permission
If there is a pop-up screen from the User Account Control or UAC asking, then click Yes.
Run the command Get-ADObject (Get-ADRootDSE).schemaNamingContext -Property objectVersion.
Below is the list of Windows Server versions and the corresponding objectVersion (Schema version) value.
Windows Server version | objectVersion value |
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 | 88 |
You can also remotely run this command on your DC like this:
Invoke-Command -Credential (get-credential) -ComputerName DC.FQDN -ScriptBlock {Get-ADObject (Get-ADRootDSE).schemaNamingContext -Property objectVersion}
Article source: How to check AD Schema Version using PowerShell Command – MSNOOB