Active Directory Series

🧹 Understanding Post-Migration AD Cleanup from a "Top 1%" Perspective — The Division of Labor Between dsa.msc, dssite.msc, adsiedit.msc, and dnsmgmt.msc

Introduction

This article is part of the Top 1% Series’ full article guide, and the tenth article in the Active Directory series. It assumes you understand partition types from Understanding the Difference Between AD and DC, and Domains vs. Forests, from a “Top 1%” Perspective, and DNS record details from Reading DNS Zones and Records from a “Top 1%” Perspective.

Prerequisites

Getting the Big Picture

The Difference Between What the Four Consoles Manage

These four consoles are different “windows” onto the same single database: AD DS. Here’s a breakdown of the range of data each one manages:

graph TB
    subgraph AdDs["AD DS database"]
        DomainPart["Domain partition<br/>(users, computers, groups, OUs)"]
        ConfigPart["Configuration partition<br/>(site configuration, replication topology)"]
        DnsPart["DomainDnsZones/ForestDnsZones partitions<br/>(DNS zone data)"]
        SchemaPart["Schema partition"]
    end
    Dsa["dsa.msc<br/>(Active Directory Users and Computers)"] --> DomainPart
    Dssite["dssite.msc<br/>(Active Directory Sites and Services)"] --> ConfigPart
    Dnsmgmt["dnsmgmt.msc<br/>(DNS Manager)"] --> DnsPart
    Adsiedit["adsiedit.msc<br/>(ADSI Edit)"] -.can access every partition directly.-> DomainPart
    Adsiedit -.-> ConfigPart
    Adsiedit -.-> DnsPart
    Adsiedit -.-> SchemaPart

dsa.msc, dssite.msc, and dnsmgmt.msc are each dedicated consoles that manage a specific partition through an easy-to-use GUI. adsiedit.msc, on the other hand, is special: it’s not dedicated to any particular partition — it’s a general-purpose LDAP editor that can directly access any partition within AD DS.

Fundamentals, Explained Thoroughly

dsa.msc (Active Directory Users and Computers): The Window Onto the Domain Partition

dsa.msc is the console for managing the domain partition explained in Understanding the Difference Between AD and DC, and Domains vs. Forests, from a “Top 1%” Perspective — the objects you touch most often in day-to-day operations: users, computers, groups, and OUs (organizational units).

In an AD migration context, you check two things here:

Why does information keep lingering in the Computers container even after removing a machine from the domain?

A common practical question here is: “I removed a PC from the domain (put it back in a workgroup), so why does its computer name keep lingering forever in dsa.msc’s Computers container?”

This is because “the operation of leaving the domain on the PC side” and “the operation of deleting that computer account (object) on the AD DS side” are entirely separate operations. The PC-side action of “leaving the domain and returning to a workgroup” is simply a local configuration change on that PC — it just stops that PC from using the domain’s credentials. This operation doesn’t automatically send a request to AD DS saying “please delete this computer account.”

The computer account on the AD DS side keeps existing unless an administrator explicitly deletes it. This is actually an intentional design consideration — if the account were automatically deleted every time a machine left the domain, then even if you just wanted to rejoin the same PC to the domain, it would be treated as a brand-new computer account every time, requiring you to redo everything tied to that account — the scope of applied Group Policy, group memberships, and so on. It’s easier to accept this behavior once you understand it as a deliberate two-step design: “leave the account in place after leaving the domain, and let an administrator explicitly delete it if and when it’s actually needed.”

dssite.msc (Active Directory Sites and Services): The Window Onto the Configuration Partition

dssite.msc is the console for managing the configuration partition explained in Understanding the Difference Between AD and DC, and Domains vs. Forests, from a “Top 1%” Perspective — the definition of sites (physical locations), the mapping between subnets and sites, and the replication configuration of each DC itself.

Specifically, under each site’s Servers folder inside the Sites container, the DCs belonging to that site are registered as server objects, and under each server object sits an NTDS Settings object — the set of connection objects representing which other DCs that DC replicates with, and on what schedule.

dssite.msc matters in an AD migration context because a properly demoted DC also has this server object and its NTDS Settings object automatically deleted. So, if an old DC’s server object still remains in dssite.msc, that means the demotion process wasn’t fully completed, and stale information about AD DS’s replication configuration is still lingering.

The Difference Between dsa.msc and dssite.msc

