Server Core DC Install
Create an answer file similar to this:
[DCInstall]
InstallDNS = Yes
ConfirmGC = Yes
CriticalReplicationOnly = No
RebootOnCompletion = No
ReplicaOrNewDomain = Domain
NewDomain = Forest
NewDomainDNSName = <DNS domain name>
DomainNetBIOSName = <NetBIOS name>
SiteName = <sitename> OR Default-First-Site-Name
SafeModeAdminPassword = <password>
UserDomain = <computername>
UserName = <username>
Password = <password>
Then run dcpromo.exe /unattend:<full path to answer file> on the server core
Notes:
[DCInstall]
InstallDNS = Yes
ConfirmGC = Yes
CriticalReplicationOnly = No
RebootOnCompletion = No
ReplicaOrNewDomain = Domain
NewDomain = Forest
NewDomainDNSName = <DNS domain name>
DomainNetBIOSName = <NetBIOS name>
SiteName = <sitename> OR Default-First-Site-Name
SafeModeAdminPassword = <password>
UserDomain = <computername>
UserName = <username>
Password = <password>
Then run dcpromo.exe /unattend:<full path to answer file> on the server core
Notes:
- Passwords are removed from the unattend text file during the installation process
- Use * as the password to use the current server password