Site icon TOSS

Get-ADReplicationAttributeMetadata

powershell

Get-ADReplicationAttributeMetadata is accessible with the help of addsadministration module. To install addsadministration on your system please refer to this link.

Synopsis

Returns the replication metadata for one or more Active Directory replication partners.

Description

The Get-ADReplicationAttributeMetadata cmdlet returns the replication metadata for one or more attributes on a given object. The metadata is contained in the following two directory objects:
single-value attribute: msDS-ReplAttributeMetaData
multi-value attribute: msDS-ReplValueMetaData

The cmdlet parses the byte array(s) and returns the data in a readable format.

Parameters

-AuthType 
         Specifies the authentication method to use. Possible values for this parameter include:

    Required?                    false
    Position?                    named
    Default value                Microsoft.ActiveDirectory.Management.AuthType.Negotiate
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Credential <PSCredential>
    Specifies a user account that has permission to perform this action. The default is the current user.

    Required?                    false
    Position?                    named
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Filter <String>
    Specifies a filter in the provider's format or language. The value of this parameter qualifies the Path parameter. The syntax of the filter, including the use of wildcards, depends on the provider. Filters are more efficient than other parameters, because the provider applies them when retrieving the objects, rather than having Windows PowerShell filter the objects after they are retrieved.

    Required?                    false
    Position?                    named
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-IncludeDeletedObjects <SwitchParameter>
    Specifies to retrieve deleted objects and the deactivated forward and backward links. When this parameter is specified, the cmdlet uses the following LDAP controls:

    Required?                    false
    Position?                    named
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Object <ADObject>
    Specifies an Active Directory object by providing one of the following property values. The identifier in parentheses is the LDAP display name for the attribute.

    Required?                    true
    Position?                    1
    Default value                None
    Accept pipeline input?       True (ByValue)
    Accept wildcard characters?  false

-Properties <String[]>
    Specifies a list of one or more attribute names as a comma separated list to return the metadata for replication partners. This parameter also accepts * to indicate that all attributes set on the object should be returned.

    Required?                    false
    Position?                    3
    Default value                * (all properties)
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Server <String>
    Specifies the Active Directory Domain Services instance to connect to, by providing one of the following values for a corresponding domain name or directory server. The service may be any of the following:  Active Directory Lightweight Domain Services, Active Directory Domain Services or Active Directory Snapshot instance.

    Required?                    true
    Position?                    2
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-ShowAllLinkedValues <SwitchParameter>
    Specifying this switch returns all linked values if the attribute returned is multi-valued.

    Required?                    false
    Position?                    named
    Default value                False; by default, only the linked value with the highest USN is returned
    Accept pipeline input?       false
    Accept wildcard characters?  false

Syntax

Get-ADReplicationAttributeMetadata [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-Filter <String>] [-IncludeDeletedObjects] [-Object] <ADObject> [[-Properties] <String[]>] [-Server] <String> [-ShowAllLinkedValues] [<CommonParameters>]

Notes
The default behavior for this cmdlet is to prompt for object identity. Other tools that have been provided to manage this feature in previous releases of Windows Server include the Repadmin.exe command-line tool.

————————– EXAMPLE 1 ————————–
C:\PS>Get-ADReplicationAttributeMetadata “CN=Domain Admins,CN=Users,DC=Delhi,DC=TOSSolution,DC=com” Delhi-DC01 -ShowAllLinkedValues
Get the replication metadata for the attributes of a group with Distinguished Name “CN=Domain Admins,CN=Users,DC=Delhi,DC=TOSSolution,DC=com” from the Delhi-DC01 domain controller. By including the -ShowAllLinkedValues switch parameter if a multi-valued attribute is present, all its linked values are also retrieved.

————————– EXAMPLE 2 ————————–
C:\PS>Get-ADReplicationAttributeMetadata “8H7KJHD9-C92C-4804-94B0-D407E51F1B64” Delhi-DC01 -IncludeDeletedObjects
Get the replication metadata for the attributes of an object with GUID “8H7KJHD9-C92C-4804-94B0-D407E51F1B64”, including the deleted objects and the deactivated forward and backward links.

————————– EXAMPLE 3 ————————–
C:\PS>Get-ADObject -Filter ‘objectclass -eq “group”‘ | Get-ADReplicationAttributeMetadata -Server corp-DC01 | Where-Object {$_.lastoriginatingchangetime -like “11/10/2019“} | Format-Table object
Get all groups that have any of their attributes modified on 11/10/2019.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Get-ADReplicationAttributeMetadata

To know more PowerShell cmdlets(Commands) on addsadministration (Active Directory) click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Exit mobile version