Use this when intra-site replication topology is wrong or connections are missing.
KCC
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.
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.
KCC → computes topology → connection objects
Context & applicabilityCommon mistakes · platform/version boundaries
- 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 cleanupor removing it in ADUC).
Operational reference
Fast context before you go deeper.
repadmin /showreplVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- 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.
repadmin /replsummary— replication status summaryrepadmin /showrepl <dc>— inbound partners and last resultsrepadmin /queue <dc>— pending inbound replicationGet-ADReplicationFailure -Target <dc>— failuresdcdiag /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.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%