Administrator (elevated prompt)
Get-ADReplicationPartnerMetadata -Target <dc>
Get-ADReplicationPartnerMetadata -Target <dc>
Returns replication partner data for a domain controller, including last success, last attempt and last result.
You want replication status as objects for a report or a script.
Look at the failing link with repadmin /showrepl <dc>.
Privilege Administrator (elevated prompt)State impact Read-onlyProduction Unknown
Field glossary
Important fields projected from persisted Command guidance.
Server, Partner, Partition, LastReplicationAttempt, LastReplicationSuccess, LastReplicationResultImportant persisted output field; use surrounding guidance for interpretation.
Used in these Topics
Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.
Evidence boundary
What this output can establish — and where you must not over-claim.
Shows the replication state between a DC and each partner.
Does not explain why a failure happened.
Look at the failing link with repadmin /showrepl <dc>.
Command guidance
Execution context
Administrator (elevated prompt)
Use when
You want replication status as objects for a report or a script.
Important fields
Server, Partner, Partition, LastReplicationAttempt, LastReplicationSuccess, LastReplicationResult
Common problems
LastReplicationResult not 0; LastReplicationSuccess far behind LastReplicationAttempt
Operational impact
Read-only.
Technical context
Use -Target * -Scope Server to query all DCs. LastReplicationResult 0 means success.