This article will go over how to completely automate setting up active directory. While this might or might not help you if you are setting things up with the Window GUI, I can tell you this will save your behind if you are wanting to install Active Directory to a server core box!
There are some things that you will have to change in this script! In this script my Fully Qualified domain name is going to be called: “heinrichs.domain”. If you were to only change the FQ domain name everything else is the Active Directory defaults in the GUI install. Fortunately for most people Microsoft chose some very good defaults and unless you are some enormous enterprise outfit this script should also work for you.
Bellow if the setup file for the Active Directory setup and install. First make a directory on C: called “scripts”. Make a file called “dcpromo-answer.txt” and copy this info into that file.
; New forest promotion
; Set SafeModeAdminPassword to the correct value prior to using the unattend file
; Run-time flags (optional)
You will want open a command prompt. You will need to type this command:
Once you do that you should have a fully working Domain Controller with Active Directory installed and setup!