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

AD Forest Recovery - Cleaning metadata of removed writable domain controllers

· 52CE 我爱测

Metadata cleanup removes Active Directory data that identifies a DC to the replication system. Note that outside of a Forest Recovery, metadata cleanup is part of the demotion process of domain controllers, however, when they aren't reachable anymore, this process also applies. Use the following procedure to delete the DC objects for DCs that you plan to…

Metadata cleanup removes Active Directory data that identifies a DC to the replication system.

Note that outside of a Forest Recovery, metadata cleanup is part of the demotion process of domain controllers, however, when they aren't reachable anymore, this process also applies.

Use the following procedure to delete the DC objects for DCs that you plan to add back to the network by reinstalling AD DS.

Delete a domain controller using Active Directory Users and Computers

When you use the version of Active Directory Users and Computers or Active Directory Administrative Center in Remote Server Administration Tools (RSAT), metadata cleanup is performed automatically when you delete the DC object. The server object and the computer object are also deleted automatically.

As an alternative, you can also use Active Directory Sites and Services in RSAT to delete a DC object. If you use Active Directory Sites and Services, you must delete the associated server object and NTDS Settings object before you can delete the DC object. Metadata cleanup can also be done through command line, via NTDSUtil or using PowerShell with Active Directory Module.

For information about installing RSAT, see the article Remote Server Administration Tools.

To delete a domain controller object using Active Directory Users and Computers in RSAT

  1. Select Start, select Administrative Tools, and then select Active Directory Users and Computers.
  2. In the console tree, double-click the domain container, and then double-click the Domain Controllers organizational unit (OU).
  3. In the details pane, right-click the DC that you want to delete, and then select Delete. :::image type="content" source="media/86716786218562ce1d1abcdb4a22ce11.png" alt-text="Delete":::
  4. Select Yes to confirm the deletion. Select the This Domain Controller is permanently offline and can no longer be demoted using the Active Directory Domain Services Installation Wizard (DCPROMO) check box and select Delete.
  5. If the DC was a global catalog server, select Yes confirm that the deletion.

Next steps

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 06/21/2023
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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