How to Promote a Windows Server to Domain Controller: Step-by-Step Guide (2026)

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

ErrorCauseFix
DNS delegation warningNo parent DNS zoneSafe to ignore for new forest
SYSVOL not shared after restartDFS Replication not initializedRun
dcdiag /test:sysvolcheck /e /v
Dynamic IP address warningNIC still using DHCPSet static IP before promotion
Replication error 1722Firewall blocking RPCOpen TCP 135 and ports 49152-65535
dcdiag fails Advertising testNetlogon not started
net start netlogon

Forest and Domain Functional Levels

Functional LevelMinimum DC OSKey Features
Windows Server 2012 R2WS 2012 R2Protected Users group, Authentication policies
Windows Server 2016WS 2016Privileged Access Workstations, Azure AD join
Windows Server 2019/2022WS 2019/2022Same AD features as 2016 level

Conclusion

Always verify with

dcdiag
after promotion. For production environments, deploy a minimum of two domain controllers for redundancy and ensure SYSVOL replication is healthy on both before putting the domain into production use.

Scroll to Top