Skip to content
sysarticle
  • Home
  • Blog
    • VMware
    • SCCM
    • Exchange
    • Active Directory
    • Microsoft 365
    • Powershell
    • News
  • About
  • Contact
Newsletter
Active Directory

How To Windows Server 2016 Metadata Cleanup Best Way

By Ahmet Tolga KAYA · October 8, 2026 · 3 min read
How To Windows Server 2016 Metadata Cleanup Best Way

In an Active Directory environment, we will look at how to remove and clean up a Domain Controller (DC) server using Metadata Cleanup commands. But under what circumstances should you perform a Metadata Cleanup?

If an Additional Domain Controller in your organization encounters a hardware or software failure and you need to remove its Additional DC role, you may no longer be able to access the affected server. In such cases, Metadata Cleanup can be performed from another available Domain Controller to remove the failed DC’s metadata from Active Directory.

In the Active Directory Users and Computers console, under the Domain Controllers Organizational Unit (OU), you will see the servers that are configured as Domain Controllers, including your Additional Domain Controllers.

Note: Before removing a Domain Controller from the existing environment using Metadata Cleanup, make sure that the DC is completely offline and will never be brought back online. Do not perform Metadata Cleanup if the Domain Controller may be restored or reconnected to the network.

Table of Contents

Toggle
  • Let’s Start Metadata Cleanup
  • Post-Procedure Tasks Metadata Cleanup

Let’s Start Metadata Cleanup

On the Primary Domain Controller (PDC) server, open Command Prompt with Run as administrator privileges.

The commands we will use are listed below. You can also follow the process using the screenshots provided.

Ntdsutil

Ntdsutil: Metadata Cleanup

Metadata Cleanup: Connections

Server Connections: Connect to server HQDC1

Server Connections: Quit

Metadata Cleanup: Select Operation Target

Select Operation Target: List Sites

Select Operation Target: Select Site 6
(Select the site where the Domain Controller to be removed is located.)

Select Operation Target: List Domains

Select Operation Target: Select Domain 0
(Select the appropriate domain. In this example, 0 is selected because there is only one domain in the environment.)

Select Operation Target: List Server in Site

Select Operation Target: Select Server 0
(Select the Domain Controller for which Metadata Cleanup will be performed.)

Select Operation Target: QuitCode language: PHP (php)
metadata cleanup
metadata cleanup
Metadata Cleanup: Remove Selected Server

Information about the selected Domain Controller will be displayed. Verify that the correct DC is selected, and confirm the operation if the information is correct.

metadata cleanup

After completing these steps, the Domain Controller role and its associated metadata have been removed from the existing Active Directory environment.

Post-Procedure Tasks Metadata Cleanup

After performing the Metadata Cleanup operation, verify that the corresponding Domain Controller object has been removed from the relevant site under Active Directory Sites and Services.

metadata cleanup

The Domain Controllers that were removed through the Metadata Cleanup process must also be removed from the Name Server (NS) records in both the Forward Lookup Zones and Reverse Lookup Zones.

metada cleanup

This document provides the step-by-step procedures for performing Metadata Cleanup in an Active Directory environment. The objective is to ensure that the Metadata Cleanup process is completed thoroughly and in accordance with standard Active Directory practices.

The purpose of this procedure is to remove the Domain Controller role from an Active Directory environment when the Domain Controller is offline or has become permanently unavailable.

Important: Do not perform Metadata Cleanup until you have confirmed that the Domain Controller being removed is completely powered off and will not be brought back online. Performing Metadata Cleanup while the Domain Controller is still active or may reconnect to the environment can lead to Active Directory replication and structural issues.

Read more: How to Fix Outlook Search Not Updating in Shared Mailboxes

More learn metada cleanup: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/deploy/ad-ds-metadata-cleanup

Ahmet Tolga KAYA

Systems Engineer and Technical Writer focused on Windows, Microsoft technologies, infrastructure, cybersecurity, automation, and platform reliability.

Next to read Powershell 04/09/2026 Best Export Group Memberships in Microsoft Entra ID with PowerShell Next to read Microsoft 365 31/08/2026 Microsoft 365 Intune Remote Help Now Supports Unattended Windows Access Next to read Microsoft 365 02/09/2026 Upgrade Microsoft Entra Connect Best Way Next to read SCCM 27/08/2026 How to Best Using SCCM Filter Devices in a Specific Organizational Unit (OU) Next to read Microsoft 365 30/09/2026 How to Fix Entra Connect Permission-Issue Export Errors

Take a look

Best Export Group Memberships in Microsoft Entra ID with PowerShell04/09/2026 Microsoft 365 Intune Remote Help Now Supports Unattended Windows Access31/08/2026 Upgrade Microsoft Entra Connect Best Way02/09/2026 How to Best Using SCCM Filter Devices in a Specific Organizational Unit (OU)27/08/2026

Follow us

♥
LinkedInFollow us on LinkedIn ↗
  • How to Fix “PXE Boot Aborted” When a Task Sequence Isn’t Deployed Correctly16/10/2026
  • How to Use Process Explorer to See What Task Manager Can’t14/10/2026
  • Tiny11 Is Being Rebuilt From the Ground Up: What That Means for Windows 11 26H212/10/2026
  • How to Migrate DHCP Server to a New Windows Server12/10/2026
  • How to Connect to Remote PC with Windows App09/10/2026
  • Windows 11 25H2 and 26H2: What Is Actually Changing?08/09/2026
  • Windows 11 26H2 Is Here: How to Install It Safely01/10/2026
  • KB5124008 Breaks Certificate-Based Always On VPN on Windows 11 24H2 and 25H212/09/2026
  • Microsoft 365 Web Access Is Moving to copilot.cloud.microsoft — Check Your Allow List Now10/09/2026
  • Microsoft 365 Intune Remote Help Now Supports Unattended Windows Access31/08/2026

NEWSLETTER

Join the movement and receive our weekly Tech related newsletter. It's Free.

Popular Articles

  • How to Fix “PXE Boot Aborted” When a Task Sequence Isn’t Deployed Correctly
  • Greyed Out “Migrate” Button Issue in VMware vCenter and Its Solution
  • An Incomprehensible M365 Case: “The Mailbox Has 50 GB of Free Space, But the User Gets a ‘Mailbox Full’ Error!”

Follow Us

Follow us on social media and keep up with our latest Technology news.

© 2026 - All Rights Reserved

  • Privacy Policy
  • Terms and Disclosure
  • Contact
Your privacy choices

Allow optional analytics? You can change this choice in Cookie settings at any time.

Cookie settings

Choose which optional categories we may enable. Essential cookies remain on to store this preference and keep the site secure.

Essential

Required for security, consent storage, and core navigation. Always active.

Analytics

Helps us understand readership and improve technical content quality.