Skip to content

Active Directory Forest Disaster Recovery & Clean-Room Reconstruction

SOP-SYS-064 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)Windows Server Backup / Veeam Agent

Before you begin

  • Applies to:Authorized Active Directory forest disaster recovery on Windows Server 2019, 2022, or 2025.
  • Where to start:Start with the recovery lead in an isolated clean room. Confirm the forest and domain scope before bringing up a restored controller.
  • What you need:Have verified backups, Directory Services Restore Mode credentials, clean installation media, and the approved forest recovery plan. Keep restored controllers isolated until their release is approved.
Guide tools
Guide tools
0/0 Steps (0%)

Scope, Threat Model & Forest Recovery Principles

This emergency runbook details the end-to-end disaster recovery process for an enterprise Active Directory forest following total infrastructure destruction, ransomware encryption, or irreversible multi-master database corruption.

Core Forest Recovery Architectural Rules:

  1. Never Restore Multiple DCs from Backup: Restoring multiple Domain Controllers from independent backups introduces severe USN rollbacks, lingering objects, and replication divergence. Exactly one Domain Controller is restored from backup; all subsequent DCs are freshly installed and replicated from the single restored seed.
  2. Mandatory Clean-Room Isolation: The first restored Domain Controller must boot in total network isolation to prevent contact with compromised or out-of-sync domain members.
  3. Invalidate Existing Security Tokens: The krbtgt account password must be reset twice in succession, and the Relative Identifier (RID) pool invalidated to eliminate persistent forged tickets.
Active Directory Forest Recovery Architectural Workflow covering backup verification, clean-room restoration, authoritative FSMO and RID seizure, dual krbtgt rotation, metadata cleanup, and clean replica rebuild

Active Directory Forest Recovery Workflow: Verify backup tombstone integrity, restore the sole seed Domain Controller in network isolation (DSRM), authoritatively seize FSMO roles and increment RID pools, invalidate Kerberos tickets via dual krbtgt rotation, purge stale partner metadata, and rebuild fresh replica nodes from clean media.


Recovery Prerequisites & Backup Selection Matrix

ParameterOperational ThresholdRecovery Rationale
Backup Age Limit< 180 days (Tombstone Lifetime)Backups older than 180 days cannot be restored without severe object corruption.
Seed DC SelectionPrevious Holder of PDC Emulator roleMinimizes FSMO discrepancies and maintains the most accurate time metadata.
Backup TypeVerified System State or Bare MetalMust contain NTDS.dit, SYSVOL, Registry, Boot files, and Active Directory Integrated DNS.
Recovery NetworkPrivate Isolated VLAN (192.168.253.0/24)Disconnected from corporate WAN, core routing, and external Internet.

Execution: Phase 1 β€” Backup Verification & System State Restore

01

Verify System State Backup Integrity and Tombstone Age

Catalog Audit

Inspect the candidate backup archive using wbadmin from an administrative recovery console to ensure catalog integrity and verify age is within tombstone limits.

Terminal window
# Query available System State backups on the recovery storage volume (E:)
wbadmin get versions -backupTarget:E:
# Inspect target version details (e.g., Version: 10/18/2026-02:00)
wbadmin get items -version:10/18/2026-02:00 -backupTarget:E:
❯ Illustrative Output (Results Vary)
Confirm backup version is younger than the forest Tombstone Lifetime (180 days) and reports:
"Can recover: System State"

02

Boot Recovery VM into Directory Services Restore Mode

DSRM Boot

Provision a clean VM on the isolated recovery vSwitch, attach the backup volume, and configure boot parameters to enforce Directory Services Restore Mode (DSRM).

Terminal window
# Set Windows boot manager to start in Directory Services Repair mode
bcdedit /set safeboot dsrm
# Alternatively, from elevated command prompt in Windows PE Recovery:
bcdedit /store C:\Boot\BCD /set {default} safeboot dsrm
❯ Illustrative Output (Results Vary)
Restart machine and verify console displays:
"Safe Mode: Directory Services Repair" on login screen.

03

Execute Authoritative System State Restore

System State Recovery

Execute the authoritative System State restoration command via wbadmin to unpack the Active Directory database onto the seed DC.

Terminal window
# Execute System State restore from backup storage
wbadmin start systemstaterecovery -version:10/18/2026-02:00 -backupTarget:E: -quiet
# Reboot the server once restoration completes
Restart-Computer -Force
❯ Illustrative Output (Results Vary)
Confirm event log Microsoft-Windows-Backup registers Event ID 4:
"The backup operation has completed successfully."

Execution: Phase 2 β€” Database Stabilization & FSMO Seizure

04

Seize All 5 FSMO Roles Authoritatively

FSMO Seizure

Because this restored Domain Controller is now the sole surviving DC in the entire forest, it must seize all 5 Flexible Single Master Operation (FSMO) roles immediately.

Terminal window
# Seize all 5 FSMO roles to the local DC (DC-01)
$TargetDC = (Get-ADDomainController).Name
Move-ADDirectoryServerOperationMasterRole -Identity $TargetDC `
-OperationMasterRole SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster `
-Force -Confirm:$false
# Verification query
netdom query fsmo
❯ Illustrative Output (Results Vary)
Schema master DC-01.corp.internal
Domain naming master DC-01.corp.internal
PDC DC-01.corp.internal
RID pool manager DC-01.corp.internal
Infrastructure master DC-01.corp.internal
The command completed successfully.

05

Invalidate Existing RID Pool & Prevent Duplicate SIDs

RID Invalidation

To prevent the restored Domain Controller from re-issuing SIDs that may have been allocated prior to the disaster, invalidate the RID pool and raise the RID pool baseline by 100,000.

Terminal window
# Query current RID pool baseline
$DSE = [ADSI]"LDAP://RootDSE"
$Domain = [ADSI]"LDAP://$($DSE.defaultNamingContext)"
$RIDManager = [ADSI]"LDAP://CN=RID Manager$,CN=System,$($DSE.defaultNamingContext)"
Write-Host "Current RID allocation pool: $($RIDManager.rIDAvailablePool)"
# Raise RID Available Pool using ntdsutil
# Force immediate new RID allocation by restarting NTDS
Restart-Service NTDS -Force
❯ Illustrative Output (Results Vary)
Check System event log for Event ID 16648:
"A new RID pool was successfully allocated."

06

Dual-Rotation of Kerberos Ticket-Granting Service (krbtgt)

Golden Ticket Kill

Invalidate all golden tickets and forged Kerberos credentials across the forest by resetting the krbtgt password twice with a 15-minute wait.

Terminal window
Import-Module ActiveDirectory
# 1. First krbtgt rotation
$Pass1 = (-join ((65..90) + (97..122) + (48..57) + 33..38 | Get-Random -Count 32 | ForEach-Object {[char]$_}))
Set-ADAccountPassword krbtgt -NewPassword (ConvertTo-SecureString -AsPlainText $Pass1 -Force) -Reset
Write-Host "[-] First krbtgt reset complete. Pausing 15 minutes for ticket invalidation..." -ForegroundColor Cyan
Start-Sleep -Seconds 900
# 2. Second krbtgt rotation
$Pass2 = (-join ((65..90) + (97..122) + (48..57) + 33..38 | Get-Random -Count 32 | ForEach-Object {[char]$_}))
Set-ADAccountPassword krbtgt -NewPassword (ConvertTo-SecureString -AsPlainText $Pass2 -Force) -Reset
Write-Host "[+] Dual krbtgt rotation complete. All forged tickets invalidated." -ForegroundColor Green
❯ Illustrative Output (Results Vary)
Verify PasswordLastSet timestamp is current:
Get-ADUser krbtgt -Properties PasswordLastSet | Select-Object Name, PasswordLastSet

Execution: Phase 3 β€” Metadata Cleanup & Replica Rebuild

07

Perform Metadata Cleanup of Destroyed Domain Controllers

Metadata Purge

Purge all offline and destroyed Domain Controllers from Active Directory metadata so the directory reflects this DC as the sole operational node.

Terminal window
# Get list of all registered DCs excluding self
$RestoredDC = (Get-ADDomainController).Name
$DeadDCs = Get-ADDomainController -Filter * | Where-Object { $_.Name -ne $RestoredDC }
foreach ($DC in $DeadDCs) {
Write-Host "[-] Purging destroyed Domain Controller metadata: $($DC.Name)..." -ForegroundColor Yellow
Remove-ADDomainController -Identity $DC.Name -Confirm:$false
}
# Delete dead DC records from DNS _msdcs zone
$DnsServer = "127.0.0.1"
$Zone = "_msdcs.corp.internal"
Get-DnsServerResourceRecord -ZoneName $Zone -ComputerName $DnsServer |
Where-Object { $DeadDCs.HostName -contains $_.RecordData.NameServer } |
ForEach-Object {
Remove-DnsServerResourceRecord -ZoneName $Zone -Name $_.HostName -RRType $_.RecordType -Confirm:$false
}
❯ Illustrative Output (Results Vary)
Run: Get-ADDomainController -Filter *
Verify only the single restored DC is returned.

