PowerShell Genie

Get-ADReplicationPartnerMetadata

Use Get-ADReplicationPartnerMetadata to show when each replication partner last succeeded — the complement to Get-ADReplicationFailure.

Command 2 min read Windows PowerShell 5.1 and PowerShell 7

Documentation: Microsoft Learn — Get-ADReplicationPartnerMetadata

Syntax

1PS> Get-ADReplicationPartnerMetadata [-Target] <String[]> [-Scope <ADScopeType>] [-PartnerType <ADPartnerType>] [-Partition <String[]>] [-Server <String>] [<CommonParameters>]
See the command anatomy

Read the command and its supplied arguments. This example requires real PowerShell or its module; this diagram does not execute it.

Get-ADReplicationPartnerMetadata [-Target] <String[]> [-Scope <ADScopeType>] [-PartnerType <ADPartnerType>] [-Partition <String[]>] [-Server <String>] [<CommonParameters>]
  1. Stage 1Get-ADReplicationPartnerMetadata-Target -Scope -PartnerType -Partition -Server

    Try it

    Windows PowerShell

    PowerShell example · browser support is limited.

    Execution scope: The full example below requires PowerShell outside this browser. You can edit this runner to use the supported practice commands; unsupported syntax returns an explanation.

    Interactive simulation · fictional data

    Examples

    Get-ADReplicationPartnerMetadata -Target corp.local

    1PS> Get-ADReplicationPartnerMetadata -Target corp.local -Scope Domain | Select-Object Server, Partner, LastReplicationSuccess
    Show reference output

    Sample output · fictional data, shaped like the real thing

    Server  Partner           LastReplicationSuccess  LastReplicationResult
    ------  -------           ----------------------  ---------------------
    DC01    DC02.corp.local   9/10/2026 11:38:22 PM  0

    Get-ADReplicationPartnerMetadata -Target DC01

    1PS> Get-ADReplicationPartnerMetadata -Target DC01 | Select-Object Partner, LastReplicationResult
    Show reference output

    Sample output · fictional data, shaped like the real thing

    Server  Partner           LastReplicationSuccess  LastReplicationResult
    ------  -------           ----------------------  ---------------------
    DC01    DC02.corp.local   9/10/2026 11:38:22 PM  0

    Get-ADReplicationFailure -Target corp.local

    1PS> Get-ADReplicationFailure -Target corp.local -Scope Domain # run both
    Show reference output

    Sample output · fictional data, shaped like the real thing

    Server  FailureCount  FirstFailureTime       Partner
    ------  ------------  ----------------       -------
    DC01    0                                    DC02.corp.local

    Parameters

    Parameter definitions:

    • -Target
    • -Scope
    • -PartnerType
    • -Partition
    • -Server

    Get-ADReplicationPartnerMetadata on Microsoft Learn

    Practical use and troubleshooting

    Practical scenario: Use Get-ADReplicationPartnerMetadata when you need to show when each replication partner last succeeded — the complement to Get-ADReplicationFailure. Start with one identified target and inspect the returned values before extending the operation to a list. Keep the identity in your report so you can trace each result back to the object or path that produced it.

    Common error and fix: Old success timestamps require checking topology and connectivity. Compare the intended partner and naming context with the expected replication schedule before making changes to the directory. In an unattended script, capture this failure with its original error record and record which target failed. An empty result and an unsuccessful query must remain distinguishable in the final report.

    See also: Get-ADReplicationFailure. Get-ADReplicationFailure reports recorded replication failures; Get-ADReplicationPartnerMetadata shows partner details and success/failure metadata. A clean failure list alone is not proof that every expected partner replicated recently. Read the linked command before substituting it; similar names do not imply identical inputs or output.

    Get-ADReplicationPartnerMetadata reference on Microsoft Learn

    Recap

    Get-ADReplicationPartnerMetadata Use Get-ADReplicationPartnerMetadata to show when each replication partner last succeeded — the complement to Get-ADReplicationFailure.

    Next: Get-ADReplicationFailure
    Genie guideGet-ADReplicationPartnerMetadata

    Use Get-ADReplicationPartnerMetadata to show when each replication partner last succeeded — the complement to Get-ADReplicationFailure. The console below is pre-loaded — run it, then change a value and run it again.