Error 1722 — the RPC server is unavailable
The client resolved the target and tried to talk to it over RPC, and either could not connect at all or could not reach the dynamic port the endpoint mapper handed back.
What you see
Replication, Group Policy management, remote MMC consoles or dcpromo fail with 1722. Frequently intermittent, and frequently blamed on Active Directory when it is a firewall.
What is actually wrong
TCP 135 blocked, or — far more often — the ephemeral RPC range (49152–65535) blocked. A firewall that permits only 135 lets the endpoint mapper answer and then blocks the actual call.
Codes and articles
Fixes (2)
Open the endpoint mapper and the dynamic range
A firewall sits between the two machines.
Confirm port 135 is reachable.
Test-NetConnection -ComputerName DC02 -Port 135Ask the endpoint mapper what is registered — this proves RPC itself is answering.
portqry -n DC02 -e 135 -p TCPOpen the dynamic range 49152–65535 TCP between the two hosts, in both directions.
The endpoint mapper answers on 135 with a high port for the actual call. Opening only 135 produces exactly this symptom: the connection appears to start and then fails.
If the firewall cannot take that range, pin AD replication to a single port instead and open just that.
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\NTDS\Parameters' -Name 'TCP/IP Port' -Value 51000 -PropertyType DWord -ForceDo this on every DC and restart each. Pinning on some but not all produces failures that look random.
Restart Active Directory Domain Services on each DC you changed.
Restart-Service NTDS -Force
repadmin /replsummaryTest-NetConnection -ComputerName DC02 -Port 51000
Check the RPC services and name resolution
No firewall in the path.
Confirm the RPC services are running on the target.
Get-Service RpcSs, RpcEptMapper | Format-Table Name, Status, StartType -AutoSizeMake sure the name resolves to the address you expect, and only that address.
Resolve-DnsName DC02 -Type AA stale A record for a decommissioned DC produces 1722 that comes and goes as the client picks different answers.
Check for duplicate or leftover records for that name and remove any that are wrong.
Verify time is in sync — Kerberos fails outside a five minute skew and the resulting errors include 1722.
w32tm /query /statusw32tm /monitor
repadmin /showrepl DC02Related faults
Where this stops. This write-up was written and checked by hand. It says what each step changes, how to confirm it worked and how to reverse it, and anything destructive is flagged before you reach it. If it does not match what your machine is doing, search the Support Centre for the exact code or message — and when something needs a person, get in touch.