Entra IDDeep dive

Active Directory replication errors: repadmin and dcdiag codes with causes and fixes

The Active Directory replication status codes Microsoft documents, from 1722 and 8524 to 8606 and 8614, with what each means, the usual cause and the first check to run.

When repadmin or dcdiag says a domain controller can't replicate, the status code is the fastest way to the root cause. This quick reference lists the Active Directory replication codes Microsoft documents, grouped by what usually breaks: the network, name resolution, authentication, a quarantined DC or the directory database. For each one you get the meaning, the usual cause and the first check to run.

Codes in this quick reference

  • 1722 The RPC server is unavailable: the destination DC can't reach RPC on the source DCrepadmin /showrepl / dcdiag
  • 1753 There are no more endpoints available from the endpoint mapperrepadmin /showrepl / dcdiag
  • 1256 The remote system is not available: connectivity failure between partnersrepadmin /showrepl / dcdiag
  • 1818 The remote procedure call was cancelled: replication RPC timed outrepadmin /showrepl / dcdiag
  • 8524 The DSA operation is unable to proceed because of a DNS lookup failurerepadmin /showrepl / dcdiag
  • 1908 Could not find the domain controller for this domain: no KDC reachablerepadmin /showrepl / dcdiag
  • 5 Access is denied: secure channel, time skew or security settings between DCsrepadmin /showrepl / dcdiag
  • 8453 Replication access was denied: missing replication permissionsrepadmin /showrepl / dcdiag

+ 17 more codes in the tables below.

How this guide is organized: How to read these codes → Network, RPC and name resolution → Authentication and permissions → Replication disabled or quarantined → Directory consistency and lingering objects → Schema, database, disk and memory → How to verify a fixFlow diagram of the article's sections in reading order: 1. How to read these codes. 2. Network, RPC and name resolution. 3. Authentication and permissions. 4. Replication disabled or quarantined. 5. Directory consistency and lingering objects. 6. Schema, database, disk and memory. 7. How to verify a fix. Toolbox: 0x80090322, Event ID 2042, Event ID 2095, repadmin /showrepl, nltest /dsregdns.1How to read thesecodes2Network, RPC andname resolution3Authentication andpermissions4Replication disabledor quarantined5Directoryconsistency and ling…6Schema, database,disk and memory7How to verify a fixTOOLBOX0x80090322Event ID 2042Event ID 2095repadmin /showreplnltest /dsregdnsHow this guide is organized: How to read these codes → Network, RPC and name resolution → Authentication and permissions → Replication disabled or quarantined → Directory consistency and lingering objects → Schema, database, disk and memory → How to verify a fixFlow diagram of the article's sections in reading order: 1. How to read these codes. 2. Network, RPC and name resolution. 3. Authentication and permissions. 4. Replication disabled or quarantined. 5. Directory consistency and lingering objects. 6. Schema, database, disk and memory. 7. How to verify a fix. Toolbox: 0x80090322, Event ID 2042, Event ID 2095, repadmin /showrepl, nltest /dsregdns.1How to read these codes2Network, RPC and name resolution3Authentication and permissions4Replication disabled or quarantined5Directory consistency and lingering objects6Schema, database, disk and memory7How to verify a fixTOOLBOX0x80090322Event ID 2042Event ID 2095repadmin /showreplnltest /dsregdns
At a glance: how this guide is organized · 7 sections · 5 key settings and tools

How to read these codes#

