Multi-master, pull-based, eventually consistent
Every writable DC accepts changes. A DC that changes an object notifies its partners, and the partners pull the change. Replication works at the attribute level, so two admins editing different attributes of one user never conflict.
The directory is split into naming contexts (partitions), each replicated to a different set of DCs:
| Partition | Contains | Replicates to |
|---|---|---|
| Schema | Classes and attributes | Every DC in the forest |
| Configuration | Sites, subnets, services, partitions, trusts | Every DC in the forest |
| Domain | Users, groups, computers, OUs, GPO containers | Every DC of that domain; a partial set to all GCs |
| Application (DomainDnsZones, ForestDnsZones) | AD-integrated DNS zones and app data | DCs that run DNS in the domain or forest |
How DCs track changes
- USN (update sequence number): a per-DC counter that increases with every local write.
- Invocation ID: identifies a DC's database. It changes after a restore, so partners do not ignore new changes (this is why VM snapshot rollback is dangerous: USN rollback).
- High-watermark vector: the highest USN a DC has received from each direct partner.
- Up-to-dateness vector: the highest USN received from every DC, direct or not. Stops the same change from arriving twice (propagation dampening).
- Conflict resolution: highest version number wins, then latest timestamp, then highest originating invocation ID. Name collisions get
CNF:names; orphans go to LostAndFound.
repadmin /showobjmeta DC01 "CN=Alice Smith,OU=Users,DC=corp,DC=contoso,DC=com"
repadmin /showutdvec DC01 DC=corp,DC=contoso,DC=com
KCC, ISTG and bridgeheads
- The Knowledge Consistency Checker runs on every DC every 15 minutes and builds connection objects automatically. Inside a site it creates a bidirectional ring with at most three hops between any two DCs.
- The Inter-Site Topology Generator (one DC per site) builds connections between sites over your site links, using costs.
- Bridgehead servers carry inter-site traffic. The ISTG picks them automatically; preferred bridgeheads are a manual override that can cause outages if they fail.
- Leave the KCC in charge. Manual connection objects are not maintained and break silently when DCs change.
Intra-site vs inter-site
| Inside a site | Between sites | |
|---|---|---|
| Trigger | Change notification: 15 seconds after a change, 3 seconds between partners | Schedule on the site link (default 180 minutes, min 15) |
| Compression | None | Yes (above about 32 KB) |
| Optional | n/a | Enable change notification on the site link for near-real-time replication over fast WANs |
Urgent replication sends some changes immediately even between sites with notification on: account lockouts, RID pool changes and changes to LSA secrets. Password changes go straight to the PDC emulator, and DCs check with it before rejecting a wrong password.
SYSVOL and DFSR
SYSVOL (\\corp.contoso.com\SYSVOL) holds logon scripts and the file part of every GPO. It replicates with DFS Replication, separately from the AD database. FRS is gone since Windows Server 2019; migrate with dfsrmig before adding newer DCs.
dfsrmig /getglobalstate # must say 'Eliminated'
Get-DfsrBacklog -GroupName "Domain System Volume" -FolderName "SYSVOL Share" -SourceComputerName DC01 -DestinationComputerName DC02
dfsrdiag replicationstate
A GPO that works on one DC and not another usually means SYSVOL and AD are out of sync (version mismatch between GPC and GPT).
Deletion, tombstones and lingering objects
- Deleted objects become tombstones (or, with the Recycle Bin, deleted objects then recycled objects) so the deletion can replicate.
- Tombstone lifetime is 180 days for forests created on Windows Server 2003 SP1 or later. A DC that has not replicated for longer is quarantined: Event ID 2042.
- Lingering objects are objects that were deleted everywhere except on a DC that was offline too long. Keep strict replication consistency on and remove them with
repadmin /removelingeringobjectsor the Lingering Object Liquidator. - USN rollback happens when a DC is restored from an unsupported snapshot or image; it gets paused (Event ID 2095). Demote and rebuild it.
Replication commands
repadmin /replsummary # one-screen health of every DC
repadmin /showrepl * /csv > repl.csv # every partner, every partition
repadmin /queue # pending inbound replication
repadmin /syncall /AdeP # push all partitions to all DCs now
repadmin /replicate DC02 DC01 DC=corp,DC=contoso,DC=com
repadmin /kcc * # rebuild topology now
Get-ADReplicationFailure -Target corp.contoso.com -Scope Domain
Get-ADReplicationPartnerMetadata -Target DC01 | Select Partner, LastReplicationSuccess, LastReplicationResult
Windows Server 2025 lets you raise the replication priority of a particular partner and naming context. Troubleshooting steps are on the Troubleshooting page.