In order to create new Forest and promote Windows Server 2012 Core to be Domain Controller for that Forest, first Active Directory Services Role has to be added:
Install-WindowsFeature AD-Domain-Services –IncludeManagementTools
Once Active Directory DOmain Services role is installed we can promote server to be first Domain Controller in the Forest.
Install-ADDSForest -DomainName "lab.corp" -DomainNetbiosName "LAB" -DomainMode Win2008R2 -ForestMode Win2008R2 -InstallDns -Force
And after some time new Forest and Domain Controller is ready to use.
SKufel:
Thanks for a simple, straight forward answer to a question that others have complicated!
Dan
In Windows Server 2012 R2 PowerShell will give an error for the Install-ADDSForest cmdlet if you don’t specify the -SafeModeAdministratorPassword parameter.
——————–
Install-WindowsFeature AD-Domain-Services –IncludeManagementTools
——————–
——————–
Import-Module ADDSDeployment
$SecurePassword = “P@ssw0rd” | ConvertTo-SecureString -AsPlainText -Force
Install-ADDSForest -DomainName ‘Doge.com’ -SafeModeAdministratorPassword $SecurePassword -DomainNetbiosName ‘DOGE’ -DomainMode Win2012R2 -ForestMode Win2012R2 -InstallDns
———————
Thanks Joseph. Your procedure works for me with Windows 2012r2 Core.