Installing an Additional Domain Controller by Using the Command Line
Updated: June 29, 2009
Applies To: Windows Server 2008, Windows Server 2008 R2
Use the following procedure to perform an unattended installation of a new domain controller from the command line. For a complete list of unattended installation options, including default values, allowed values, and descriptions, type dcpromo /?:Promotion at a command prompt, or see Promotion Operation.
To perform this procedure, you must be a member of the Domain Admins group.
At a command prompt, type the following, and then press ENTER:
dcpromo /unattend / unattendOption : value / unattendOption : value ...
unattendOption is an option in the Promotion Operation table. Separate each option:value pair with a space.
value is the configuration instruction for the option.
The following example creates an additional domain controller with the global catalog and installs and configures DNS Server service:
dcpromo /unattend /InstallDns:yes /confirmGC:yes /replicaOrNewDomain:replica /replicaDomainDNSName:contoso.com /databasePath:"e:\Windows\ntds" /logPath:"e:\Windows\ntds" /sysvolpath:"e:\Windows\sysvol" /safeModeAdminPassword: FH#3573.cK /rebootOnCompletion:yes
- unattendOption is an option in the Promotion Operation table. Separate each option:value pair with a space.
When you have typed all the options that are required to create the additional domain controller, press ENTER.