Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools Get-Command -Module ADDSDeployment Install-ADDSDomainController -InstallDns # You will be prompted for Domain Name and SafeMode Password