Active Directory Series

🔬 Reading dcdiag /v from a "Top 1%" Perspective — Which Errors You Can Ignore, and Which You Can't

Introduction

This article is part of the Top 1% Series’ full article guide, and the ninth article in the Active Directory series. Together with repadmin and net share, covered in Understanding DC Health Checks from a “Top 1%” Perspective, this is one of the primary tools for confirming DC health.

Prerequisites

Getting the Big Picture

What Does dcdiag Actually Test?

dcdiag (Domain Controller Diagnostics) is a tool that runs, in one pass, a large number of independent tests required for a DC to function correctly, and reports each as PASS, FAIL, or a warning. With the /v (verbose) option, it also outputs more detailed information about what grounds each test used to reach a PASS/FAIL judgment.

graph TB
    Dcdiag["dcdiag /v"] --> T1["Connectivity test"]
    Dcdiag --> T2["Advertising test"]
    Dcdiag --> T3["Replications test"]
    Dcdiag --> T4["Services test"]
    Dcdiag --> T5["FSMO check test (KnowsOfRoleHolders)"]
    Dcdiag --> T6["DNS test"]
    Dcdiag --> Tn["...and many more tests"]

The key point is that each of dcdiag’s tests checks a separate, independent aspect. A single test failing doesn’t necessarily mean “the entire DC is completely down,” and conversely, even if everything passes, other kinds of problems that dcdiag simply doesn’t check for (such as the detailed replication failure counts confirmed by repadmin, mentioned earlier) may still exist. dcdiag isn’t an all-powerful, single command — it’s better positioned as an efficient entry point for checking a large number of aspects at once.

Fundamentals, Explained Thoroughly

Major Test Items and What They Mean

dcdiag /v runs dozens of different tests, but here’s a breakdown of the items most frequently referenced in real-world AD migration and troubleshooting work.

Test nameWhat it verifiesWhat a FAIL could indicate
ConnectivityDNS name resolution and network reachability to the target DCThe DC can’t be reached at all, or there’s an error in its DNS registration
AdvertisingWhether that DC is correctly advertised as an “available DC” via DC locator functionality (the SRV records covered in Reading DNS Zones and Records from a “Top 1%” Perspective)Clients can’t discover that DC
NetLogonsWhether the shares the Netlogon service needs (NETLOGON, SYSVOL) are accessibleA problem with SYSVOL replication, or an abnormality in the Netlogon service itself
ReplicationsWhether that DC’s most recent replications have any failuresA summarized version of what repadmin checks — use repadmin for detailed isolation
ServicesWhether required services for functioning as a DC — Netlogon, KDC, DNS, and so on — are started correctlyA specific service has stopped or terminated abnormally
KnowsOfRoleHoldersWhether that DC correctly recognizes the current holder of each of the five FSMO rolesInconsistency in FSMO holder information
MachineAccountWhether that DC’s own computer account settings (such as its SPNs) are correctA possible lingering inconsistency related to a computer name change
FrsEvent/DFSREventWhether errors have been logged in the event log related to SYSVOL replication (legacy FRS or DFSR)SYSVOL replication may be functioning now, but a record of a past error still remains
DNSWhether the DNS records a DC needs (the SRV record set mentioned above, and so on) are correctly registeredA DNS registration gap, or a zone misconfiguration
How exactly does the Connectivity test confirm "reachability"?

The Connectivity test isn’t a single simple check — it runs four checks in sequence:

  1. DNS name resolution: Can the target DC’s hostname be correctly resolved via DNS?
  2. ICMP ping response: Does a ping actually get through to the resolved IP address?
  3. LDAP bind: Can you actually connect to (bind to) the target DC’s AD DS over the LDAP protocol?
  4. RPC bind: Can you connect to the AD DS RPC interface using the DsBindWithCred API?

Only once all four succeed does the Connectivity test pass. Regardless of whether the command prompt running dcdiag /v is on the target DC itself or a different machine, what’s common across the board is that it’s verifying whether this entire chain of reachability — DNS resolution → ping → LDAP → RPC — holds, as seen from the machine running the command. Note also that the Connectivity test is a prerequisite for every other test: for any target DC where it fails, none of the subsequent tests are run (running them wouldn’t produce a meaningful result anyway).

The role of each service the `Services` test checks, needed for a DC to function

The main services the Services test checks each play a specific role:

