< Back

Get-ADDomainControllerPasswordReplicationPolicy

Tue Jan 29, 2019 9:19 pm

NAME Get-ADDomainControllerPasswordReplicationPolicy



SYNOPSIS

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





SYNTAX

Get-ADDomainControllerPasswordReplicationPolicy [<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.





PARAMETERS

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



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.





-------------------------- 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.



RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=291027

Add-ADDomainControllerPasswordReplicationPolicy

Remove-ADDomainControllerPasswordReplicationPolicy