How to check AD Schema version using PowerShell

Active Directory Microsoft Scripting

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.

AD Schema Powershell

Below is the list of Windows Server versions and the corresponding objectVersion (Schema version) value.

Windows Server versionobjectVersion value
Windows Server 200013
Windows Server 200330
Windows Server 2003 R231
Windows Server 200844
Windows Server 2008 R247
Windows Server 201256
Windows Server 2012 R269
Windows Server 201687
Windows Server 201988

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

Leave a Reply

Your email address will not be published. Required fields are marked *