ServiceRole / communication involved
NetlogonThe core service covered in Understanding the Netlogon Service and the Secure Channel — handles DC location (querying DNS for SRV records), establishing the secure channel (NRPC, over SMB on port 445), and pass-through authentication.
KDC (Kerberos Key Distribution Center)The service covered in Understanding Kerberos Authentication — issues TGTs and service tickets. Communicates over UDP/TCP port 88.
DNS ServerHandles queries against, and dynamic updates to, AD-integrated zones. Communicates over UDP/TCP port 53 (when the DC also hosts the DNS server role).
W32Time (Windows Time)The time-sync service covered in Understanding the Configuration Values for Building an NTP Server on Windows Server. Communicates over UDP port 123. Since Kerberos authentication assumes the clock drift between a client and a DC stays within a certain range, a problem with this service can spill over into Kerberos authentication too.

Rather than just a comparison table, this is most useful in practice viewed through the lens of “at what point in the sequence of a client logging on to a DC does each service get invoked?” See the full sequence diagram — from DC discovery through Kerberos authentication — in Understanding the Netlogon Service and the Secure Channel as well.

The relationship between the DC locator, `_msdcs`, and the global catalog

These three are separate concepts, each with a different role, that nonetheless work closely together. The DC locator, as covered in Understanding the Netlogon Service and the Secure Channel, is the actual process (a function the Netlogon service performs) by which a client searches for “the DC (or global catalog) it should connect to.” What that process is actually querying is the set of SRV records stored in the _msdcs zone, covered in Reading DNS Zones and Records. And the global catalog is one of a DC’s extended roles, holding a partial replica of other domains’ information across the forest — inside the _msdcs zone, there’s a dedicated SRV record, _ldap._tcp.gc._msdcs.<forest root domain>, specifically for locating global catalog servers. In other words: the DC locator is “the act of searching,” _msdcs is “where the information to search is stored,” and the global catalog is “one of the roles that can be the target of that search” — three concepts operating at three different layers.

What the Extra Information Added by the /v Option Means

Running dcdiag without /v shows only a one-line PASS/FAIL for each test, like passed test Connectivity. With /v, even for tests that passed, it outputs the detailed information underlying that judgment (the content of records checked, response times, internal verification steps, and so on). This lets you confirm not just that a test “passed,” but what grounds it used to reach that PASS, making it much harder to overlook a borderline state (barely passing, with no margin).

The View From the Top 1% Perspective

Grounds for Ignoring an Error or Warning, and Grounds for Not

Because dcdiag /v has so many items, in a real AD environment, it’s actually rarer for zero warnings to show up at all. What matters here is taking the stance of individually judging “grounds for ignoring” versus “grounds for not ignoring” from the following angles.

The basic principle for judgment is to center it on whether that warning or error concerns a kind of test that directly affects the work you’re about to perform (FSMO transfer, demoting a DC, and so on). Being decisive here matters in practice — don’t spend too much time on unrelated, minor warnings, but never defer a FAIL on a core test.

When to Run dcdiag

In real AD migration work, it’s recommended to run dcdiag /v at at least several distinct points and compare how the state changes.

  1. Before starting the migration work: Establishes a baseline confirming the existing environment is healthy in the first place
  2. Right after adding a new DC: Confirms there’s no issue with the new DC itself, or with how existing DCs see it
  3. Right after an FSMO transfer: Confirms that things like KnowsOfRoleHolders correctly recognize the new holder
  4. Right after demoting and removing the old DC: Confirms no trace of the old DC remains, and that the remaining DCs stay in a healthy state

Saving the results at each stage, so you can distinguish “warnings that existed before the migration” from “warnings newly caused by the migration work,” makes a huge difference in how efficiently you can isolate causes. If you want to actually experience these four stages hands-on, see Hands-On: Migrating From an Old DC to a New One, which also includes an exercise in deliberately triggering and reading a dcdiag warning.

Common Misconceptions and Pitfalls

The Troubleshooting Perspective

Troubleshooting with dcdiag /v’s results is best approached by prioritizing based on whether a test concerns core functionality or something peripheral.

  1. A FAIL on any of Replications, NetLogons, or Services: Identify the cause as the top priority. Combine this with repadmin and net share, covered in Understanding DC Health Checks from a “Top 1%” Perspective, to get a more detailed picture.
  2. A FAIL on KnowsOfRoleHolders: This likely indicates an inconsistency in FSMO holder information — confirm the actual holder with netdom query fsmo as well.
  3. A warning on the DNS test: Check whether the SRV records under _msdcs, covered in Reading DNS Zones and Records from a “Top 1%” Perspective, are correctly registered.
  4. An unexplained warning shows up consistently across multiple DCs: Suspect a factor common to the entire environment — network configuration or DNS settings — rather than a problem specific to any individual DC.

Preventive Measures and Permanent Fixes

Summary

What to Keep in Mind From Today

  1. When looking at dcdiag /v’s results, first check which test item a warning belongs to, rather than counting how many warnings there are.
  2. Build the habit of saving dcdiag /v’s results at each stage of an AD migration and comparing before and after.

References

Comments

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