The order to work through a replication failureStep 1: Read the code on the destination DC. The DC requesting changes; repadmin shows the decimal code with the hex value in brackets Step 2: Check network connectivity over AD DS ports. Network and RPC codes such as 1722 and 1753 Step 3: Check DNS resolution of the partner. 8524 is a DNS lookup failure; the partner's name must resolve to its real IP Step 4: Check authentication and the clocks. Clocks within five minutes for Kerberos; codes such as 5 and 8453 Step 5: Check the database. Schema, database, disk and memory codes such as 8451 and 1127 Step 6: Check the topology and replication engine.1Read the code on thedestination DCThe DC requesting changes;repadmin shows the decimal codewith the hex value in brackets2Check network connectivityover AD DS portsNetwork and RPC codes such as1722 and 17533Check DNS resolution of thepartner8524 is a DNS lookup failure; thepartner's name must resolve to itsreal IP4Check authentication andthe clocksClocks within five minutes forKerberos; codes such as 5 and84535Check the databaseSchema, database, disk andmemory codes such as 8451 and11276Check the topology andreplication engineThe order to work through a replication failureStep 1: Read the code on the destination DC. The DC requesting changes; repadmin shows the decimal code with the hex value in brackets Step 2: Check network connectivity over AD DS ports. Network and RPC codes such as 1722 and 1753 Step 3: Check DNS resolution of the partner. 8524 is a DNS lookup failure; the partner's name must resolve to its real IP Step 4: Check authentication and the clocks. Clocks within five minutes for Kerberos; codes such as 5 and 8453 Step 5: Check the database. Schema, database, disk and memory codes such as 8451 and 1127 Step 6: Check the topology and replication engine.1Read the code on the destination DCThe DC requesting changes; repadmin shows thedecimal code with the hex value in brackets2Check network connectivity over AD DS portsNetwork and RPC codes such as 1722 and 17533Check DNS resolution of the partner8524 is a DNS lookup failure; the partner's name mustresolve to its real IP4Check authentication and the clocksClocks within five minutes for Kerberos; codes such as5 and 84535Check the databaseSchema, database, disk and memory codes such as8451 and 11276Check the topology and replication engine
Figure 1 · Process The order to work through a replication failure. Read the code on the destination DC, then rule out causes in this order: one network or DNS fault can surface as several different codes.

Replication status codes are Win32 error numbers. repadmin prints them in decimal with the hex value in brackets, for example Last attempt @ ... failed, result 8524 (0x214c): followed by the message text. dcdiag prints The replication generated an error (8614): and the same text. You also see them in the Replicate Now dialog in Active Directory Sites and Services and inside Directory Service events. Read the code on the destination DC, the one requesting changes; the source is the partner it pulls from.

Command Prompt
repadmin /replsummary
repadmin /showrepl DC02
repadmin /showrepl * /csv > showrepl.csv
dcdiag /test:replications /s:DC02 /v

/replsummary gives the failure count and largest delta per DC, /showrepl the status of every partition and partner, and the CSV export covers all DCs at once. The ActiveDirectory PowerShell module returns the same data as objects:

PowerShell
Get-ADReplicationFailure -Target contoso.com -Scope Domain |
    Select-Object Server, Partner, FailureCount, FirstFailureTime, LastError
Get-ADReplicationPartnerMetadata -Target DC02 |
    Select-Object Partner, Partition, LastReplicationSuccess, LastReplicationResult, ConsecutiveReplicationFailures

Replication depends on network connectivity over the AD DS ports, DNS resolution of the partner, authentication and authorization, clocks within five minutes for Kerberos, a healthy database, a correct topology and the replication engine. Work through failures in that order, because one network or DNS fault can surface as several different codes.

Tip: Open showrepl.csv in Excel, filter out deleted DCs (names containing "del") and rows whose Last Failure Time is 0. What's left, sorted by Last Success Time, is your work list.

Network, RPC and name resolution#

CodeMeaningUsual causeFirst check
1722 (0x6ba)The RPC server is unavailableRPC maps a lower-layer failure: source DC down or unreachable, TCP 135 or the dynamic RPC ports blocked, or the name resolves to the wrong addressTest-NetConnection DC01 -Port 135 from the destination, then confirm the name resolves to the source DC's real IP
1753 (0x6d9)There are no more endpoints available from the endpoint mapperThe endpoint mapper answered, but AD DS isn't registered: the service didn't start or failed, or DNS, WINS or a hosts file sent the destination to a different serverCheck the name-to-IP mapping, then that Active Directory Domain Services (NTDS) is running on the source
1256 (0x4e8)The remote system is not availableConnectivity failure between the partnersSame checks as 1722: reachability, firewalls and name resolution
1818 (0x71a)The remote procedure call was cancelledThe destination didn't receive changes within the RPC replication timeout: slow or lossy links, or an overloaded sourceLatency and packet loss between the two DCs, and the source DC's load
8524 (0x214c)The DSA operation is unable to proceed because of a DNS lookup failureCatch-all for DNS failures: the source DC's GUID-based CNAME under _msdcs of the forest root or its host record doesn't resolve; events 2087 and 2088 accompany itdcdiag /test:dns /v on both DCs; on the source, nltest /dsregdns to re-register its records. Microsoft's 8524 article
1908 (0x774)Could not find the domain controller for this domainThe destination can't contact a KDC, or Kerberos is failing on itnltest /dsgetdc:contoso.com /kdc from the destination; its time, DNS client settings and System log

