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

Adding or Deleting an Application Directory Partition Replica

· 52CE 我爱测

The first replica of an application directory partition is created on the domain controller that was bound to it at creation time.

The first replica of an application directory partition is created on the domain controller that was bound to it at creation time. Additional replicas can be created on any domain controller in the forest, not necessarily in the same domain as the initial domain controller. An application directory partition replica can only exist on a domain controller that is running Windows Server 2003 or later. For more information, see this TechNet article on Partition Management.

To add a replica for an application directory partition, perform the following steps

  1. Search the Partitions container for a crossRef object that has an nCName attribute value that is equal to the distinguished name of the application directory partition.
  2. Bind to the crossRef object with delegation enabled. This is required because the crossRef object can only be modified on the Domain-Naming FSMO role holder. With delegation enabled, the domain controller can contact the Domain-Naming FSMO role holder using the same credentials.
  3. Add the distinguished name of the nTDSDSA object for the domain controller that will host the new replica to the msDS-NC-Replica-Locations attribute of the crossRef object.

When the new msDS-NC-Replica-Locations attribute value is replicated to the new domain controller that will host a replica of the application directory partition, the KCC will be triggered to replicate the application directory partition to the target domain controller.

To remove a replica for an application directory partition, perform the same steps above to locate the crossRef object that represents the application directory partition and remove the value that corresponds to the domain controller from the msDS-NC-Replica-Locations attribute of the crossRef object.

When the new msDS-NC-Replica-Locations attribute value is replicated to the domain controller that will no longer host a replica of the application directory partition, the KCC will be triggered to remove the replica of the application directory partition on the target domain controller.

If a domain controller that is hosting an application directory partition replica is removed or demoted, the Active Directory server will automatically remove the value corresponding to the domain controller from the msDS-NC-Replica-Locations attribute of all crossRef objects.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. 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 Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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