Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

KCC

Direct answer

The KCC (Knowledge Consistency Checker) runs on every domain controller and automatically builds the replication topology within a site, creating connection objects so every DC is reached within three hops.

When to use this

Use this when intra-site replication topology is wrong or connections are missing.

First 30 seconds

1. KCC builds connections automatically every 15 min.

2. Connections: Get-ADReplicationConnection -Filter *.

3. Errors: Directory Service events 1311, 1865.

4. Force: repadmin /kcc.

5. Avoid manual connections.

Operational verification

KCC → computes topology → connection objects

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Disabling KCC and then forgetting to maintain manual connections.
  • Sites without subnets, so the KCC topology does not match reality.
  • Old DC metadata left after a failed demotion (ntdsutil metadata cleanup or removing it in ADUC).
Platform / version applicability
Windows Server Active Directory and identity
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows Server Active Directory and identity
Key commandrepadmin /showrepl
Scope / prerequisiteUse this when intra-site replication topology is wrong or connections are missing.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 How it works and checks Verify boundary

The KCC runs every 15 minutes on every DC and creates connection objects within a site in a ring, adding shortcuts so no DC is more than three hops away. Manual connection objects are kept, but automatic ones are managed by the KCC.

repadmin /kcc            # run the KCC now
repadmin /showrepl       # inbound partners and last result
repadmin /replsummary    # overview of failures

Event 1311 means the KCC cannot build a spanning tree (often missing site links or unreachable DCs).

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • The KCC runs on every DC about every 15 minutes.
  • It never deletes manually created connections.
  • It keeps every DC within three hops inside a site.
Key checks
  • repadmin /replsummary — replication status summary
  • repadmin /showrepl <dc> — inbound partners and last results
  • repadmin /queue <dc> — pending inbound replication
  • Get-ADReplicationFailure -Target <dc> — failures
  • dcdiag /test:replications — replication test
ReferenceImportant terms & boundaries1 section · depth on demand

In depth

The Knowledge Consistency Checker runs on every DC (every 15 minutes) and automatically creates intra-site connection objects in a ring topology with shortcuts so no DC is more than three hops away.

repadmin /kcc dc01                # run KCC now
Get-ADReplicationConnection -Filter * | ft Name,ReplicateFromDirectoryServer,ReplicateToDirectoryServer,AutoGenerated

Let the KCC manage connections; manual connection objects are not maintained automatically and become stale when DCs change. KCC errors appear as event 1311/1865 in the Directory Service log.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Commands

repadmin /kcc *
repadmin /showrepl
repadmin /bridgeheads
Get-ADReplicationConnection -Filter *

KCC runs every 15 minutes on each DC. Manually created connections are not removed by KCC; delete them when no longer needed.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows Server Active Directory and identity current

Authoritative/upstream documentation reviewed for bounded claims in Active Directory Replication → KCC. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/ · confidence 94%
Confirmation

Confirm action

Continue?