📖 ~1 min read
Table of contents
Symptom & Impact
Domain controllers on Windows Server 2022 show replication failures with RPC errors. Authentication delays, stale directory objects, and policy drift can impact production services.
Environment & Reproduction
Observed on Windows Server 2022 (build 20348 family) domain controllers after DNS, firewall, or network path changes.
Get-ADDomainController -Filter * | Select HostName,Site,IPv4Address
repadmin /replsummary
repadmin /showrepl * /csv | ConvertFrom-Csv | Select DestinationDsa,SourceDsa,LastFailureStatus
Root Cause Analysis
Typical causes are RPC endpoint filtering, broken DNS registration, or time skew between DCs. In build 20348 environments, hardened baseline policies can expose latent replication path issues.
Quick Triage
Validate name resolution, time sync, and key AD services before deep remediation.
Resolve-DnsName dc01.contoso.local
w32tm /query /status
Get-Service NTDS,Netlogon,KDC,DNS | Select Name,Status,StartType
Step-by-Step Diagnosis
Collect replication metadata and confirm failing naming contexts.
repadmin /showrepl
dcdiag /test:replications /test:dns /v
Get-WinEvent -LogName 'Directory Service' -MaxEvents 80 | Select TimeCreated,Id,LevelDisplayName,Message

Solution — Primary Fix
Restore DNS and RPC connectivity first, then force replication.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
ipconfig /registerdns
Restart-Service Netlogon
netsh advfirewall firewall set rule group='Remote Event Log Management' new enable=Yes
repadmin /syncall /AdeP

Solution — Alternative Approaches
If failures persist, rebuild secure channels and verify DC locator records.
nltest /sc_query:contoso.local
nltest /dsregdns
setspn -X
repadmin /kcc
Verification & Acceptance Criteria
Replication should complete with zero recent failures.
repadmin /replsummary
repadmin /queue
Get-ADReplicationPartnerMetadata -Target * -Scope Forest | Select Server,Partner,LastReplicationSuccess
Rollback Plan
Revert firewall or DNS changes if they caused broader outages.
netsh advfirewall export C:Tempfw-postfix.wfw
netsh advfirewall import C:Tempfw-prechange.wfw
Restore-DnsServerPrimaryZone -Name 'contoso.local' -FileName 'contoso.local.dns'
Prevention & Hardening
Use continuous AD health checks and strict change windows.
dcdiag /q
repadmin /replsummary
Get-ScheduledTask -TaskName 'AD-Health-*' | Enable-ScheduledTask
Related Errors & Cross-Refs
Often coexists with Kerberos clock skew, SYSVOL DFSR backlog, and broken DC DNS SRV records.
Related tutorial: View the step-by-step tutorial for Windows Server 2022.
View all Windows Server 2022 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Microsoft Learn: Active Directory replication troubleshooting, RPC error 1722 guidance, and AD DS operations on Windows Server 2022.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.