Windows 2012 Install Active Directory Via Powershell


Active Directory installation with this powershell script:

Install-windowsfeature -name AD-Domain-Services –IncludeManagementTools
Import-Module ADDSDeployment
Install-ADDSForest `
-DatabasePath “C:WindowsNTDS” `
-DomainMode “Win2012” `
-DomainName “mijndom.local” `
-DomainNetBIOSName “MIJNDOM” `
-ForestMode “Win2012” `
-InstallDNS:$true `
-LogPath “C:WindowsNTDS” `
-NoRebootOnCompletion:$false `
-SYSVOLPath “C:WindowsSYSVOL”
-Force:$true