Installing an Additional Domain Controller by Using an Answer file
Updated: January 5, 2009
Applies To: Windows Server 2008, Windows Server 2008 R2
The answer file that you use to create a new domain controller must have the replica options specified. Use the following procedure to create the answer file.
To perform this procedure, you can use any account that has Read and Write permissions for the text editor application.
Open Notepad or any text editor.
On the first line, type [DCINSTALL], and then press ENTER.
Create the following entries, one entry on each line. These options are the minimum options that are required for a new domain controller installation with Domain Name System (DNS) and the global catalog installed and configured automatically. For a complete list of unattended installation options, including default values, allowed values, and descriptions, see Promotion Operation.
UserName=<administrative account in the domain of the new domain controller>
UserDomain=<name of the domain of the new domain controller>
Password=<password for the account in UserName>
ReplicaDomainDNSName=<The name of the domain in which you want to add another domain controller>
DatabasePath=<path to a folder on a local volume, surrounded by double quotation marks>
LogPath=<path to a folder on a local volume, surrounded by double quotation marks>
SYSVOLPath=<path to a folder on a local volume, surrounded by double quotation marks>
Save the answer file to the location on the installation server from which it is to be called by Dcpromo, or save the file to a network shared folder or removable media for distribution.
After you create the answer file, use the following procedure to perform the unattended installation. Use this procedure to install AD DS on either a full installation or a Server Core installation of Windows Server 2008 or Windows Server 2008 R2.
To perform this procedure, you must be a member of the Domain Admins group.
At the command prompt, type the following command, and then press ENTER:
dcpromo /unattend:"<path to the answer file>"