Windows Servers

Promoting Windows Server to a Domain Controller: DC vs Member Server

By NileVPS Team · Published · 4 min read

اقرأ المقال بالعربي

A domain controller (DC) is the server that holds the Active Directory database: it authenticates users and computers, applies Group Policy and usually runs the DNS zone for the domain. "Promoting" a server means turning a standalone or member server into a DC, either by creating a brand-new forest or by joining an existing domain as an additional controller. This guide explains what changes when a server becomes a DC, how it differs from a member server, and the exact PowerShell steps to promote one safely.

Domain controller vs member server

Domain controllerMember server
Holds the AD databaseYes, a full writable copy (or read-only for an RODC)No
Authenticates logonsYes, via Kerberos and NTLMNo, it asks a DC
Local user accountsDisabled; only domain accounts existYes, alongside domain accounts
Typical rolesAD DS, DNS, sometimes DHCPFile server, IIS, SQL Server, RDS
Can be removed casuallyNo, it must be demoted properlyYes, it can simply leave the domain

A member server is a normal server joined to the domain. It trusts the DCs for authentication but does not store directory data. Best practice is to keep DCs dedicated to directory services and DNS, and run applications such as databases or web servers on member servers.

Prerequisites

Before promoting, prepare the server:

  1. Set the final hostname first. Renaming a DC later is possible but more complicated.

``powershell Rename-Computer -NewName "DC01" -Restart ``

  1. Use a static IP address and keep it stable. Clients and other DCs find the DC by its address in DNS.
  2. Point DNS correctly: for the first DC, use another DC or itself (127.0.0.1 is added automatically when DNS is installed); for an additional DC, point to an existing DC.
  3. Choose a domain name you control, ideally a subdomain of a real domain such as ad.example.com. Avoid .local and names you do not own.
  4. Patch the server and confirm the time is correct, because Kerberos fails when clocks differ by more than five minutes by default.
  5. Take a snapshot of the VPS so you can return to a clean server if the promotion fails.

Step 1: Install the AD DS role

Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools

Installing the role does not make the server a DC yet; it only adds the binaries and tools.

Step 2a: Create a new forest (first DC)

Install-ADDSForest `
  -DomainName "ad.example.com" `
  -DomainNetbiosName "AD" `
  -InstallDns `
  -ForestMode WinThreshold `
  -DomainMode WinThreshold

You will be prompted for the Directory Services Restore Mode (DSRM) password. Store it safely: it is the local administrator password used to repair AD offline. WinThreshold is the Windows Server 2016 functional level, which is also the highest level available for 2019 and 2022 domains. The server reboots automatically when finished.

Step 2b: Add a DC to an existing domain

On a second server that can reach an existing DC:

Install-ADDSDomainController `
  -DomainName "ad.example.com" `
  -InstallDns `
  -Credential (Get-Credential "AD\Administrator") `
  -SiteName "Default-First-Site-Name"

Two or more DCs give you redundancy: if one is offline, users can still log on, and the directory can be rebuilt from the surviving copy.

To preview either command without making changes, run the matching test cmdlet first, for example Test-ADDSForestInstallation or Test-ADDSDomainControllerInstallation.

Step 3: Verify the domain controller

After the reboot, log in with the domain administrator account and run:

Get-ADDomainController -Filter * | Select-Object Name, IPv4Address, Site, IsGlobalCatalog
dcdiag /v
repadmin /replsummary
Get-Service NTDS, DNS, Netlogon, KDC

dcdiag should pass its tests, and repadmin should show no replication failures once you have more than one DC. Also check that the _ldap._tcp SRV records exist in DNS:

Resolve-DnsName -Type SRV _ldap._tcp.dc._msdcs.ad.example.com

Security for a DC on a VPS

A domain controller is the highest-value target in a Windows network. If you host one on a VPS:

  • Never expose directory ports such as 53, 88, 135, 389, 445, 636 and 3268 to the internet. Allow them only from your own servers, ideally over a VPN or a private network. The NileVPS cloud firewall lets you enforce this before traffic reaches the server.
  • Restrict RDP to known IP addresses and use strong, unique administrator passwords.
  • Keep the DC free of extra software and browse the web from other machines, not the DC.
  • Back up system state regularly (for example with Windows Server Backup). Be careful restoring a DC from a VM snapshot when you have several DCs: rolling one back can cause replication inconsistencies (USN rollback). Snapshots are best used as a safety net right before changes on a single-DC lab.

For the policies you will apply next, see our Group Policy guide, and check plans and pricing if you want two small VPS instances for redundant DCs.

Demoting a domain controller

To turn a DC back into a member server, move any FSMO roles it holds and then run:

Uninstall-ADDSDomainController -Credential (Get-Credential)

For the last DC in a domain, add -LastDomainControllerInDomain -RemoveApplicationPartitions, which removes the domain entirely.

FAQ

Can a domain controller also run other applications?

Technically yes, but it is discouraged. Extra software increases the attack surface of the most sensitive server and can conflict with directory services. Use member servers for applications.

How many domain controllers do I need?

At least two for any domain people depend on, so logons and DNS keep working if one fails or is being patched. A single DC is acceptable for labs and testing.

Can I promote a server running Server Core?

Yes. The same PowerShell commands work on Server Core, and a Core DC has a smaller footprint and fewer updates to install.

Related guides