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: