Professional Documents
Culture Documents
htm
You can automatically run DCPROMO during an unattended installation. Enter the command
dcpromo /answer:%path_to_answer_file%
You’ll see a dialog box that says DCPROMO is running in unattended mode. Then, the machine will
reboot.
You can also add DCPROMO to the unattended file that's used to install your server.
The Microsoft Windows 2000 Resource Kit details the DCInstall section’s parameters in the file
Unattend.doc:
Value Explanation
Specifies whether the domain will join an existing forest or create a new
CreateOrJoin
one
1 of 3 3/20/2011 07:50
Unattended Installation of Active Directory http://www.petri.co.il/unattended_installation_of_active_directory.htm
server
Because the DCPROMO process occurs after setup, the created answer file must be called $winnt$.inf
and copied to the 'system32 folder. You need to add the following text to the GUIRunOnce section of
the unattended Setup answer file:
[GUIRunOnce]
"DCpromo /answer:%systemroot%\system32\$winnt$.inf"
After the DCPROMO process completes, DCPROMO removes password information from the $winnt$.inf
file. To make this process easier because the RunOnce command doesn’t execute until someone logs on
to the computer, you can add the following text to the unattended answer file.
Upgrade to Windows 7
Migration to Windows 7, Made Easier
w/ Intel® Core™ vPro™ Processors!
www.Intel.com/Windows7
Don't use items such as %systemroot% or %windir%, because the unattended installation process
doesn’t understand them.
You can just create a DCInstall section directly in your unattend.txt file to avoid having multiple
unattended setup files. Enter text such as the following:
[DCInstall]
AdministratorPassword = password
CreateOrJoin = Create
DomainNetBiosName = dpetri
NewDomainDNSName = dpetri.net
RebootOnSuccess = Yes
ReplicaOrNewDomain = Domain
SiteName = "Lab"
TreeOrChild = Tree
2 of 3 3/20/2011 07:50
Unattended Installation of Active Directory http://www.petri.co.il/unattended_installation_of_active_directory.htm
My example script would create a new forest with the domain dpetri.net at the top and the new domain
controller in the site Lab. The SYSVOL, logs, and Active Directory (AD) files would be in the default
locations. The new domain Administrator account password would be password.
Related Articles
AWS Privacy Policy | Site Info | Contact | Advertise ©2011 Blue Whale Web Inc. |
3 of 3 3/20/2011 07:50