What to back up
- System state of at least two DCs per domain: the AD database (
ntds.dit), SYSVOL, registry, boot files, COM+ and, on CAs, the certificate database. - Back up more often than the tombstone lifetime (180 days) allows, ideally daily. A backup older than that cannot be restored.
- GPOs separately with
Backup-GPO, so you can restore one policy without touching AD. - DNS zones are inside AD if they are AD-integrated; export them too for quick reference (
dnscmd /zoneexport). - Store the DSRM password and backups offline and away from the domain they protect. Ransomware goes after backups first.
Install-WindowsFeature Windows-Server-Backup
wbadmin start systemstatebackup -backupTarget:E: -quiet
wbadmin get versions
Undo a deletion: AD Recycle Bin
With the Recycle Bin on (forest feature, cannot be turned off), deleted objects keep all attributes and group memberships for the deleted object lifetime (180 days by default).
Enable-ADOptionalFeature 'Recycle Bin Feature' -Scope ForestOrConfigurationSet -Target corp.contoso.com
Get-ADObject -Filter 'isDeleted -eq $true -and Name -like "*Alice*"' -IncludeDeletedObjects
Get-ADObject -Filter 'samAccountName -eq "alice"' -IncludeDeletedObjects | Restore-ADObject
Restore parents (OUs) before children. In ADAC, open the Deleted Objects container and choose Restore or Restore To. Without the Recycle Bin, tombstone reanimation (Sysinternals AdRestore) recovers the object but loses most attributes.
Restore types
| Type | What happens | Use when |
|---|---|---|
| Non-authoritative | The DC gets its database from backup, then replication brings it up to date from partners. | A DC's database is corrupt but other DCs are healthy. Often easier: rebuild the DC instead. |
| Authoritative | After a non-authoritative restore, chosen objects get a higher version number so they win over the copies on other DCs. | Objects or OUs were deleted and there is no Recycle Bin. |
| SYSVOL authoritative | DFSR on one DC is marked authoritative (msDFSR-Options = 1), others non-authoritative. | SYSVOL is broken or out of sync everywhere. |
| Forest recovery | Restore one DC per domain from a clean backup, isolate it, clean up, then rebuild all other DCs. | Forest-wide corruption or compromise. |
Authoritative restore, step by step
- Restart the DC into Directory Services Restore Mode:
bcdedit /set safeboot dsrepairthen restart, and log on with.\Administratorand the DSRM password. - Restore the system state:
wbadmin start systemstaterecovery -version:12/04/2026-02:00. - Before restarting, mark what must win:
ntdsutil activate instance ntds authoritative restore restore object "CN=Alice Smith,OU=Users,OU=Corp,DC=corp,DC=contoso,DC=com" restore subtree "OU=Finance,OU=Corp,DC=corp,DC=contoso,DC=com" quit quit - Run the LDIF files ntdsutil writes to restore back-links such as group memberships in other domains.
- Leave DSRM:
bcdedit /deletevalue safeboot, restart, then check withrepadmin /showobjmetathat the restored objects replicate out.
AD snapshots and the database mounting tool
Snapshots let you browse an earlier copy of the directory and compare or copy attributes without a restore.
ntdsutil snapshot "activate instance ntds" create quit quit
ntdsutil snapshot "list all" "mount {GUID}" quit quit
dsamain -dbpath "C:\$SNAP_...\Windows\NTDS\ntds.dit" -ldapport 50000
# then connect ADUC, ADAC, LDP or AD Explorer to localhost:50000
DCs on virtual machines
- Hypervisors that expose VM-GenerationID let a DC detect a revert and reset its invocation ID, which prevents USN rollback. Still, treat snapshots as a lab tool, not a backup.
- Use application-aware backups that call VSS inside the guest.
- DC cloning (
New-ADDCCloneConfigFile, membership in Cloneable Domain Controllers) is a supported way to deploy new DCs from a copy.
Forest recovery in one paragraph
Practice it before you need it. Pick one clean backup per domain, restore on isolated networks, seize FSMO roles, reset the krbtgt password twice and every privileged password, clean metadata of every other DC, raise RID pools, reconnect domains and only then add rebuilt DCs. Microsoft's Active Directory Forest Recovery Guide has the full checklist; keep a printed copy, since the wiki may be in the domain you lost.