Active Directory replication is essential for keeping domain controllers synchronized across a Windows Server environment. When replication fails, changes to user accounts, passwords, security groups, computer objects, Group Policy settings, and other directory data might not reach every domain controller.
These failures can cause authentication problems, inconsistent login behavior, Group Policy processing issues, and difficulties managing domain resources.
The good news is that most Active Directory replication problems can be diagnosed systematically. By using tools such as Repadmin, Dcdiag, PowerShell, and Event Viewer, administrators can identify whether the problem is related to DNS, network connectivity, RPC communication, authentication, replication topology, or directory consistency.
This guide explains how to troubleshoot Active Directory replication step by step, interpret common error messages, and restore healthy replication without introducing unnecessary risks.
Important: Run administrative commands from an elevated Command Prompt or PowerShell session. Before making changes to domain controllers, review the environment, confirm that you have appropriate backups, and understand the potential impact of the operation.
Active Directory replication is the process through which domain controllers exchange directory changes.
For example, when an administrator creates a user account on DC01, that change must eventually be replicated to the other domain controllers in the domain. This allows users and applications to access consistent directory information regardless of which domain controller handles their requests.
Active Directory uses a multi-master replication model. This means that changes can generally be made on any writable domain controller and replicated to its replication partners.
Replication occurs in two main environments:
The Knowledge Consistency Checker (KCC) automatically creates and maintains the replication topology based on the Active Directory site configuration.
For replication to work correctly, domain controllers depend on several services and technologies, including:
A failure in any of these areas can interrupt replication.
Replication problems do not always produce an immediate, obvious failure. In some environments, replication can remain broken for hours or days before administrators notice inconsistent directory information.
Common symptoms include:
For example, assume an organization has two domain controllers:
| Domain Controller | IP Address | Site |
|---|---|---|
| DC01 | 192.168.10.10 | Headquarters |
| DC02 | 192.168.20.10 | Branch |
An administrator creates a new user account on DC01. However, the account does not appear when users authenticate against DC02.
This may indicate that inbound replication on DC02 is failing, although the actual cause could be DNS, connectivity, authentication, or replication topology.
The first step is to determine exactly which replication connections are failing.
Repadmin.exe is one of the most important tools for diagnosing Active Directory replication. It allows administrators to inspect replication partners, identify failures, review replication status, and initiate synchronization when appropriate.
It is included with Windows Server and is also available through the appropriate Remote Server Administration Tools (RSAT) components.
Start with:
repadmin /replsummary This command provides a summary of replication activity across domain controllers.
Pay attention to the following information:
A result showing zero failures is a good sign, but it does not replace a detailed examination of individual replication partners.
If the report contains failures, identify the affected domain controllers and continue with the next checks.
Run:
repadmin /showrepl To inspect a specific domain controller:
repadmin /showrepl DC01 For more detailed information:
repadmin /showrepl DC01 /all /verbose This command displays inbound replication information for the selected domain controller.
Look for:
For example, an output containing:
Last attempt @ 2026-11-25 10:15:00 failed, result 1722:
The RPC server is unavailable. indicates that replication failed because the RPC communication path could not be established successfully.
Do not assume that the destination domain controller is necessarily the source of the problem. Check both ends of the connection.
Run:
repadmin /queue DC01 This displays pending replication requests on the selected domain controller.
A persistent queue can indicate that replication operations are not completing as expected. Investigate network availability, RPC communication, partner health, and the reported replication errors before taking further action.
Run:
repadmin /showconn DC01 This displays replication connection objects for the domain controller.
Use it when you suspect that the KCC has not created the expected connections or that the replication topology does not reflect the actual network design.
For additional guidance, see Microsoft’s documentation on Troubleshooting Active Directory Replication Problems.
Repadmin helps inspect replication relationships, while Dcdiag.exe checks several aspects of domain controller health.
It is useful for identifying problems that may affect Active Directory replication indirectly.
Open an elevated Command Prompt and run:
dcdiag /v The verbose output includes diagnostic tests and details about potential failures.
Review the results for warnings or failures involving DNS, advertising, connectivity, services, and directory replication.
To focus on replication:
dcdiag /test:replications /v To test replication across domain controllers in the environment:
dcdiag /test:replications /e /v The /e option expands the test scope to enterprise domain controllers.
DNS is particularly important in Active Directory environments. Run:
dcdiag /test:dns /v To include enterprise-wide DNS testing:
dcdiag /test:dns /e /v Review failures involving DNS registration, name resolution, delegation, and required Active Directory service records.
A domain controller may have working IP connectivity while still being unable to locate its replication partner because DNS records are missing or incorrect.
DNS is one of the most common areas to investigate when replication fails.
Active Directory uses DNS to locate domain controllers and discover services through records such as LDAP and Kerberos SRV records.
If a domain controller cannot resolve its replication partner correctly, replication may fail even when both servers are online.
For a broader explanation of name resolution, see CorgiNetwork’s guides on How DNS Resolution Works and DNS Explained.
On each affected domain controller, run:
ipconfig /all Check the DNS server addresses configured on the network adapter.
Domain controllers that belong to an Active Directory domain should normally use DNS servers that host or can resolve the organization’s Active Directory DNS zones.
Avoid configuring a public DNS resolver directly as the DNS server on a domain controller’s network adapter. External name resolution should be handled through the organization’s internal DNS design, such as DNS forwarders.
Also check that:
Use the following command, replacing contoso.com with your actual domain:
nslookup -type=SRV _ldap._tcp.dc._msdcs.contoso.com You can also check the Kerberos service records:
nslookup -type=SRV _kerberos._tcp.dc._msdcs.contoso.com These records help clients and domain controllers locate the appropriate services.
Check that the returned records identify valid domain controllers and that the corresponding hostnames resolve to the correct IP addresses.
For example:
nslookup DC02.contoso.com If the server name does not resolve correctly, investigate the DNS zone, host records, and registration process.
If DNS records are missing or outdated, first identify and correct the underlying DNS configuration.
You can then request DNS registration using:
ipconfig /registerdns For a domain controller, you can also request registration of its domain controller locator records:
nltest /dsregdns After registration, verify the relevant records again using nslookup and repeat the DNS diagnostic tests.
Do not delete DNS records indiscriminately. Confirm that each record is obsolete before removing it, especially in environments with multiple domain controllers or manually managed DNS records.
Active Directory replication relies on RPC communication between domain controllers.
A firewall that blocks the required RPC traffic can prevent replication even when basic network connectivity works.
Start by checking whether the replication partner resolves correctly:
ping DC02.contoso.com A failed ping does not necessarily prove that replication is unavailable because ICMP traffic may be blocked by the firewall.
Next, test important TCP ports from PowerShell:
Test-NetConnection DC02.contoso.com -Port 135 You can also test LDAP and SMB connectivity:
Test-NetConnection DC02.contoso.com -Port 389
Test-NetConnection DC02.contoso.com -Port 445 A successful TCP 135 test confirms connectivity to the RPC Endpoint Mapper, but it does not prove that the complete RPC replication connection will work.
Active Directory communication can require several ports, depending on the services and configuration involved.
Common ports include:
| Port | Protocol | Purpose |
|---|---|---|
| 53 | TCP/UDP | DNS |
| 88 | TCP/UDP | Kerberos authentication |
| 135 | TCP | RPC Endpoint Mapper |
| 389 | TCP/UDP | LDAP |
| 445 | TCP | SMB |
| 3268 | TCP | Global Catalog |
| 3269 | TCP | Global Catalog over SSL |
| 49152–65535 | TCP | Default dynamic RPC port range on modern Windows versions |
The required ports depend on the specific Active Directory services and network design. Additional services, such as DFS Replication for SYSVOL, may require further connectivity.
For modern Windows Server environments, the default dynamic TCP port range is generally 49152–65535. Older systems or customized configurations may use different ranges.
Do not open every port without understanding the requirement. Configure firewall rules according to Microsoft’s Active Directory domain and trust firewall requirements.
If replication works inside one site but repeatedly fails between sites, pay particular attention to firewall policies, VPN routing, and intersite connectivity.
Replication can fail even when DNS and network connectivity appear healthy.
Authentication and authorization problems may prevent domain controllers from establishing a valid replication session.
A common Repadmin result is:
Last attempt failed, result 5:
Access is denied. Error 5 indicates that the replication operation was denied.
Possible causes include:
Start by checking the Directory Service and System event logs on both domain controllers.
Also verify that the domain controller computer accounts remain valid and that the directory replication permissions have not been modified unexpectedly.
Do not reset a domain controller’s computer account or modify replication permissions as a first response. Such changes require a clear diagnosis and an appropriate recovery procedure.
For more details, see Microsoft’s guide to Troubleshooting Active Directory Replication Error 5.
Kerberos authentication is sensitive to time differences between computers.
Check the time configuration on the affected domain controllers:
w32tm /query /status You can also inspect the time configuration:
w32tm /query /configuration Investigate unusual time sources, large time differences, and unexpected changes to the domain time hierarchy.
In a healthy Active Directory environment, domain members and domain controllers should follow the organization’s configured Windows Time hierarchy.
Avoid setting every domain controller to an unrelated external time source. Correct the domain time design instead.
Another possible replication error is:
The target account name is incorrect. This message can be associated with authentication, DNS, connectivity, or service principal name problems.
Check the following:
Do not assume that this error has a single cause. Correlate the Repadmin output with the event logs before changing account or SPN configuration.
Correctly interpreting a replication error helps narrow the investigation.
The following table summarizes several errors that administrators frequently encounter.
| Error or Message | Possible Cause | Recommended Investigation |
|---|---|---|
| Error 5 – Access is denied | Authentication or authorization failure | Check permissions, computer accounts, Kerberos, and security events |
| Error 1722 – RPC server is unavailable | RPC connectivity problem | Check DNS, routing, firewalls, and dynamic RPC ports |
| Error 8453 – Replication access was denied | Replication permissions or security configuration | Investigate directory partition permissions and the replication security context |
| Error 8614 | Replication exceeded the tombstone lifetime restriction | Investigate stale replication partners and lingering objects |
| Error 8452 | Replication request does not match the current topology or naming context | Review topology changes and replication partner information |
| Target account name is incorrect | Possible DNS, authentication, or SPN problem | Check DNS records, Kerberos, computer accounts, and SPNs |
Do not treat an error code as a complete diagnosis. The same error can have different underlying causes depending on the environment.
Microsoft maintains a detailed reference for Common Active Directory Replication Errors.
Event Viewer provides additional information about replication failures.
Open Event Viewer and navigate to:
Applications and Services Logs
Microsoft
Windows
Directory Service Also inspect the System log for related DNS, Netlogon, RPC, and time-service events.
The following events are particularly useful.
| Event ID | Source | Meaning |
|---|---|---|
| 1311 | NTDS KCC | Replication topology information may not accurately reflect the network |
| 1388 | NTDS Replication | A lingering object may have been replicated |
| 1925 | NTDS KCC | An attempt to establish a replication connection failed |
| 1988 | NTDS Replication | A lingering object was detected |
| 2042 | NTDS Replication | Replication has not occurred with a partner for longer than the tombstone lifetime |
| 2087 | NTDS Replication | DNS lookup failure prevented replication |
| 2088 | NTDS Replication | DNS lookup failed, but replication succeeded through an alternative resolution method |
| 5805 | Netlogon | A machine account authentication problem occurred |
Event 1311 can indicate that the Knowledge Consistency Checker cannot build the expected replication topology.
Investigate:
Confirm that the Active Directory site configuration reflects the actual network topology.
Event 1925 indicates that an attempt to establish a replication link failed.
The event may be associated with DNS, RPC connectivity, authentication, or topology configuration.
Use:
repadmin /showrepl Then investigate the specific failure reported for the affected naming context and partner.
Event 2087 indicates that Active Directory could not resolve the DNS name of a replication partner.
Check:
_msdcs DNS records.Correct DNS before attempting to force replication.
These events indicate that Active Directory has detected a lingering object.
This is a directory consistency problem and requires special care.
Do not attempt to bypass the protection or force replication immediately. Follow the safe procedure in the next section.
Event 2042 indicates that a domain controller has not replicated with a partner for longer than the configured tombstone lifetime.
This can create a risk of lingering objects because deletions may have been processed and garbage-collected on other domain controllers while the outdated server was disconnected.
The correct response is to investigate the stale domain controller and directory consistency before permitting replication to resume.
Lingering objects are directory objects that remain on a domain controller after they have been deleted and subsequently removed from other domain controllers through the normal deletion and garbage-collection process.
They can appear when a domain controller remains disconnected for an extended period and later returns to the replication topology.
The presence of lingering objects can lead to inconsistent directory information and security problems.
Start by checking:
repadmin /showrepl Look for replication errors such as:
The time since last replication with this server
has exceeded the tombstone lifetime. Also review Event IDs 1388, 1988, and 2042.
At this stage:
A domain controller that has been offline beyond the tombstone lifetime must not simply be returned to normal replication without evaluating the risk.
Microsoft provides a Repadmin command that can identify lingering objects without removing them.
The syntax is:
repadmin /removelingeringobjects <DestinationDC> <SourceDC-GUID> "DC=contoso,DC=com" /advisory_mode Replace the placeholders as follows:
<DestinationDC>: The domain controller being checked for lingering objects.<SourceDC-GUID>: The DSA object GUID of a trusted source domain controller with a known-good directory replica.DC=contoso,DC=com: The naming context to examine./advisory_mode: Runs the check without removing the detected objects.You can inspect the source domain controller’s replication information with:
repadmin /showrepl <SourceDC> /all /verbose Use the DSA object GUID shown for the intended source.
For example, in a domain named contoso.com, the naming context might be:
DC=contoso,DC=com A forest can also contain configuration, schema, and application directory partitions. Make sure that you use the correct naming context for the investigation.
If advisory mode reports lingering objects, do not immediately execute a removal command.
First:
Only after those checks should an administrator consider running the corresponding removal operation without /advisory_mode.
For detailed procedures, refer to Microsoft’s documentation on Active Directory Replication Event IDs 1388 and 1988 and Event ID 2042.
Critical warning: Do not disable strict replication consistency or enable divergent replication as a generic fix for Event 2042. Microsoft documents special recovery procedures for this situation. Follow those procedures only after the lingering object condition has been addressed and the source and destination domain controllers have been identified correctly.
If the affected domain controller is substantially outdated or its directory state cannot be trusted, demotion and rebuilding may be safer than attempting to restore normal replication.
After resolving the underlying issue, an administrator may need to initiate replication manually.
For example, DNS records might have been corrected, a firewall rule restored, or a replication topology issue resolved.
Before forcing synchronization, confirm that:
Use:
repadmin /syncall DC01 /AdeP This requests synchronization for naming contexts held by DC01 and expands the operation across enterprise replication partners.
The options mean:
/A: Synchronize all naming contexts held by the home server./d: Display servers by distinguished name./e: Include servers across the enterprise./P: Push changes outward from the home server.This is a broad operation. Use it when you understand the replication topology and have confirmed that the relevant partners are safe to synchronize.
For a more targeted operation:
repadmin /replicate DC01 DC02 "DC=contoso,DC=com" In this syntax:
DC01 is the destination domain controller.DC02 is the source domain controller.DC=contoso,DC=com is the naming context.This requests replication of the specified naming context from DC02 to DC01.
A targeted operation is often easier to control when only one replication relationship requires attention.
If you have corrected the site configuration or network conditions and need the KCC to recalculate the connections, run:
repadmin /kcc DC01 This triggers the Knowledge Consistency Checker on the specified domain controller.
It does not repair DNS, firewall, or authentication failures by itself. Address those problems first.
After making the necessary corrections, confirm that replication is working.
Start with:
repadmin /replsummary Then inspect the affected domain controller:
repadmin /showrepl DC01 Run the replication diagnostic again:
dcdiag /test:replications /v You can also use the Active Directory PowerShell module to review replication failures:
Get-ADReplicationFailure -Target * -Scope Forest To inspect replication partners and their metadata:
Get-ADReplicationPartnerMetadata -Target * -Scope Forest Review the results for:
Do not rely on a single successful manual synchronization as proof that the entire environment is healthy. Monitor the domain controllers again after their normal replication schedules have had time to operate.
Regular monitoring can help identify replication failures before they affect users and business applications.
Use the following practices:
Monitor replication regularly. Run Repadmin health checks and review the Directory Service event log. Persistent replication failures should be investigated promptly.
Maintain accurate DNS records. Ensure that domain controllers register their required records and that internal DNS zones are healthy and available.
Configure Active Directory Sites and Services correctly. Map network subnets to the appropriate sites and configure site links to reflect actual WAN connectivity.
Review firewall and network changes. Changes to routing, VPNs, NAT, and firewall rules can affect RPC communication between domain controllers.
Protect domain controller availability. Avoid leaving domain controllers disconnected for extended periods without a documented recovery plan.
Monitor time synchronization. Maintain the correct Windows Time hierarchy to support Kerberos authentication.
Maintain reliable backups. Use supported Active Directory backup and recovery procedures. Backups are especially important before directory cleanup or recovery operations.
Investigate errors early. Do not allow repeated replication failures to continue until they exceed the tombstone lifetime.
Use this checklist when investigating a replication failure.
Run repadmin /replsummary to identify failing domain controllers.
Run repadmin /showrepl to inspect inbound replication partners.
Review the Directory Service and System event logs.
Run dcdiag /test:replications /v.
Verify DNS client configuration on both domain controllers.
Check LDAP and Kerberos SRV records.
Test RPC Endpoint Mapper connectivity.
Review firewall rules and dynamic RPC port access.
Check Kerberos, time synchronization, and replication permissions.
Review Active Directory Sites and Services.
Investigate lingering objects and tombstone lifetime errors before forcing synchronization.
Verify successful replication after applying the correction.
Following this sequence helps administrators identify the root cause instead of repeatedly running synchronization commands without understanding why replication failed.
Active Directory replication is fundamental to maintaining a consistent and reliable Windows Server domain environment. When replication fails, the problem can affect authentication, password changes, Group Policy, and access to network resources.
A structured troubleshooting process is the most reliable approach.
Start with Repadmin to identify failing replication partners, use Dcdiag to check domain controller health, and investigate DNS, RPC connectivity, authentication, and replication topology. Pay particular attention to Event IDs 1988 and 2042 because lingering objects and tombstone lifetime problems require additional safeguards.
Once the underlying problem has been corrected, use Repadmin to initiate synchronization when necessary and verify that replication continues to work normally.
Regular monitoring, accurate DNS configuration, reliable network connectivity, and proper Active Directory backup procedures help prevent replication failures from becoming serious domain-wide problems.
The following Microsoft resources provide additional technical details and recovery procedures:
Introduction Border Gateway Protocol (BGP) is the routing protocol used to exchange network reachability information…
Introduction A Linux server can experience connection failures even when its network interface is working…
Introduction TCP retransmissions are an important indicator of network reliability and performance. When a Linux…
Open Shortest Path First (OSPF) is a link-state routing protocol widely used in enterprise networks…
Group Policy is one of the most important management features in Windows Server Active Directory…
Windows DNS servers play an essential role in Active Directory environments, allowing computers, servers, applications,…