A. The Dcpromo answer file is a text file with a number of parameters that depend on the promotion or demotion type. A list of options is possible, but the best Windows Server 2008 alternative is to just run Dcpromo on a Server 2008 server and specify all the required options. Then, on the last screen, click Export Settings, as shown below.
Doing so will return a text file with the unattended-answer-file content needed to automate the Dcpromo action.
Note that you need to enter a SafeModeAdminPassword, and you might also want to set the server-promotion account password, unless you enter the password during the promotion process. The following code is an automatically generated Dcpromo answer file for a new RODC in an existing domain.
; DCPROMO unattend file (automatically generated by dcpromo)
; dcpromo.exe /unattend:C:\Users\Administrator\Documents\rodccreate.txt
; You may need to fill in password fields prior to using the unattend file.
; If you leave the values for "Password" and/or "DNSDelegationPassword"
; as "*", then you will be asked for credentials at runtime.
; Read-Only Replica DC promotion
; Set SafeModeAdminPassword to the correct value prior to using the unattend file
; Run-time flags (optional)
To use the answer file, add the /unattend switch, as follows: