Install a Domain Controller on Windows Server Core

1) Basic Server Configuration

sconfig

2) Install DNS Role

start /w ocsetup DNS-Server-Core-Role

3) Create New Domain

dcpromo /unattend:unattend.txt

Sample unattend.txt file

(DCINSTALL) - replace with square brackets

InstallDNS=Yes

DomainNetBiosName=ezref

NewDomainDNSName=ezref.info

ReplicaOrNewDomain=Domain

NewDomain=Forest

ForestLevel=3

DomainLevel=3

SafeModeAdminPassword=Password1234

RebootOnCompletion=Yes

ForestLevel and DomainLevel

Value 0 or not set=mixed level domain

Value 1=Windows Server 2003 domain level

Value 2=Windows Server 2003 domain level

Value 3=Windows Server 2008 domain level

Value 4=Windows Server 2008 R2 domain level

4) To List the installed roles

OCList