Network Admin

  • Home
  • Active Directory
  • Group Policy
  • PowerShell
  • PS Cmdlet Library
  • Jump Starts
  • Community
  • About Me

Get-ADReplicationPartnerMetadata - Cmdlet Syntax and Real World Examples

March 05, 2018 0 Comments PowerShell, Active-Directory, Get-ADReplicationPartnerMetadata

SYNOPSIS

Returns the replication metadata for a set of one or more replication partners

DESCRIPTION

The Get-ADReplicationPartnerMetadata cmdlet returns information related to an Active Directory replication partner and its replication partners. This includes attributes such as LastReplicationSuccess or LastReplicationAttempt and other data specific to each pairing of replication partners.

If the results are too verbose for your needs, you can use the Partition parameter to specify a partition to narrow down the results. Optionally, you can use the Filter parameter to narrow down results as well. If no partition or filter are specified for the results, the default naming context is used and metadata for all replication partners is returned.

SYNTAX

 Get-ADReplicationPartnerMetadata [-Target] <Object[]> [[-Partition] <String[]>] [[-PartnerType] {Both | Inbound | Outbound}] [-AuthType {Negotiate | Basic}] [-Credential
 <PSCredential>] [-EnumerationServer <String>] [-Filter <String>] [<CommonParameters>]

 Get-ADReplicationPartnerMetadata [[-Target] <Object[]>] [-Scope] {Domain | Forest | Server | Site} [[-Partition] <String[]>] [[-PartnerType] {Both | Inbound | Outbound}]
 [-AuthType {Negotiate | Basic}] [-Credential <PSCredential>] [-EnumerationServer <String>] [-Filter <String>] [<CommonParameters>]

REAL WORLD EXAMPLES

Get-ADReplicationPartnerMetadata -Target dc01 | select-object Server, LastReplicationAttempt, LastReplicationSuccess, partner | out-gridview
  • displays the replication info for a target server and the partners replicating with it.
  • sends output to a gridview window

Get-ADReplicationPartnerMetadata -Target dc01,dc02 | select-object Server, LastReplicationAttempt, LastReplicationSuccess, partner | out-gridview
  • displays the replication info for two target servers and the partners replicating with it.
  • sends output to a gridview window

Get-ADReplicationPartnerMetadata -Target NorthAmerica -Scope Site -Partition *
  • Displays replication partner metadata for all domain controllers in a site
Previous

Create a Password Expiration Warning Script

a "how to" guide that walks you through building a script that warns users of expiring passwords

Next

Remove-GPO - Overview and Examples

SYNOPSIS Deletes a GPO. DESCRIPTION The Remove-GPO cmdlet deletes GPO's from Active Directory. SYNTAX Remove-GPO

WANT TO BECOME A POWERSHELL PRO?

Sign up for my weekly newsletter and receive tips on how to improve your PowerShell code and get ideas that can help you be a become a better sysadmin. You can easily unsubscribe and I will never share your email address.

Recent Posts

How to customize your PowerShell command prompt

January 20, 2021

Getting familiar with Invoke-Item in PowerShell

October 12, 2020

Join Me at MS Ignite 2020

September 13, 2020

Learning PowerShell: Weaning yourself away from the GUI for Active Directory

July 21, 2020

Tag cloud

AboutMeActive-DirectoryArraysAzureCalculated-PropertiesCareerCIMCommunityConvertTo-HTMLCPU UsageEnter-PSSessionError-HandlingEvent LogsExport-CSVExpressionsGet-ADComputerGet-ADGroupGet-ADOrganizationalUnitGet-ADPrinicpalGroupMembershipGet-ADReplicationPartnerMetadataGet-ADUserGet-CommandGet-DateGet-ErrorGet-EventLogGet-ExecutionPolicyGet-HelpGet-HistoryGet-MemberGet-PageFileInfoGet-PCUpTimeGet-PhysicalDiskGet-ProcessGet-PSProviderGet-ServiceGet-WinEventGitGroup-PolicyHashtablesInvoke-CommandInvoke-ItemInvoke-WebRequestJumpStartsPasswordsPesterPKI-CertificatesPowerShellPowerShell-SummitPowerShell7PrintersPS-RemotingPS-SaturdayPSADHealthPSConfBookPSGraphRemove-GPORTPSUGScheduled-JobsScriptsSelect-ObjectSelect-StringSet-ExecutionPolicySet-PSWebProxySplit-PathStop-ProcessTest-ConnectionUpdate-HelpVSCodeWinRMWMIWrite-HostWrite-Output

Follow Us

Tweets by MikeKanakos
© 2021 Network Admin. All right Reserved - Powered by Ghost

