Promoting a Windows Server to a Domain Controller (DC) is one of the most fundamental tasks in Active Directory infrastructure. Whether you are building a new forest from scratch, adding a second DC for redundancy, or creating a child domain, the process follows the same core steps. This guide covers the complete promotion process for Windows Server 2019 and 2022, including prerequisites, the GUI wizard, PowerShell method, verification commands, and the most common errors with exact fixes.
Prerequisites
- Static IP address: A domain controller must never use DHCP. Set a static IP, subnet mask, default gateway, and DNS pointing to itself (127.0.0.1) or an existing DC.
- Correct hostname: Set the server hostname before promotion — it cannot be changed easily after. Use a naming convention like DC01, DC02.
- Windows Server 2019 or 2022: Standard or Datacenter edition.
- Local Administrator credentials: For adding a DC to an existing domain, you also need Domain Admin credentials.
- Network connectivity to existing DC (if joining existing domain): Ports 88, 135, 389, 445, 464, 3268 must be open between servers.
Step 1: Install the AD DS Role
Via Server Manager (GUI)
Open Server Manager → Manage → Add Roles and Features. Check Active Directory Domain Services, accept additional features, and click Install. Do not restart yet.
Via PowerShell
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
Step 2: Promote to Domain Controller
In Server Manager, click the yellow notification flag and select Promote this server to a domain controller.
Option A: New Forest (First DC)
Install-ADDSForest `
-DomainName "contoso.com" `
-DomainNetbiosName "CONTOSO" `
-ForestMode "WinThreshold" `
-DomainMode "WinThreshold" `
-InstallDns:$true `
-SafeModeAdministratorPassword (ConvertTo-SecureString "DSRM@Pass123!" -AsPlainText -Force) `
-Force:$true
Option B: Add DC to Existing Domain
Install-ADDSDomainController `
-DomainName "contoso.com" `
-InstallDns:$true `
-Credential (Get-Credential) `
-SafeModeAdministratorPassword (ConvertTo-SecureString "DSRM@Pass123!" -AsPlainText -Force) `
-Force:$true
Step 3: Verify the Domain Controller
dcdiag /v
repadmin /showrepl
net share
Get-Service adws,dns,kdc,netlogon | Select-Object Name,Status
nslookup contoso.com
Common Errors and Fixes
| Error | Cause | Fix |
|---|---|---|
| DNS delegation warning | No parent DNS zone | Safe to ignore for new forest |
| SYSVOL not shared after restart | DFS Replication not initialized | Run
dcdiag /test:sysvolcheck /e /v |
| Dynamic IP address warning | NIC still using DHCP | Set static IP before promotion |
| Replication error 1722 | Firewall blocking RPC | Open TCP 135 and ports 49152-65535 |
| dcdiag fails Advertising test | Netlogon not started |
net start netlogon |
Forest and Domain Functional Levels
| Functional Level | Minimum DC OS | Key Features |
|---|---|---|
| Windows Server 2012 R2 | WS 2012 R2 | Protected Users group, Authentication policies |
| Windows Server 2016 | WS 2016 | Privileged Access Workstations, Azure AD join |
| Windows Server 2019/2022 | WS 2019/2022 | Same AD features as 2016 level |
Conclusion
Always verify with