Sharing Knowledge | System Admin Articles

Installing Active Directory on Server Core with an Answer File



Active Directory still gets installed by using DCPromo on Server Core, however you will have to use the /unattend: switch. In my case I copied the following sample answer file to the C:\temp directory and then ran the following command to install Active Directory using an answer file - dcpromo /unattend:c:\temp\answer.txt Here is a look at the answer file (don't worry I just made that password up for this demo).

This is the Replica Domain Controller Answer File:
[DCINSTALL]
UserName=administrator
UserDomain=AdminPrep.local
Password=$up3rT0p$3cr3t
SiteName=Default-First-Site-Name
ReplicaOrNewDomain=replica
DatabasePath="%systemroot%\NTDS"
LogPath="%systemroot%\NTDS"
SYSVOLPath="%systemroot%\SYSVOL"
InstallDNS=yes
ReplicaDomainDNSName=AdminPrep.local
ConfirmGC=yes
SafeModeAdminPassword=$up3rT0p$3cr3t
RebootOnCompletion=yes

As I've written this blog I noticed on Microsoft's site that they have a KB that can be of further assistance with doing unattended installs or removals of Active Directory. take a look at KB947034.



Labels: Windows

About the Author
My Profile Photo

I'm Shankar, A Windows System Admin. I'm Experienced in Windows Server Technologies and Citrix Administration. I'm blogging since 2009 and I'm currently working for a Organization as Senior System Engineer.
Follow Me On Twitter or On Facebook

0 Comments for "Installing Active Directory on Server Core with an Answer File"

What do you think about this Article? Add your Opinion..!

Back To Top