Authentication and permissions#

CodeMeaningUsual causeFirst check
5 (0x5)Access is deniedMany causes; common ones are a broken secure channel or password mismatch on either DC, time skew beyond the five-minute Kerberos tolerance, a broken trust, or CrashOnAuditFail set to 2 after the Security log filled updcdiag /test:CheckSecurityError on the destination, nltest /sc_query:contoso.com, w32tm /monitor. Microsoft's error 5 article
8453 (0x2105)Replication access was deniedThe destination DC lacks replication rights on the partition (top cause for RODCs: the forest root's Enterprise Read-only Domain Controllers group lacks Replicating Directory Changes on that partition), or the admin who started a manual sync lacks rightsdcdiag /test:NCSecDesc and dcdiag /test:MachineAccount (a DC's userAccountControl is normally 0x82000). Microsoft's 8453 article
-2146893022 (0x80090322)The target principal name is incorrectThe source can't decrypt the service ticket the destination presented; top cause: the KDC that issued it still has an old password for the source DCMicrosoft's top fix: set the KDC service on the destination to Disabled, restart it, replicate from the source, then set KDC back to Automatic and start it. Microsoft's article
1396 (0x574)Logon Failure: The target account name is incorrect.The SPN the KDC looks up is missing from the global catalog, its account isn't on the GC, the destination lacks the LSA secret for the source's domain, or the SPN sits on another computer's accountsetspn -L DC01, setspn -X -F for duplicates, and name resolution to the right DC
8589 (0x218d)The DS cannot derive a service principal name (SPN) ...A partner was forcibly removed and re-promoted before end-to-end replication finished, or a DC was renamed and its serverReference wasn't updatedThe partner's server object under Sites: serverReference must point to its computer account; let replication converge before re-promoting

Replication disabled or quarantined#

CodeMeaningUsual causeFirst check
8456 (0x2108)The source server is currently rejecting replication requestsOutbound replication on the source is disabled, by an admin or automatically by Windows (USN rollback, low disk space, corrupt up-to-dateness vector). Also fails new DC promotionsrepadmin /options DC01 and the Dsa Not Writable value (below). Microsoft's 8456/8457 article
8457 (0x2109)The destination server is currently rejecting replication requestsThe same causes on the destination: inbound replication disabledrepadmin /options DC02; Directory Service events 2095 (USN rollback), 2103 (unsupported restore) or 1393 (disk space)
8614 (0x21a6)Can't replicate with this server because the time since the last replication exceeded the tombstone lifetimeThe destination didn't inbound-replicate a partition from the source for longer than the tombstone lifetime (60 or 180 days by default), or its clock jumped forward that far; NTDS event 2042 goes with itLook for time jumps and lingering objects first. Options: demote and rebuild the stale DC, or remove lingering objects and then lift the quarantine. Microsoft's 8614 article

When 8456 or 8457 appears without an admin having set DISABLE_INBOUND_REPL or DISABLE_OUTBOUND_REPL, read the quarantine flag:

PowerShell
repadmin /options DC02
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Services\NTDS\Parameters' -Name 'Dsa Not Writable' -ErrorAction SilentlyContinue
# 1 = forest version incompatible with the OS   2 = not enough free disk space for the database or logs
# 4 = USN rollback (VM snapshot, bad P2V or unsupported restore)   8 = corrupt up-to-dateness vector
# Values can combine: 10 = 2 + 8