In short: dsa.msc is the window for managing “what exists in the domain” (who belongs to which group, in which OU); dssite.msc is the window for managing “where DCs physically and network-wise are, and how they replicate with each other.” Ordinary day-to-day user and group management is fully covered by dsa.msc alone, but dssite.msc becomes the primary battleground when adding or removing a DC, or designing/troubleshooting the replication topology. As noted above, confirming that an old DC has truly been completely removed requires checking not just dsa.msc (the presence or absence of a computer account) but also dssite.msc (the presence or absence of the server object and NTDS Settings) — only then can you conclude it’s been fully removed at the AD DS structural level.

adsiedit.msc (ADSI Edit): Direct Access to Every Partition

adsiedit.msc is a general-purpose editor that can directly read and write raw LDAP attributes across every partition in AD DS (domain, configuration, schema, DomainDnsZones, and ForestDnsZones included). Unlike the purpose-built, easy-to-use GUIs of dsa.msc or dssite.msc, it displays the object hierarchy and attribute values almost as-is, in raw form. The structure of LDAP itself — DNs and attributes — is covered in Understanding the LDAP Protocol.

adsiedit.msc becomes necessary in AD migration cleanup mainly when demotion couldn’t complete normally (because the old DC had already failed or been lost, for example), and forced metadata cleanup via ntdsutil had to be used instead. In that case, some of the object deletion and tidying that a normal demotion would have handled automatically can be left incomplete — leaving behind leftover objects that don’t show up in dsa.msc or dssite.msc’s GUI, or can’t be deleted through normal operations. In these cases, you identify and delete the object in question directly from adsiedit.msc.

adsiedit.msc is powerful, but dangerous

adsiedit.msc bypasses many of the safety mechanisms that a tool like dsa.msc provides during operations — confirmation prompts asking “are you sure you want to delete this,” dependency checks, and so on — and writes directly to AD DS’s data. Deleting or modifying the wrong attribute on the wrong object can seriously impact the integrity of AD DS as a whole. It shouldn’t be treated as a casual, everyday operational tool — it should be positioned as a last resort, used only in specific, limited situations that other GUI tools can’t handle, and only with a thorough understanding of what you’re doing.

dnsmgmt.msc (DNS Manager): The Window Onto DNS Zone Data

As explained in Reading DNS Zones and Records from a “Top 1%” Perspective, the DNS zone data managed by dnsmgmt.msc is stored, for an AD-integrated zone, in the dedicated DomainDnsZones and ForestDnsZones partitions. In AD migration cleanup, you check three things:

The View From the Top 1% Perspective

Why You Need to Check as Many as Four Consoles

When a proper (graceful) demotion is performed, most of the data these four consoles manage is actually cleaned up automatically. Moving the computer account in dsa.msc, deleting the server object in dssite.msc, and deleting the records in dnsmgmt.msc are all part of what the demotion wizard itself performs internally.

So, manually checking all four consoles one by one really matters in two specific scenarios:

  1. When the old DC had already failed or been lost, a proper demotion couldn’t be performed, and forced metadata cleanup via ntdsutil had to be used instead — this path can leave part of the automatic cleanup incomplete (particularly the server object in dssite.msc, and in some cases DNS records), making manual checking and deletion essential.
  2. Even after a proper demotion, verifying (trust but verify) that the automatic cleanup truly completed fully — in a production AD migration especially, it’s practically important to build in a process of visually confirming the results rather than blindly trusting the automated process.

Common Misconceptions and Pitfalls

The Troubleshooting Perspective

Cleanup omissions after an AD migration are best approached by first confirming whether the demotion was graceful, or a forced metadata cleanup.

  1. A forced metadata cleanup was performed: Always manually check all four consoles (dsa.msc, dssite.msc, adsiedit.msc, dnsmgmt.msc). A lingering server object or NTDS Settings in dssite.msc in particular is an easy thing to overlook.
  2. A graceful demotion was performed, but you want to double-check just in case: Checking dsa.msc, dssite.msc, and dnsmgmt.msc is usually sufficient. Digging as far as adsiedit.msc is only needed if an anomaly is still found even after that.
  3. The old DC’s name is still referenced somewhere in some form: Combine this with the output of repadmin /replsummary or repadmin /showrepl *, covered in Understanding DC Health Checks from a “Top 1%” Perspective, to identify which partition or console still holds the remnant.

Preventive Measures and Permanent Fixes

Summary

What to Keep in Mind From Today

  1. When confirming post-migration cleanup, first check whether the demotion was graceful or a forced metadata cleanup — and if it was the latter, always check all four consoles.
  2. Don’t conclude “nothing’s left” based on dsa.msc alone — always also check dssite.msc for a lingering server object or NTDS Settings.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).