Install-AddsDomainController cmdlet returns parameter set error for RODC


You use the Windows Server 2012 AddsDeployment Windows PowerShell module to create a new read-only domain controller (RODC). To do this, you use a pre-created (also known as "unoccupied" or "staged") RODC computer account. In this case, you receive an error message that resembles the following: 
Install-ADDSDomainController : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:1
+ install-addsdomaincontroller -DomainName -Credential (get-crede ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Install-ADDSDomainController], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.DirectoryServices.Deployment.PowerShell.Commands.Install


This issue occurs when you specify arguments that are already populated on the pre-created RODC account to the install-addsdomaincontroller configuration.


When you use the install-addsdomaincontroller -useexistingaccount commands with pre-created RODC accounts, do not specify the following arguments:

More Information

This behavior is by design.

รหัสบทความ: 2737535 - การตรวจสอบครั้งสุดท้าย: 7 ก.ย. 2012 - ฉบับแก้ไข: 1