IAMinerva
HomeBlogAbout
m3M365 NewscoMicrosoft CopilotteMicrosoft TeamsshSharePoint & OneDriveinIntune & SecurityexExchange & OutlookpoPower PlatformazAzure & Entra IDtuTutorials & GuidesevEvents & ConferencesseSecuritywiWindows
IAMinerva

Professional blog dedicated to the Microsoft 365 ecosystem.

Quick links

HomeBlogAboutNewsletter

Stay informed

Get the latest Microsoft 365 news delivered straight to your inbox.

© 2026 IAMinerva. All rights reserved.

Built withNext.js&Tailwind
Comment resoudre les erreurs de replication Active Directory
BlogEvents & ConferencesHow to Resolve Active Directory Replication Errors
Events & Conferences#Active Directory#replication#AD DS

How to Resolve Active Directory Replication Errors

Resolve Active Directory replication errors efficiently using advanced diagnostics, PowerShell scripts, and tools like repadmin and dcdiag.

Houssem MAKHLOUF
June 2, 2026
4 min read

TL;DR par Minerva

généré par IA

Resolve Active Directory replication errors efficiently using advanced diagnostics, PowerShell scripts, and tools like repadmin and dcdiag.

Introduction

Replication in Active Directory Domain Services (AD DS) is crucial to ensure data consistency across an environment. However, various issues can arise, such as DNS errors, RPC issues, or even topology problems, disrupting normal operations. In this article, we will examine the necessary steps to diagnose and fix Active Directory replication errors using tools such as repadmin, dcdiag, and PowerShell.

AD error triage diagram

Identifying Replication Errors in Active Directory

The first step in resolving a replication error is to collect evidence and identify the scope of the problem. Here are the key steps:

1

Run a Basic Check

Run the following commands to get a summary of replication issues:

⚡PowerShell
1repadmin /replsummary

This command provides an overview of domain controllers experiencing replication issues. Assess whether the problem is isolated to a single server or affects multiple sites.

2

Examine Event Logs

Event logs related to Directory Service can provide additional information on recurring failures. Export these logs for in-depth analysis.

3

Create a CSV Snapshot

Generate a current state of replication errors in a sortable CSV format:

⚡PowerShell
1mkdir C:\Temp\ADReplication
2repadmin /showrepl * /csv > C:\Temp\ADReplication\showrepl.csv
3dcdiag /e /test:replications /v > C:\Temp\ADReplication\dcdiag-replications.txt
i

Good to Know

Errors such as 1722, 2087, and 1311 can originate from different layers, including DNS, RPC, or intersite link configuration.

Decoding Common Error Codes

Error codes in Active Directory provide clues about what needs to be fixed. Here is a table to guide you:

Error CodeMeaningDiagnostic Tools
1722RPC server is unreachableTest-NetConnection, PortQry
2087DNS lookup failuredcdiag, Resolve-DnsName
1311KCC topology not validrepadmin /showism

Resolving Error 1722: RPC Server Unreachable

An error 1722 indicates that the destination domain controller cannot establish an RPC connection with the source. Run the following tests to verify connectivity:

1

Validate Name Resolution and Port 135

Test port connectivity and DNS accessibility:

⚡PowerShell
1Resolve-DnsName DC2.contoso.com
2Test-NetConnection DC2.contoso.com -Port 135
2

Diagnose Dynamic RPC Ports

Use PortQry to test dynamic ports used by replication:

>_Bash
1portqry -n DC2.contoso.com -e 135
2portqry -n DC2.contoso.com -p tcp -r 49152:65535
✦

Tip

If DNS resolution works but ports are blocked, collaborate with the network team to adjust firewall rules.

Overcoming Error 2087: DNS Lookup Failure

Error 2087 typically occurs when the destination domain controller cannot resolve the DNS records necessary for replication. Follow these steps:

Step 1: Resolve GUID CNAME

Use the GUID of the source controller to test DNS records:

⚡PowerShell
1Resolve-DnsName $SourceGuid._msdcs.contoso.com -Type CNAME
2Resolve-DnsName DC2.contoso.com -Type A

Step 2: Re-register Dynamic Records

Restart Netlogon to force re-registration of DNS records:

⚡PowerShell
1Invoke-Command -ComputerName DC2 -ScriptBlock {
2 Restart-Service -Name Netlogon
3 ipconfig /registerdns
4}

Step 3: Eliminate Stale Sources

If the problem persists with an invalid controller, perform metadata cleanup with ntdsutil. Consult Microsoft documentation to perform this step.

Proactive Replication Monitoring

To minimize interruptions, set up a daily task to monitor replication:

⚡PowerShell
1$Path = "C:\Reports\ADReplication"
2New-Item -ItemType Directory -Path $Path -Force | Out-Null
3
4repadmin /showrepl * /csv > "C:\Reports\ADReplication\showrepl-(Get-Date -Format yyyyMMdd).csv"

Set up alerts for any desynchronization or delay detected in CSV snapshots.

Conclusion

Resolving replication issues in Active Directory involves identifying the problem layer, capturing detailed evidence, and following a systematic procedure. Always validate results before applying permanent solutions. Make sure to document your fixes to benefit from past events.

×

Important

Never force replication before resolving the root cause of the problem. This could make the situation worse.

Share:
HM

Houssem MAKHLOUF

Microsoft 365 enthusiast & IT professional.

Previous article

Container label support and Entra ID guest access control

Jun 2, 2026
Next article

Finding Inactive Accounts with PowerShell

Jun 10, 2026

Related articles

Flux lumineux doré sur fond sombre avec des formes géométriques stylisées.events

Selectable PowerShell Engine for PSMA Granfeldt Exports

Optimize Microsoft Entra exports with the selectable PowerShell engine in PSMA. Gain 1.3x to 3.5x performance improvement with version 6.1.0604.2026.

Jun 27, 20266 min
Identifier les utilisateurs inactifs Active Directory avec PowerShellwindows

Identify Inactive Active Directory Users with PowerShell

Detect inactive Active Directory users with PowerShell. Automated script for inactivity audit, OU filtering and CSV report generation.

Jun 25, 20267 min
Microsoft Entra Backup and Recovery : Preview détailléeazure

Microsoft Entra Backup and Recovery: Detailed Preview

Microsoft Entra Backup and Recovery provides a robust solution to secure and restore critical data from your Azure tenant easily.

Mar 23, 20264 min