Skip to content

Domain Controller Promotion, Replica Replacement & Health Gate Handover

SOP-SYS-008 Standard Operating Procedure v1.0.0
Last Updated 2026-10-19
Author Systems Administration Team
πŸ’» Target OS / Systems:
Windows Server 2019/2022/2025 Domain ControllersActive Directory Domain Services (AD DS)DNS Server RoleDistributed File System Replication (DFSR)

Before you begin

  • Applies to:Controlled promotion or replacement of an Active Directory domain controller.
  • Where to start:Start from an authorized directory administration workstation and confirm which existing controller provides DNS and replication.
  • What you need:Have the target server, site and DNS settings, directory credentials, a valid backup, and a verified healthy replication partner.
Guide tools
Guide tools
0/0 Steps (0%)

Scope, Architecture & Replacement Scenarios

This standard operating procedure governs the controlled promotion, lifecycle replacement, and emergency substitution of Domain Controllers (DCs) within the enterprise forest.

Active Directory Domain Services (AD DS) is fundamentally a distributed multi-master system. Replacing a failed, degraded, or end-of-life DC requires strict adherence to operational health gates to ensure no directory replication errors, tombstoned objects, or orphaned DNS records enter the forest topology.

Domain Controller Replica Replacement Health Gates covering pre-flight forest health, staging and metadata cleanup, clean promotion, partition sync, SYSVOL validation, and network handover

DC Replica Replacement Health Gates: Strict operational progression from Gate 1 (pre-flight replication baseline) through Gate 6 (DHCP Option 006 member handover), ensuring zero orphaned metadata, intact DFSR SYSVOL synchronization, and continuous high-availability directory service.

Common Replacement Scenarios:

  • Scenario A (Planned Hardware Refresh / Migration): Retiring aging hardware or migrating from Windows Server 2019/2022 to Windows Server 2025.
  • Scenario B (Unplanned Catastrophic Failure): Replacing an unrecoverable DC whose OS, storage, or hypervisor suffered permanent loss.

Pre-Flight Forest Health Gates (Gate 1)

Execute on the surviving primary Domain Controller (DC-01) before touching any replacement hardware.

01

Validate Existing Forest Replication Baseline

Replication Baseline

Verify that directory replication across surviving Domain Controllers has zero errors and delta latency is under 15 minutes.

Terminal window
# Run replication summary forest-wide
repadmin /replsummary
# Query for replication errors only
repadmin /showrepl * /errorsonly
❯ Illustrative Output (Results Vary)
Source DSA largest delta fails/total %% error
DC-01 04m:12s 0 / 5 0
DC-02 06m:40s 0 / 5 0
Destination DSA largest delta fails/total %% error
DC-01 06m:40s 0 / 5 0
DC-02 04m:12s 0 / 5 0

02

Validate Directory Services Diagnostics (DCDIAG)

Directory Diagnostics

Ensure core directory services, DNS resolution, and Kerberos KDC functionality are operational on surviving DCs.

Terminal window
dcdiag /test:Replications /test:DNS /test:NCSecDesc /test:NetLogons /test:SysVolCheck
❯ Illustrative Output (Results Vary)
All tested modules must return "passed test <TestName>".
Any failure must be remediated before introducing a new DC.

Execution: Decommissioning Failed DC Metadata (Gate 2)

03

Execute Metadata Cleanup of the Replaced Domain Controller

Metadata Cleanup

If replacing a failed or dead DC (DC-02), purge its directory object, NTDS Settings, and Kerberos identities from Active Directory metadata before reusing its hostname or IP address.

Terminal window
# On DC-01: Remove dead Domain Controller object authoritatively
$DeadDC = "DC-02"
Remove-ADDomainController -Identity $DeadDC -Confirm:$false
Write-Host "[+] Metadata cleanup completed for $DeadDC." -ForegroundColor Green
# Verify NTDS Settings object removal
$DN = "CN=NTDS Settings,CN=$DeadDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=corp,DC=internal"
Get-ADObject -Identity $DN -ErrorAction SilentlyContinue
❯ Illustrative Output (Results Vary)
Get-ADObject returns null, confirming complete removal of the NTDS Settings instance.

04

Purge Stale DNS SRV and NS Records

DNS Sanitation

Clean stale name server and service locator records associated with the retired DC from forward lookup and _msdcs zones.

Terminal window
# In elevated PowerShell on DC-01:
$DeadDC = "DC-02"
$Zones = @("corp.internal", "_msdcs.corp.internal")
foreach ($Zone in $Zones) {
# Remove stale NS records
Get-DnsServerResourceRecord -ZoneName $Zone -RRType NS |
Where-Object { $_.RecordData.NameServer -like "*$DeadDC*" } |
Remove-DnsServerResourceRecord -ZoneName $Zone -Confirm:$false
# Remove stale SRV locator records
Get-DnsServerResourceRecord -ZoneName $Zone -RRType SRV |
Where-Object { $_.RecordData.DomainName -like "*$DeadDC*" } |
Remove-DnsServerResourceRecord -ZoneName $Zone -Confirm:$false
}
❯ Illustrative Output (Results Vary)
Query DNS SRV records:
Resolve-DnsName -Name "_ldap._tcp.dc._msdcs.corp.internal" -Type SRV
Confirm DC-02 does not appear.

Execution: Staging Replacement Host & Promotion (Gate 3)

05

Configure Network Parameters & Static DNS

Network Staging

On the replacement server (DC-02-NEW), configure static networking. The primary DNS resolver must strictly point to surviving DC-01.

Terminal window
# On DC-02-NEW:
$NIC = (Get-NetAdapter | Where-Object Status -eq 'Up' | Select-Object -First 1).Name
# 1. Assign static IP address and subnet
New-NetIPAddress -InterfaceAlias $NIC -IPAddress "10.10.10.11" -PrefixLength 24 -DefaultGateway "10.10.10.1"
# 2. Point DNS strictly to surviving active partner DC (DC-01)
Set-DnsClientServerAddress -InterfaceAlias $NIC -ServerAddresses ("10.10.10.10")
# 3. Disable NetBIOS over TCP/IP
Set-ItemProperty -Path "HKLM:SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces\*" -Name "NetbiosOptions" -Value 2
# 4. Join domain as member server and reboot
Add-Computer -DomainName "corp.internal" -Restart
❯ Illustrative Output (Results Vary)
After reboot, verify domain membership:
(Get-CimInstance Win32_ComputerSystem).PartOfDomain returns True.

06

Install AD DS & DNS Roles on Replacement Server

Role Binaries

Install the required directory services binaries and management tools prior to replica promotion.

Terminal window
Install-WindowsFeature -Name AD-Domain-Services, DNS, RSAT-ADDS -IncludeManagementTools
❯ Illustrative Output (Results Vary)
Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True No Success {Active Directory Domain Services, DNS Server...}

07

Promote Replacement Server as Replica Domain Controller

Replica Promotion

Promote the replacement server into the existing domain, enabling Global Catalog and placing the NTDS database and logs on dedicated volumes.