Watch out: Don't just remove the options or the quarantine on a DC whose USNs rolled back (value 4) or whose up-to-dateness vector is corrupt (value 8): it spreads bad data. Follow Microsoft's USN rollback recovery for event 2095, and demote and re-promote a DC with value 8. Value 2 is fixed by freeing disk space.

Directory consistency and lingering objects#

CodeMeaningUsual causeFirst check
8606 (0x219e)Insufficient attributes were given to create an objectThe source sent an update for an object the destination had already deleted and garbage-collected (a lingering object on the source), and the destination runs strict replication consistencyEvent 1988 on the destination names the object and source; remove lingering objects (below)
8240 (0x2030)There is no such object on the serverThe object being processed isn't in the directory; also reported inside NTDS event 1126Identify the object or partition from the full message, then compare it on both DCs with repadmin /showobjmeta
8333 (0x208d)Directory object not foundDatabase corruption (with related errors on the source), lingering objects, conflict objects or a third-party processDirectory Service log on the source for database errors; an advisory-mode lingering object check
8545 (0x2161)Replication update could not be applied ...The source sent changes for a recently moved object while the destination still holds it in another partition (cross-domain move)Let the partitions involved replicate end to end; it normally clears once both DCs know about the move
8452 (0x2104)The naming context is in the process of being removed or is not replicated from the specified serverThe topology on the DC starting replication differs from the destination's copy, typically after DCs or partitions were added or removedLet the Configuration partition converge, then run repadmin /kcc on the destination

Removing lingering objects#

Compare the DC that holds lingering objects with a healthy reference DC (use the reference DC's DSA object GUID from repadmin /showrepl). Run in advisory mode first, which only reports, and check the Directory Service log for the results.

Command Prompt
repadmin /removelingeringobjects DC02.contoso.com <DC01-DSA-object-GUID> DC=contoso,DC=com /advisory_mode
:: Review the results, then run the same command without /advisory_mode

Schema, database, disk and memory#

CodeMeaningUsual causeFirst check
8418 (0x20e2)The replication operation failed because of a schema mismatch between the servers involvedSchema information differs between the partners, often right after a schema updateLet the schema partition replicate from the schema master first, then retry
8464 (0x2110)Synchronization attempt failedAn attribute was added to the partial attribute set, which triggers a PAS synchronization on global catalogsExpected after such a schema change; give the global catalogs time to finish
8451 (0x2103)The replication operation encountered a database errorSeveral causes, mostly in the NTDS database or the storage under itDirectory Service log for database errors and disk health; follow Microsoft's 8451 guidance before any repair
8446 (0x20fe)The replication operation failed to allocate memoryThe replication engine can't allocate memoryAvailable memory on the DC and the processes using it
1127 (0x467)While accessing the hard disk, a disk operation failed even after retriesStorage failing under the AD database or logsSystem log for disk and controller errors on the volume that holds NTDS
8477 (0x211d)The replication request has been posted; waiting for replyInformational: replication from the source is in progress and not yet appliedNothing to fix; check again later

How to verify a fix#

  1. On the destination DC, trigger replication of all partitions from all partners and read the result:
Command Prompt
repadmin /syncall /Ade
repadmin /showrepl DC02
dcdiag /test:replications /s:DC02
repadmin /replsummary
  1. repadmin /showrepl shows Last attempt @ ... was successful. for every partition and partner.
  2. dcdiag ends with DC02 passed test Replications.
  3. In repadmin /replsummary the fails/total column is 0 for every DC and the largest delta is within your replication schedule.
  4. Get-ADReplicationPartnerMetadata shows LastReplicationResult 0 and a fresh LastReplicationSuccess.
  5. No new replication errors in the Directory Service log. The events that go with these codes (1311, 1925, 1988, 2042, 2087, 2088 and others) are covered in Active Directory event IDs: Directory Service, Netlogon and DNS.

SYSVOL is replicated separately (by DFSR, or FRS in domains that never migrated), so a clean repadmin doesn't prove Group Policy files are in sync; see SYSVOL replication events. Kerberos result codes behind errors 5, 1396 and -2146893022 are decoded in Kerberos error codes in events 4768, 4769 and 4771.

References#

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

Intune Subject Matter Expert in Cairo, Egypt, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)