Creates a RODC account that can be used to install an RODC in Active Directory.
Active Directory · Risk: High · Documentation Verified
Last verified: 2026-10-26
Microsoft ADDSDeployment reference: Creates a RODC account that can be used to install an RODC in Active Directory. The syntax and selected example below are adapted from the pinned Windows Server 2025 reference. Module availability, target configuration and delegated permissions determine whether it can run in your environment. Documentation and parameter text: Microsoft, CC BY 4.0; formatting adapted by Cmdlet World. No execution testing is claimed.
Use an account with the target resource permissions documented for Add-ADDSReadOnlyDomainControllerAccount. Modifying administrative cmdlets may require elevation or delegated administration. This catalog does not assert that ordinary users can execute the command.
Supported environments
Windows / ADDSDeployment · Windows Server 2025 documentation; feature/module prerequisites apply
Parameters
-AllowPasswordReplicationAccountName
Specifies an array 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.
-Confirm
Prompts you for confirmation before running the cmdlet.
-Credential
Specifies the user name and password that corresponds to the account used to install the domain controller. Specify the Get-Credential cmdlet when using this parameter to prompt the user to supply a password.
-DelegatedAdministratorAccountName
Specifies the name of the user or group that installs and administers the RODC.
-DenyPasswordReplicationAccountName
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.
-DomainControllerAccountName (required)
Specifies the name of the RODC account that this cmdlet creates.
-DomainName (required)
Specifies the domain name for the user name 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.
-Force
Forces the command to run without asking for user confirmation.
-InstallDns
Indicates that the cmdlet installs the DNS Server service. If no value is provided, the default behavior is to automatically compute DNS configuration behavior based upon the existing environment.
-NoGlobalCatalog
Indicates that the cmdlet does not set the RODC as a global catalog server.
-ReplicationSourceDC
Specifies the name of the domain controller to be used as the source for replicating to this RODC.
-SiteName (required)
Specifies the name of an existing site where you can place the new domain controller.
-SkipPreChecks
Indicates that the cmdlet executes only a base set of validations. 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 ADPrep and Prerequisite Checking Architecture in AD DS Simplified Administration.
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Prerequisites
Windows with the ADDSDeployment module and the Windows feature or management tools that provide it. Confirm target connectivity and version compatibility using the linked Microsoft reference.
Security considerations
This cmdlet changes system state. Review every target and parameter in the official reference, test outside production, and prepare an appropriate backup or rollback. Do not execute the example automatically.
This command adds a RODC account to the corp.contoso.com domain using the North America site as the source site for the replication source domain controller. Source: Microsoft, CC BY 4.0; transcript prompt/output removed. This example was not executed.