Unattended install of Active Directory on Server 2008 core

Server core is kind of interesting. We’ve spent the last 20 years getting used to more and more advanced GUIs, and then suddenly you install Server 2008 in "core" mode and… you’re back to a single DOS windows surrounded by a blue background. And nothing works any more ! Not strictly true, but the transition is hard- I’m quite used to running control panel applets by their .cpl extension (instead of tracking down, say, My Computer) but Server Core really has been stripped right back.
 
I found a way (thanks to petri.co.il- http://www.petri.co.il/creating-unattend-installation-file-dcpromo-windows-server-2008.htm) of creating an unattended script for running DCPROMO but these scripts all missed off the (apparently critical) lines I’ve highlighted below:
 
[DCINSTALL]
UserName=administrator
UserDomain=your.domain.here
Password=LikeI’dTellAnyone:)
SiteName=Default-First-Site-Name
ReplicaOrNewDomain=replica
ReplicaDomainDNSName=your.domain.here
ReplicationSourceDC=domaincontroller.your.domain.here
DatabasePath="%systemroot%\NTDS"
LogPath="%systemroot%\NTDS"
SYSVOLPath="%systemroot%\SYSVOL"
InstallDNS=yes
ConfirmGC=yes
SafeModeAdminPassword=LikeI’dTellAnyone:)
RebootoOnCompletion=yes
 
Until I added these lines, the command line just kept spitting back something like "You need to provide me with the fully qualified domain name of the blah blah blah"… which wasn’t much help, I just kept trying to add the FQDN of my domain wherever I found it in this file not realising I actually needed two extra lines.
 
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s