大网数据广告活动
域与目录服务

Find the Current Active Directory Schema Version

· 52CE 我爱测

This article describes how to find the current schema version in Active Directory for Windows Server.

An Active Directory (AD) schema is a set of rules that defines what kinds of object classes you can create in an AD forest. For more information, see Active Directory schema (AD DS).

This article walks you through how to find the schema version and Exchange Services schema version that your forest uses.

Prerequisites

To perform the tasks described in this article, ensure that your environment meets the following requirements:

  • Your machine should run Microsoft Exchange Server 2016 or later.
  • You must install the Active Directory Domain Services (AD DS) role. To learn more, see Install or uninstall roles, role services, or features.
  • The server must be a domain controller (DC).
  • Users must be part of the Domain Admins or Enterprise Admins group.

Finding the schema version

To find the current Active Directory schema version:

Note: The internal root domain used in this demo is contoso.local. You need to modify the DC= field to correspond with the AD configuration in your own environment.

Depending on your configuration, you might also need to import the AD PowerShell module by running the Import-Module ActiveDirectory command before you can start running AD cmdlets.

GUI
  1. Open the Start menu.

  2. Enter ADSIEdit.msc, and then select Enter to open ADSI Edit.

  3. In the pane on the left side of the window, right-click ADSI Edit, and then select Connect to.

  4. In the Connection Settings window, under Select a well known Naming Context, select Schema, and then select OK.

  5. In the pane on the left side of the window, expand the schema for your DC.

  6. Right-click CN=Schema,CN=Configuration,DC=contoso,DC=local and then select Properties.

  7. In the Attribute list, scroll down until you find the objectvVersion attribute. The value is the schema version.

CMD

Use the DSQuery command line. Run the following command:

dsquery * "cn=schema,cn=configuration,dc=contoso,dc=local" -scope base -attr objectVersion
PowerShell

Use the Get-ItemProperty PowerShell cmdlet. Run the following command:

Get-ItemProperty 'AD:\CN=Schema,CN=Configuration,DC=contoso,DC=local' -Name objectVersion

When you finish, use the table in Mapping the objectVersion attribute to find which operating system (OS) version corresponds to your version number.

Mapping the objectVersion attribute

The following table maps the number shown in the objectVersion attribute with its corresponding OS version:

Version Operating system
91 Windows Server 2025
88 Windows Server 2022
88 Windows Server 2019
87 Windows Server 2016
69 Windows Server 2012 R2
56 Windows Server 2012
47 Windows Server 2008 R2
44 Windows Server 2008 RTM
31 Windows Server 2003 R2
30 Windows Server 2003 RTM, Windows 2003 Service Pack 1, Windows 2003 Service Pack 2

Find the current Exchange Schema version

To find the current Exchange Schema version, you can use one of the following methods:

GUI
  1. Open the Start menu.

  2. Enter ADSIEdit.msc, and then select Enter to open ADSI Edit.

  3. In the pane on the left side of the window, right-click ADSI Edit, and then select Connect to.

  4. In the Connection Settings window, under Select a well known Naming Context, select Schema, and then select OK.

  5. In the pane on the left side of the window, expand the schema for your DC.

  6. Select CN=Schema,CN=Configuration,DC=contoso,DC=local.

  7. In the pane in the center of the window, scroll down the Name list and open CN=ms-Exch-Schema-Version-Pt.

  8. In the Attribute list, scroll down until you find the rangeUpper attribute. The value is the schema version.

CMD

Use the DSQuery command:

dsquery * "CN=ms-Exch-Schema-Version-Pt,cn=schema,cn=configuration,dc=contoso,dc=local" -scope base -attr rangeUpper
PowerShell

Run the Get-ItemProperty PowerShell cmdlet:

Get-ItemProperty "AD:\CN=ms-Exch-Schema-Version-Pt,cn=schema,cn=configuration,$((get-addomain).DistinguishedName)" -Name rangeUpper

When you finish, use the information in Mapping the rangeUpper attribute to determine which version of Exchange Schema corresponds to your attribute value.

Mapping the rangeUpper attribute

The following articles show how to map the rangeUpper attribute value with its corresponding Exchange Schema version:

Related content

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 07/08/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。