Entra IDHow-to

Active Directory forest recovery, part 1: planning, backups and readiness

Decide when a forest recovery is the right call, keep the backups and passwords you will need, document the forest, pick a restore DC per domain and rehearse it all in a lab.

A forest-wide Active Directory failure is rare, but when it happens every sign-in, file share, mail flow and management tool stops with it. Whether you are back in hours or in days is decided long before the incident: by the backups you kept, the passwords you can still find, and whether anyone has ever practiced the restore. In this post I'll cover when a full forest recovery is (and isn't) the right answer, and how to get your backups, documentation, people and lab ready for it. Part 2 walks through the step-by-step execution.

How this guide is organized: When a forest recovery is (and isn't) the right call → Prerequisites → Step-by-step → Verify your readiness → Tips and gotchasFlow diagram of the article's sections in reading order: 1. When a forest recovery is (and isn't) the right call. 2. Prerequisites. 3. Step-by-step (7 steps: Back up the right DCs, often enough; Secure the passwords you will need; Document the forest; Choose the DC to restore in each domain; Prepare an isolated recovery network; Assign roles on the recovery team; Test the plan in a lab). 4. Verify your readiness. 5. Tips and gotchas. Toolbox: dsamain.exe.1When a forestrecovery is (a…2Prerequisites3Step-by-step4Verify yourreadiness5Tips andgotchas1Back up theright DCs…2Secure thepassword…3Documentthe forest4Choose theDC to rest…5Prepare anisolated re…6Assignroles on th…7Test theplan in a labTOOLBOXdsamain.exeHow this guide is organized: When a forest recovery is (and isn't) the right call → Prerequisites → Step-by-step → Verify your readiness → Tips and gotchasFlow diagram of the article's sections in reading order: 1. When a forest recovery is (and isn't) the right call. 2. Prerequisites. 3. Step-by-step (7 steps: Back up the right DCs, often enough; Secure the passwords you will need; Document the forest; Choose the DC to restore in each domain; Prepare an isolated recovery network; Assign roles on the recovery team; Test the plan in a lab). 4. Verify your readiness. 5. Tips and gotchas. Toolbox: dsamain.exe.1When a forest recovery is (and isn't) the rightcall2Prerequisites3Step-by-step1Back up the right DCs, often enough2Secure the passwords you will need3Document the forest4Choose the DC to restore in each domain5Prepare an isolated recovery network6Assign roles on the recovery team7Test the plan in a lab4Verify your readiness5Tips and gotchasTOOLBOXdsamain.exe
At a glance: how this guide is organized · 7 steps · 1 key settings and tools

When a forest recovery is (and isn't) the right call#

Is a full forest recovery the right callIs directory data damaged or untrusted on every writable DC? if No, some are fine: Repair or rebuild the broken DCs (Healthy DCs replicate good data back; no restore needed); if Only creds leaked: Reset passwords instead of restoring (Users, computers, trusts, krbtgt and (g)MSAs); if Yes: Is the damage limited to one domain? if Yes: Recover that single domain (Follow the single-domain recovery path); if No, forest-wide: Trusted backup younger than the tombstone lifetime? if Yes: Run a full forest recovery (One restored DC per domain, root first, in isolation); if No: Stop: escalate to support (Expired backups can't be restored safely)Is directory data damaged oruntrusted on every writableDC?OKRepair or rebuildthe broken DCsHealthy DCsreplicate good databack; no restoreneededNo, some are fineNOTEReset passwordsinstead ofrestoringUsers, computers,trusts, krbtgt and(g)MSAsOnly creds leakedIs the damage limited to onedomain?NOTERecover thatsingle domainFollow thesingle-domainrecovery pathYesTrusted backup younger thanthe tombstone lifetime?FIXRun a full forestrecoveryOne restored DC perdomain, root first, inisolationYesSTOPStop: escalate tosupportExpired backupscan't be restoredsafelyNoNo, forest-wideYesIs a full forest recovery the right callIs directory data damaged or untrusted on every writable DC? if No, some are fine: Repair or rebuild the broken DCs (Healthy DCs replicate good data back; no restore needed); if Only creds leaked: Reset passwords instead of restoring (Users, computers, trusts, krbtgt and (g)MSAs); if Yes: Is the damage limited to one domain? if Yes: Recover that single domain (Follow the single-domain recovery path); if No, forest-wide: Trusted backup younger than the tombstone lifetime? if Yes: Run a full forest recovery (One restored DC per domain, root first, in isolation); if No: Stop: escalate to support (Expired backups can't be restored safely)Is directory data damaged or untrusted onevery writable DC?No, some are fineOKRepair or rebuild the broken DCsHealthy DCs replicate good data back; no restoreneededOnly creds leakedNOTEReset passwords instead of restoringUsers, computers, trusts, krbtgt and (g)MSAsYesIs the damage limited to one domain?YesNOTERecover that single domainFollow the single-domain recovery pathNo, forest-wideTrusted backup younger than thetombstone lifetime?YesFIXRun a full forest recoveryOne restored DC per domain, root first, inisolationNoSTOPStop: escalate to supportExpired backups can't be restored safely
Figure 1 · Decision tree Is a full forest recovery the right call. Most AD failures are fixed by repairing DCs, resetting credentials or recovering one domain. A forest restore from backup is the last option when damage is forest-wide.

Restoring a forest means rolling every domain back to the moment of its backup and rebuilding every other domain controller (DC). That makes it the last option, not the first one. Microsoft positions it as the answer only when a forest-wide failure leaves the DCs unable to work normally and other remedies have been ruled out, ideally together with Microsoft Support.

Situations that can justify it:

  • Every DC is logically corrupted or physically damaged and AD-dependent applications no longer work.
  • A script, a bad schema extension or a rogue administrator has spread damage to the directory across the whole forest.
  • An attacker has planted malware on DCs and support has advised a restore from backup.
  • No DC can replicate, no change can be written anywhere and no new DC can be promoted.

Situations that usually don't:

  • One or a few DCs are broken while others are healthy. Repair or rebuild the broken ones; see my replication error codes quick reference.
  • Deleted objects or OUs. Use the Active Directory Recycle Bin or an authoritative restore of the affected subtree.
  • A DC backup or database copy was exposed, but the leaked credentials haven't been used to change anything. Resetting passwords for users, computers, trusts and (group) managed service accounts can be enough.
  • Damage limited to one domain of a multi-domain forest. Microsoft documents a separate single-domain recovery path.

Prerequisites: what has to exist before the bad day#

Beyond the backups, passwords, documentation and network covered in the steps below, you need a written recovery plan that covers forest, domain, object and SYSVOL recovery and is reviewed at least once a year. Also make sure anything that protects DC disks, such as BitLocker recovery keys, can be retrieved without Active Directory.

Step 1: Back up the right DCs, often enough#

Back up at least two writable DCs in every domain on a schedule, so you can fall back to a second backup if the first one fails to restore. A read-only DC (RODC) backup can't be used to restore a writable DC, so don't count RODCs. Use an Active Directory-aware tool such as Windows Server Backup; a hypervisor snapshot alone is not a substitute.

Capture both a system state backup (which holds the directory database and SYSVOL) and a full server or bare-metal backup if you may need to restore onto different hardware. A system state backup can't be restored onto a fresh Windows installation or another server.

Command Prompt
REM System state backup of a DC to a dedicated backup volume
wbadmin start systemstatebackup -backuptarget:E:

REM List the backups you can restore from
wbadmin get versions

Backup age matters. A backup is only usable within the tombstone lifetime (or the deleted object lifetime, if the Recycle Bin is enabled, whichever is shorter). Check the value instead of assuming the default:

PowerShell
$config = (Get-ADRootDSE).configurationNamingContext
Get-ADObject "CN=Directory Service,CN=Windows NT,CN=Services,$config" -Properties tombstoneLifetime |
    Select-Object tombstoneLifetime

Keep a local copy for speed and an offline or immutable copy that a domain admin can't delete. Log AD DS health daily so you can later tell when the damage started.

Tip: Scheduled ntdsutil snapshots give you extra points in time. With the database mounting tool (dsamain.exe) you can browse a snapshot or backup over LDAP to find the last good state without restarting a DC in Directory Services Restore Mode (DSRM).

Step 2: Secure the passwords you will need#

You need the password of a Domain Admin account in every domain (preferably the built-in Administrator) and the DSRM password of each DC you might restore. Archive the history of both for as long as your backups are valid: a two-month-old backup needs the DSRM password from two months ago.

To make DSRM passwords manageable, synchronize them with a dedicated domain account in advance. Run this on each DC:

Command Prompt
ntdsutil "set dsrm password" "sync from domain account DSRMSync" q q

Keep them in an offline vault that doesn't need Active Directory to open.

Step 3: Document the forest#

Write down the structure you will rebuild. For each domain, list every DC with:

ItemWhy you need it during recovery
Name, OS, site, physical or virtualWhich DCs to isolate, restore or rebuild, and whether virtual DC cloning is an option
Operations master (FSMO) rolesRoles are seized on the restored DC and redistributed afterwards (netdom query fsmo)
Global catalog, DNS server, RODCRestoring the original DNS and GC layout after the forest is back
Backup status and last good backupPicking the restore candidate quickly
IP addresses and DNS client settingsReconfiguring name resolution in the isolated network

Add the trusts (direction, type, partner domain), the DNS zones and forwarders, and the applications that write to AD: Microsoft Entra Connect or Entra Cloud Sync, Exchange Server, Configuration Manager, PKI and backup software. The forest root list matters most, because the root domain is recovered first.

Step 4: Choose the DC to restore in each domain#

You restore exactly one writable DC per domain and rebuild the rest. Ideally, nominate a dedicated restore DC per domain and test with it, so the real recovery uses the same configuration you rehearsed. Good candidates are:

  • Writable (mandatory), with a good full server backup.
  • Virtual, on a hypervisor that supports VM-GenerationID, so it can later be the source for cloning.
  • Running a current Windows Server version with the desktop experience.
  • A DNS server that hosts the forest and domain zones.
  • Easy to isolate, typically in a datacenter.
  • Not dependent on BitLocker Network Unlock as its only key protector: on the first restored DC there is no working AD to unlock it.

Don't pick a FSMO role holder just to avoid seizing roles; you seize all roles anyway. The exception is SYSVOL: the PDC emulator usually holds the best copy of the Group Policy files. Choose a backup taken a few days before the failure: newer backups lose less data but are more likely to contain whatever caused the failure.

Step 5: Prepare an isolated recovery network#

The restored DCs must never talk to a surviving, possibly damaged writable DC. Plan for this up front:

  • A virtual network or VLAN with no route to production, sized for one DC per domain plus admin workstations.
  • Out-of-band or remote management access to shut down every writable DC, including those in remote sites.
  • A time source for the forest root PDC emulator inside the isolated network.

RODCs can keep serving cached sign-ins in branch sites during the recovery, because no DC replicates changes from them. They are rebuilt once the writable DCs are back.

Step 6: Assign roles on the recovery team#

Name people, and a deputy for each, before you need them:

  • Incident lead: owns the go/no-go decision, the chosen backup date and stakeholder updates.
  • AD recovery engineers: one per domain, following the runbook in order.
  • Backup and virtualization admins: locate backups, restore VMs and manage snapshots.
  • Network team: builds and polices the isolated network and the reconnection.
  • Security team: decides which credentials, trusts and gMSAs must be reset if the cause was an attack.
  • Application owners: Entra Connect, Exchange, Configuration Manager and others, ready for their own clean-up.

Step 7: Test the plan in a lab#

Practice at least once a year, and again after major changes such as new domains, OS upgrades or changes to Enterprise Admins or Domain Admins membership. Restore real production backups into a fully isolated lab, follow the runbook word for word, time each phase and fix the gaps. It is also the only real proof that your backups restore.

Watch out: A lab built from production backups contains every password hash in the forest. Protect it like a DC: Tier 0 access only, no route to production or the internet, and destroy it after the exercise.

Verify your readiness#

You are ready when you can answer yes to each of these:

  • Every domain has at least two writable DCs with restorable backups younger than the tombstone lifetime.
  • The DSRM and Administrator passwords for those backups can be retrieved without Active Directory.
  • The forest map, FSMO layout and trust list are current, and a restore DC is named per domain.
  • The isolated network exists and the team has restored the forest in the lab within the last year.

Tips and gotchas#

References#

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

M365 Subject Matter Expert, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)