Add-ADDomainControllerPasswordReplicationPolicy

Adds users, computers, and groups to the allowed or denied list of a read-only domain controller password replication policy.

Syntax

Add-ADDomainControllerPasswordReplicationPolicy
   [-WhatIf]
   [-Confirm]
   -AllowedList <ADPrincipal[]>
   [-AuthType <ADAuthType>]
   [-Credential <PSCredential>]
   [[-Identity] <ADDomainController>]
   [-Server <String>]
   [<CommonParameters>]
Add-ADDomainControllerPasswordReplicationPolicy
   [-WhatIf]
   [-Confirm]
   [-AuthType <ADAuthType>]
   [-Credential <PSCredential>]
   -DeniedList <ADPrincipal[]>
   [[-Identity] <ADDomainController>]
   [-Server <String>]
   [<CommonParameters>]

Description

The Add-ADDomainControllerPasswordReplicationPolicy cmdlet adds one or more users, computers, and groups to the allowed or denied list of a read-only domain controller (RODC) password replication policy.

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, global 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 of the server object, the GUID of the NTDS settings object of 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 get a domain controller object and then pass the object through the pipeline to the Add-ADDomainControllerPasswordReplicationPolicy cmdlet. You must specify a read-only domain controller. If you specify a writeable domain controller for this parameter, the cmdlet returns a non-terminating error.

The AllowedList parameter specifies the users, computers, and groups to add to the allowed list. Similarly, the DeniedList parameter specifies the users, computers, and groups to add to the denied list. You must specify either one or both of the AllowedList and DeniedList parameters. You can identify a user, computer, or group by distinguished name (DN), GUID, security identifier (SID) or Security Accounts Manager (SAM) account name. You can also specify user, computer, or group variables, such as $<localUserObject>. If you are specifying more than one item, use a comma-separated list. If a specified user, computer, or group is not on the allowed or denied list, the cmdlet does not return an error.

Examples

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

C:\PS>Add-ADDomainControllerPasswordReplicationPolicy -Identity "FABRIKAM-RODC1" -AllowedList "JesperAaberg", "AdrianaAdams"

Description


Adds user accounts to the Allowed list on a given RODC with the specified SamAccountNames.

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

C:\PS>Add-ADDomainControllerPasswordReplicationPolicy -Identity "FABRIKAM-RODC1" -DeniedList "MichaelAllen", "ElizabethAndersen"

Description


Adds user accounts to the Allowed list on a given RODC with the specified SamAccountNames.

Required Parameters

-AllowedList

{{Fill AllowedList Description}}

Type:ADPrincipal[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeniedList

{{Fill DeniedList Description}}

Type:ADPrincipal[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AuthType

{{Fill AuthType Description}}

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

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
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
-Identity

{{Fill Identity Description}}

Type:ADDomainController
Position:0
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
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.ActiveDirectory.Management.ADDomainController

A read-only domain controller (RODC) object is received by the Identity parameter.

Outputs

None.

Notes

  • This cmdlet does not work with AD LDS.

    This cmdlet does not work with a read-only domain controller.

    This cmdlet does not work with an Active Directory Snapshot.