08

Perform Authoritative Restoration of SYSVOL DFSR

Authoritative SYSVOL

Force the single restored Domain Controller to act as the authoritative primary publisher for SYSVOL content.

Terminal window
# 1. Stop DFS Replication Service
Stop-Service DFSR
# 2. Set authoritative sync flag in ADSI:
# Set msDFSR-Options = 1 on the local SYSVOL subscription object
$DN = "CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=$RestoredDC,OU=Domain Controllers,DC=corp,DC=internal"
Set-ADObject -Identity $DN -Replace @{"msDFSR-Options"=1}
# 3. Start DFSR
Start-Service DFSR
# 4. Verify publication
Get-WinEvent -LogName "DFS Replication" -MaxEvents 5 | Where-Object { $_.Id -in 4602, 4604 }
❯ Illustrative Output (Results Vary)
Event ID 4602 / 4604 appears in DFS Replication log:
"The DFS Replication service initialized the SYSVOL replica."
SYSVOL and NETLOGON shares are active (net share).

09

Rebuild Replica Domain Controllers from Clean OS Images

Replica Build

Deploy fresh replica Domain Controllers (DC-02, DC-03) using clean Windows Server installations per SOP-SYS-008.

Terminal window
# On fresh VM (DC-02):
# Install AD DS and DNS roles
Install-WindowsFeature -Name AD-Domain-Services, DNS -IncludeManagementTools
# Promote as replica partner pointing to DC-01
Install-ADDSDomainController `
-DomainName "corp.internal" `
-ReplicationSourceDC "DC-01.corp.internal" `
-InstallDns:$true `
-SafeModeAdministratorPassword (Read-Host -Prompt "Enter DSRM Password" -AsSecureString) `
-Force:$true
❯ Illustrative Output (Results Vary)
Run: repadmin /syncall /AdeP
Verify full replication convergence with 0 errors across all naming contexts.

Execution: Phase 4 β€” Reconnection Gate & Post-Recovery Audit

10

Execute Forest-Wide DCDIAG Diagnostics

Validation Gate

Before moving the forest back to production VLANs, execute comprehensive validation testing across all naming contexts and core directory services.

Terminal window
# Run full suite of DCDIAG health tests
dcdiag /v /c /e /test:Replications /test:NCSecDesc /test:NetLogons /test:SysVolCheck
❯ Illustrative Output (Results Vary)
All tested components report:
"passed test Replications"
"passed test NetLogons"
"passed test SysVolCheck"
0 fatal errors detected.

Rollback & Audit Sign-Off

11

Abort Restore and Pivot to Earlier Baseline Snapshot

Rollback Pivot

If the restored database contains severe logical corruption or crashes upon initial boot with database errors, abort and pivot to an alternative earlier backup.

Terminal window
# 1. Shut down corrupted recovery VM
Stop-VM "DC-01-RECOVERY" -Kill -Confirm:$false
# 2. Format recovery OS volume
# 3. Select alternative backup snapshot from repository (e.g. 7 days prior)
$AltVersion = "10/11/2026-02:00"
wbadmin start systemstaterecovery -version:$AltVersion -backupTarget:E: -quiet

Operational Audit & Disaster Recovery Sign-off

Recovery MilestoneMandatory StandardApproverSign-Off
Clean Room IsolationZero network connectivity to contaminated systemsNetwork EngineeringApproved
FSMO Role SeizureAll 5 roles owned by single restored DCLead Systems AdministratorApproved
RID Pool RaisedRID available pool incremented by 100,000Systems Administration TeamApproved
Dual krbtgt ResetPassword rotated twice with 15-minute gapSecurity OperationsApproved
Metadata PurgedAll destroyed DCs cleaned from AD & DNSSystems Administration TeamApproved
SYSVOL PublicationEvent ID 4602/4604 logged; shares activeSystems Administration TeamApproved
Forest AuthorizationFormal CISO sign-off prior to WAN reconnectionCISOApproved

Comments