Add-ADDSReadOnlyDomainControllerAccount

Add-ADDSReadOnlyDomainControllerAccount is accessible with the help of addsdeployment module. To install addsdeployment on your system please refer to this link.

Synopsis

Creates a read-only domain controller (RODC) account that can be used to install an RODC in Active Directory.

Description

The Add-ADDSReadOnlyDomainControllerAccount cmdlet creates a read-only domain controller (RODC) account that can be used to install an RODC in Active Directory.

Parameters

-AllowPasswordReplicationAccountName 
         Specifies the names of user accounts, group accounts, and computer accounts whose passwords can be replicated to this RODC. Use "None" if you want to keep the value empty. By default, only the Allowed RODC Password Replication Group is allowed, and it is originally created empty.

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

-Credential <PSCredential>
    Specifies the user name and password that corresponds to the account used to install the domain controller. Specify "(get-credential)" when using this parameter to prompt the user to supply a password.

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

-DelegatedAdministratorAccountName <String>
    Specifies the name of the user or group that will install and administer the RODC.

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

-DenyPasswordReplicationAccountName <String[]>
    Specifies the names of user accounts, group accounts, and computer accounts whose passwords are not to be replicated to this RODC. Use "None" if you do not want to deny the replication of credentials of any users or computers. By default, Administrators, Server Operators, Backup Operators, Account Operators, and the Denied RODC Password Replication Group are denied. By default, the Denied RODC Password Replication Group includes Cert Publishers, Domain Admins, Enterprise Admins, Enterprise Domain Controllers, Enterprise Read-Only Domain Controllers, Group Policy Creator Owners, the krbtgt account, and Schema Admins.

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

-DomainControllerAccountName <String>
    Specifies the name of the RODC account that you are creating.

    Required?                    true
    Position?                    named
    Default value                <mandatory>
    Accept pipeline input?       false
    Accept wildcard characters?  false

-DomainName <String>
    Specifies the domain name for the user name (account credentials) for the operation. This parameter is required. It also helps to specify the forest where you plan to install the domain controller or create an RODC account.

    Required?                    true
    Position?                    named
    Default value                <mandatory>
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Force <SwitchParameter>
    Forces completion of the cmdlet even if issues are found in the process of creating the RODC account.

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

-InstallDns <SwitchParameter>
    Specifies whether the DNS Server service should be installed. If no value is provided, the default behavior is to automatically compute DNS configuration behavior based upon the existing environment.

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

-NoGlobalCatalog <SwitchParameter>
    Specifies that the read-only domain controller (RODC) will not be a global catalog server.

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

-ReplicationSourceDC <String>
    Specifies the name of the domain controller to be used as the source for replicating to this RODC.

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

-SiteName <String>
    Specifies the name of an existing site where you can place the new domain controller.

    Required?                    true
    Position?                    named
    Default value                <mandatory>
    Accept pipeline input?       false
    Accept wildcard characters?  false

-SkipPreChecks <SwitchParameter>
    Specifies that only a base set of validations will be performed when this cmdlet is executed. This behavior is equivalent to the validations that were performed when using Dcpromo.exe in earlier versions of Windows Server to add a domain controller. When this switch parameter is set, it specifies that additional preliminary checks should be bypassed. For more information on the scope of these additional preliminary checks that the ADDSDeployment module performs by default when using Windows Server 2012, refer to the table in the section "Prerequisite Checking" in the Understand and Troubleshoot AD DS Simplified Administration in Windows Server 2012 guide located at http://go.microsoft.com/fwlink/?LinkID=237244.

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

-Confirm <SwitchParameter>
    Prompts you for confirmation before running the cmdlet.

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

-WhatIf <SwitchParameter>
    Shows what would happen if the cmdlet runs. The cmdlet is not run.

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

Syntax

Add-ADDSReadOnlyDomainControllerAccount [-SkipPreChecks] -DomainControllerAccountName <String> -DomainName <String> -SiteName <String> [-AllowPasswordReplicationAccountName <String[]>] [-Credential <PSCredential>] [-DelegatedAdministratorAccountName <String>] [-DenyPasswordReplicationAccountName <String[]>] [-NoGlobalCatalog] [-InstallDns] [-ReplicationSourceDC <String>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Notes
Once you have added the RODC account, you can add an RODC to a server computer by using the Install-ADDSDomainController cmdlet with the -ReadOnlyReplica switch parameter.

————————– EXAMPLE 1 ————————–
C:\PS>Add-ADDSReadOnlyDomainControllerAccount -DomainControllerAccountName RODC1 -DomainName NA.TOSSolution.com -SiteName NA
Adds a new read-only domain controller (RODC) account to the NA.TOSSolution.com domain using the NA site as the source site for the replication source domain controller.

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

Get-Command Add-ADDSReadOnlyDomainControllerAccount

Get-Command Add-ADDSReadOnlyDomainControllerAccount powershell script command cmdlet

You can also read about
. Install-ADDSDomainController

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

Leave a Reply

Your email address will not be published. Required fields are marked *