Use PowerShell to Create a New Active Directory Forest on Windows 2012 Server Core Installation (no-GUI)

You have a fresh installation of Windows Server 2012 that was installed using the default installation type of server core installation (no-GUI). This server will be the first domain controller in a brand new Active Directory forest.

Log into the server and launch PowerShell by typing powershell.exe. You’ll need to first add the AD-Domain-Services role to the server:

Add-WindowsFeature AD-Domain-Services

posh-newadforest0.jpg

The installation of this role completes and a restart is not required:

posh-newadforest1.jpg

Now to make this server the first domain controller in a new forest:

Install-ADDSForest -CreateDnsDelegation:$false -DatabasePath 'C:\Windows\NTDS' -DomainMode 'Win2012' -DomainName 'mikefrobbins.com' -DomainNetbiosName 'MIKEFROBBINS' -ForestMode 'Win2012' -InstallDns:$true -LogPath 'C:\Windows\NTDS' -NoRebootOnCompletion:$true -SysvolPath 'C:\Windows\SYSVOL' -Force:$true

posh-newadforest2.jpg

The installation will go through several steps:

posh-newadforest3.jpg

A restart is required when the installation is complete:

posh-newadforest4.jpg

ยต