Get-ADDomainControllerPasswordReplicationPolicy

Gets the members of the allowed list or denied list of a read-only domain controller's password replication policy.

Syntax

Get-ADDomainControllerPasswordReplicationPolicy
   [-Allowed]
   [-AuthType <ADAuthType>]
   [-Credential <PSCredential>]
   [-Identity] <ADDomainController>
   [-Server <String>]
   [<CommonParameters>]
Get-ADDomainControllerPasswordReplicationPolicy
   [-AuthType <ADAuthType>]
   [-Credential <PSCredential>]
   [-Denied]
   [-Identity] <ADDomainController>
   [-Server <String>]
   [<CommonParameters>]

Description

The Get-ADDomainControllerPasswordReplicationPolicy gets the users, computers, service accounts and groups that are members of the applied list or denied list for a read-only domain controller's (RODC) password replication policy. To get the members of the applied list, specify the AppliedList parameter. To get the members of the denied list, specify the DeniedList parameter.

The Identity parameter specifies the RODC that uses the allowed and denied lists to apply the password replication policy. You can identify a domain controller by its GUID, IPV4Address, IPV6Address, or DNS host name. You can also identify a domain controller by the name of the server object that represents the domain controller, the Distinguished Name (DN) of the NTDS settings object or the server object, the GUID of the NTDS settings object or the server object under the configuration partition, or the DN of the computer object that represents the domain controller.

You can also set the Identity parameter to a domain controller object variable, such as $<localDomainControllerobject>, or pass a domain controller object through the pipeline to the Identity parameter. For example, you can use the Get-ADDomainController cmdlet to retrieve a domain controller object and then pass the object through the pipeline to the Get-ADDomainControllerPasswordReplicationPolicy cmdlet.

If you specify a writeable domain controller for this cmdlet, the cmdlet returns a non-terminating error.

Examples

-------------------------- EXAMPLE 1 --------------------------

C:\PS>Get-ADDomainControllerPasswordReplicationPolicy -Identity "FABRIKAM-RODC1" -Allowed | ft Name,ObjectClass

Description


Get from an RODC domain controller password replication policy the allowed accounts showing the name and object class of each

-------------------------- EXAMPLE 2 --------------------------

C:\PS>Get-ADDomainController -Filter {IsReadOnly -eq $true} | Get-ADDomainControllerPasswordReplicationPolicy -Allowed

DistinguishedName : CN=Allowed RODC Password Replication Group,CN=Users,DC=Fabrikam,DC=com
Name              : Allowed RODC Password Replication Group
ObjectClass       : group
ObjectGUID        : 239b0470-7f49-472d-8fcb-4911e90b2c5e
SamAccountName    : Allowed RODC Password Replication Group
SID               : S-1-5-21-41432690-3719764436-1984117282-571

Description


Get the password replcation policy allowed lists from all RODCs in the domain.

Required Parameters

-Denied

{{Fill Denied Description}}

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Identity

{{Fill Identity Description}}

Type:ADDomainController
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Allowed

{{Fill Allowed Description}}

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AuthType

{{Fill AuthType Description}}

Type:ADAuthType
Parameter Sets:Negotiate, Basic
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Credential

{{Fill Credential Description}}

Type:PSCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Server

{{Fill Server Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.ActiveDirectory.Management.ADDomainController

A domain controller object is received by the Identity parameter.

Outputs

Microsoft.ActiveDirectory.Management.ADPrincipal

Returns one or more objects that represent the users, computers, service accounts and groups that are members of the applied list or denied list of the domain controller password replication policy. The list returned depends on the parameters specified.

Notes

  • This cmdlet does not work with AD LDS.

    This cmdlet does not work when targeting a snapshot using the Server parameter.