Domain controllers with Active Directory replication failures
Which domain controllers in the forest are currently reporting Active Directory replication failures?
Active DirectoryWindows PowerShell 5.1 Read-only
- Cmdlet lint
- Passed
- 2 Dec 2026
- Changes anything
- No
- Read-only
- Pinned versions
- 2
Script
ad-replication-failures.ps1
#Requires -Modules ActiveDirectory
# Current replication failures reported by every domain controller in the forest. Read-only.
$forest = (Get-ADDomain).Forest
Get-ADReplicationFailure -Target $forest -Scope Forest |
Sort-Object Server, Partner |
Select-Object Server, Partner, FailureCount, FailureType, FirstFailureTime, LastError
Checked automatically against Microsoft's published cmdlet reference. KBY hasn't run it in your tenant; run it in a test environment first.
Where to run it
A domain-joined machine with the Active Directory module (RSAT) installed.
Reading the output
- Get-ADReplicationFailure returns the failures currently associated with each domain controller in the scope. The script passes the forest name from Get-ADDomain's Forest property with the Forest scope, as in Microsoft's forest example, so it covers every domain controller in the forest whichever domain you run it from.
- Each failure has Server, Partner, FailureCount, FailureType, FirstFailureTime and LastError. Microsoft lists these as properties of the ADReplicationFailure object but does not describe their values, so read them as Active Directory reports them.
- No rows means no domain controller reported a failure at the time. It does not prove that every domain controller is reachable.
Sources
The Microsoft reference page for every cmdlet the script calls, plus the API and product pages behind each permission and caveat.
Found this useful? Follow KBY for more like it.
Recommended reading
More from KBY that goes with this script.

