Creating an Unattend Installation File for DCPROMO in Windows Server 2008
This article describes the syntax that you use to build answer files to perform unattended installations of Active Directory Domain Services on Windows Server 2008-based domain controllers. Performing an unattended installation using an answer file is not as hard as it sounds, and can be performed without any user interaction. Using the answer (or sometimes referred to as the unattend) file eliminates the need for an administrator to interact with the DCPROMO wizard, and is most important when using a server core machine to act as a DC. You can read more about Active Directory on Windows Server 2008 core installations on my "Installing Active Directory on Windows 2008 Server Core” article. You can also use the answer files to remove AD DS in unattended mode. Note that a similar article exists that describes the basics of the unattend file in Windows 2000/2003 – “How do I automatically upgrade a server to a domain controller during installation?“.
One method of creating the unattend file is by manually copying a sample text and pasting it into a text file. You can read more about this process in the next section below. Another method of creating the file is by running the DCPROMO wizard on a different server, then, when finished, saving the configuration into a text file, and then pressing Cancel. You can read more about this method below.
Manually creating the unattend file
The unattend file can be manually created, and the fields in it properly populated. Here are some examples.
Note: Fields in the “[DCInstall]” section of the answer file specify the details of the installation or removal operation. In this article I will only discuss installation options, however you can read more about other options in KB 947034 (http://support.microsoft.com/kb/947034).
The following list provides the common fields that are used for each operation. The default values are used if the option is not specified.
More in Windows Server 2008
Microsoft Acknowledges New Netlogon Issues On Windows Server Machines
Feb 25, 2022 | Rabia Noureen
How to Fully Patch the PrintNightmare Vulnerability
Jul 9, 2021 | Brad Sams
Everything You Need to Know About Windows – January 2020
Feb 3, 2020 | Russell Smith
Paul Thurrott's Short Takes: Microsoft Earnings Special Edition
Jan 31, 2020 | Paul Thurrott
SCARY: “Atom Bomb” Windows Security Hole said to be Unfixable
Oct 31, 2016 | Richi Jennings
Microsoft’s New Patching Philosophy Sacrifices A Few For The Many
Aug 19, 2016 | Brad Sams
Most popular on petri