Terminal window
$DSRMPassword = Read-Host -Prompt "Enter DSRM Administrator Password" -AsSecureString
Install-ADDSDomainController `
-DomainName "corp.internal" `
-InstallDns:$true `
-CreateDnsDelegation:$false `
-SiteName "Default-First-Site-Name" `
-ReplicationSourceDC "DC-01.corp.internal" `
-NoGlobalCatalog:$false `
-DatabasePath "D:\NTDS" `
-LogPath "L:\NTDS" `
-SysvolPath "C:\Windows\SYSVOL" `
-SafeModeAdministratorPassword $DSRMPassword `
-Force:$true
❯ Illustrative Output (Results Vary)
Server initiates automated promotion, synchronizes schema and partitions from DC-01, and restarts.

Execution: Post-Promotion Health Gates (Gates 4 & 5)

08

Converge Replication & Validate SYSVOL Publication

Replication Convergence

Following promotion reboot, verify that DFSR has initialized SYSVOL and that all replication partitions are in sync.

Terminal window
# 1. Replicate all naming contexts across all partners
repadmin /syncall /AdeP
# 2. Check DFSR event log for SYSVOL initialization
Get-WinEvent -LogName "DFS Replication" -MaxEvents 10 |
Where-Object { $_.Id -in 4604, 4614 } |
Select-Object TimeCreated, Id, Message
# 3. Verify SYSVOL and NETLOGON shares are active
Get-SmbShare -Name SYSVOL, NETLOGON
❯ Illustrative Output (Results Vary)
SyncAll reported no errors.
Event ID 4604: "The DFS Replication service successfully initialized the SYSVOL replica."
SYSVOL and NETLOGON shares report State: NonExistent = False.

09

Reconfigure Client DNS Resolver Topology on Both DCs

DNS Topology

Reconfigure DNS resolver settings so each Domain Controller queries itself (or loopback) as primary, and the partner DC as secondary.

Terminal window
# On DC-02 (Replacement DC):
$NIC = (Get-NetAdapter | Where-Object Status -eq 'Up' | Select-Object -First 1).Name
Set-DnsClientServerAddress -InterfaceAlias $NIC -ServerAddresses ("127.0.0.1", "10.10.10.10")
# On DC-01 (Partner DC):
$NIC1 = (Get-NetAdapter | Where-Object Status -eq 'Up' | Select-Object -First 1).Name
Set-DnsClientServerAddress -InterfaceAlias $NIC1 -ServerAddresses ("127.0.0.1", "10.10.10.11")
❯ Illustrative Output (Results Vary)
Run Get-DnsClientServerAddress on both DCs:
Verify primary DNS is 127.0.0.1 and secondary is the partner DC IP.

Execution: Network Handover (Gate 6)

10

Hand Over DHCP Scope Options and Member Pointers

DHCP Handover

Update enterprise network resolvers to restore two-node DNS redundancy across member systems.

Terminal window
# Update DHCP DNS Server Scope Option (Option 006) on Corp DHCP
Set-DhcpServerv4OptionValue -ScopeId 10.10.20.0 -OptionId 6 -Value @("10.10.10.10", "10.10.10.11")
Set-DhcpServerv4OptionValue -ScopeId 10.10.30.0 -OptionId 6 -Value @("10.10.10.10", "10.10.10.11")
# Flush and test resolution from an administrative workstation:
Clear-DnsClientCache
Resolve-DnsName -Name "corp.internal" -Server "10.10.10.11"
❯ Illustrative Output (Results Vary)
Name Type TTL Section IPAddress
---- ---- --- ------- ---------
corp.internal A 600 Answer 10.10.10.10
corp.internal A 600 Answer 10.10.10.11

Rollback & Unsuccessful Promotion Decommissioning

11

Abort Promotion and Purge Incomplete Metadata

Rollback Abort

If the replacement promotion fails mid-way, replication locks up, or severe hardware defects are identified, cleanly abort promotion and purge orphaned records from DC-01.

Terminal window
# 1. Power off replacement DC-02 immediately
# 2. On DC-01, force remove orphaned replica record:
Remove-ADDomainController -Identity "DC-02" -Confirm:$false
# 3. Clean incomplete DNS records:
$Record = Get-DnsServerResourceRecord -ZoneName "_msdcs.corp.internal" -RRType NS | Where-Object {$_.RecordData.NameServer -like "*DC-02*"}
if ($Record) { Remove-DnsServerResourceRecord -ZoneName "_msdcs.corp.internal" -Name $Record.HostName -RRType NS -Confirm:$false }
# 4. Revert DHCP Option 006 to point solely to DC-01:
Set-DhcpServerv4OptionValue -ScopeId 10.10.20.0 -OptionId 6 -Value @("10.10.10.10")

Operational Compliance & Handover Sign-off

Health GateOperational RequirementApproverSign-Off
Gate 1: Pre-Flight Auditrepadmin /replsummary reports 0 failuresSystems Administration TeamApproved
Gate 2: Metadata CleanupDead DC purged from AD and DNS SRVSystems Administration TeamApproved
Gate 3: PromotionClean install with dedicated database pathsLead Systems AdministratorApproved
Gate 4: Partition SyncAll partitions converge across partnersSystems Administration TeamApproved
Gate 5: SYSVOL HealthEvent ID 4604 logged; shares publishedSystems Administration TeamApproved
Gate 6: Network HandoverDHCP Scope Option 006 updated and activeInfrastructure OperationsApproved

Comments