Active Directory backup and recovery

The AD Recycle Bin gets you out of small mistakes. For the big ones, like a corrupted database, a whole OU deleted before anyone noticed or a DC that dies while holding every FSMO role, you need Active Directory backup and the skill to restore from it under pressure.

You’ll add a backup disk to DC01, take a system state backup and restore a deleted OU authoritatively in Directory Services Restore Mode. After that you’ll pretend a DC has died, seize its FSMO roles and clean up its metadata.

TimeYou needBy the end you can
About 2 hoursDC01 and DC02 from Lesson 31, your DSRM password from Lesson 11, and about 20 GB of laptop disk spaceBack up system state with wbadmin, boot into DSRM, run non-authoritative and authoritative restores, seize FSMO roles and clean up a dead DC

What it is, in one line

Active Directory backup is a copy of a DC’s system state (the AD database, SYSVOL, registry and boot files) that lets you rebuild a DC or bring back deleted objects.

In Simple Words

Photocopies of the school register

Every evening the school secretary photocopies the register and locks the copy in a safe. If someone tears out a page, she can’t paste the old page back, because the other office has a newer register and they’d “correct” her straight back. So she stamps the restored page “THIS ONE WINS”, and now both offices accept it; that stamp is an authoritative restore. If one secretary leaves for good, the other officially takes over her duties and crosses her name off the staff list, which is what seizing FSMO roles and metadata cleanup look like.

Engineer's View

System state, DSRM, restore types, FSMO

System state on a DC covers the AD database (ntds.dit), SYSVOL, the registry, the boot files and COM+ data, and Windows Server Backup (wbadmin) backs it up to a separate volume or share. You can’t restore a backup that’s older than the tombstone lifetime (180 days), which is why DCs get backed up daily.

DSRM (Directory Services Restore Mode) boots a DC with AD offline, and you sign in with the local DSRM administrator password that was set at promotion. This is where restores happen.

Restore types: a non-authoritative restore takes the DC back to the backup point, and then normal replication brings in the newer changes from its partners, deletions included. An authoritative restore (ntdsutil “authoritative restore”) raises the version numbers on the objects you pick, so they win and replicate out, and back-links such as group memberships come back through the LDF files ntdsutil creates. If the Recycle Bin is enabled and the objects are still within the deleted object lifetime, the Recycle Bin is the faster route.

FSMO: transfer roles from a DC that’s working, and seize them only when the holder is dead for good, after which it must never come back. Then clean up its metadata (deleting the DC object in ADUC or ADSS does this) and its DNS records.

How it works, step by step

Here’s why a normal restore isn’t enough to bring back a deleted OU:

Active Directory backup: why a deleted OU needs an authoritative restore

DC02 still holds the deletion, and the deletion is newer than the restored copy, so without the authoritative mark replication deletes the OU again within minutes.

Here’s the recovery toolkit you’ll practise:

Active Directory backup recovery toolkit: wbadmin, DSRM, ntdsutil and FSMO seizure
  1. Backup disk E: on DC01 and a system state backup.
  2. Delete a test OU with users, as if by mistake.
  3. DSRM boot, restore system state, mark the OU authoritative.
  4. Snapshot both DCs, then “lose” DC01: seize FSMO on DC02 and clean up.
  5. Roll back both DCs to the snapshot so the course continues normally.

Hands-on Lab: Active Directory backup and authoritative restore

Before you run any command, double-check it

Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.

You’ll work on DC01 and DC02 as SAATLAB\adm.rahul in PowerShell as administrator, and use your laptop for the VirtualBox commands.

1Add a backup disk to DC01

Shut down DC01, then on your laptop run:

VBoxManage storagectl DC01 --name SATA --portcount 4
VBoxManage createmedium disk --filename C:\Lab\VMs\DC01\DC01-backup.vdi --size 20480
VBoxManage storageattach DC01 --storagectl SATA --port 2 --device 0 --type hdd --medium C:\Lab\VMs\DC01\DC01-backup.vdi
VBoxManage startvm DC01

On DC01, bring the disk online as E: and install Windows Server Backup:

Get-Disk | Where-Object PartitionStyle -eq 'RAW' | Initialize-Disk -PartitionStyle GPT -PassThru |
    New-Partition -DriveLetter E -UseMaximumSize | Format-Volume -FileSystem NTFS -NewFileSystemLabel Backup -Confirm:$false | Out-Null
Install-WindowsFeature Windows-Server-Backup | Select-Object Success, ExitCode

You should see something like this:

Success ExitCode
------- --------
True    Success

✅ Checkpoint: DC01 has an E: drive labelled Backup and Windows Server Backup installed.

2Create test data and back up the system state

On DC01, create an OU with users, then back up:

New-ADOrganizationalUnit -Name Projects -Path 'OU=SAATLAB,DC=saatlab,DC=internal' -ProtectedFromAccidentalDeletion $false
1..3 | ForEach-Object { New-ADUser -Name "Project User $_" -SamAccountName "proj.user$_" -Path 'OU=Projects,OU=SAATLAB,DC=saatlab,DC=internal' }
repadmin /syncall DC01 /AdeP | Select-Object -Last 1
wbadmin start systemstatebackup -backupTarget:E: -quiet

You should see something like this (it takes 10 to 20 minutes):

SyncAll terminated with no errors.
wbadmin 1.0 - Backup command-line tool
(C) Copyright Microsoft Corporation. All rights reserved.

Starting System State Backup [19/10/2026 23:05]
Retrieving volume information...
This will back up the system state from volume(s) Local Disk(C:) to E:.
Starting System State Backup [19/10/2026 23:05]
...
The backup operation successfully completed.

List the backup and make a note of its version identifier:

wbadmin get versions

You should see something like this:

Backup time: 19/10/2026 23:18
Backup target: Fixed Disk labeled Backup(E:)
Version identifier: 10/19/2026-17:48
Can recover: Volume(s), File(s), Application(s), System State
Snapshot ID: {6b0d...}

The version identifier uses UTC time in month/day/year format. Copy it exactly, because you’ll need it in step 4.

✅ Checkpoint: wbadmin get versions lists a system state backup on E: with its version identifier.

3Delete the OU, as if by mistake

On DC01:

Remove-ADOrganizationalUnit 'OU=Projects,OU=SAATLAB,DC=saatlab,DC=internal' -Recursive -Confirm:$false
repadmin /syncall DC01 /AdeP | Select-Object -Last 1
Get-ADOrganizationalUnit -Filter "Name -eq 'Projects'" -Server DC02

The last command returns nothing, which means the deletion has reached DC02. In this lab the Recycle Bin from Lesson 12 could bring the OU back, and at work you’d try that first, but here you’ll practise the authoritative restore you’d need if the Recycle Bin were off or the objects were too old.

✅ Checkpoint: The Projects OU is gone from both DCs.

4Restore authoritatively in DSRM

On DC01, set the next boot to DSRM and restart:

bcdedit /set safeboot dsrepair
Restart-Computer

At the sign-in screen choose Other user and sign in as .\Administrator with the DSRM password, not your domain password. AD isn’t running, so no domain account can sign in.

In DSRM, restore the system state (use your version identifier):

wbadmin start systemstaterecovery -version:10/19/2026-17:48 -quiet

When it finishes, don’t restart yet, because you need to mark the OU as authoritative first:

Still in DSRM:

ntdsutil "activate instance ntds" "authoritative restore" "restore subtree \"OU=Projects,OU=SAATLAB,DC=saatlab,DC=internal\"" q q

Answer Yes in the confirmation box, and you should see something like this:

Opening DIT database... Done.
The current time is 10-19-26 23:41.21.
Most recent database update occurred at 10-19-26 23:18.04.
Increasing attribute version numbers by 100000.
Counting records that need updating...
Records found: 0000000004
Done.
Found 4 records to update.
Updating records...
Records remaining: 0000000000
Done.
Successfully updated 4 records.
The following text file with a list of authoritatively restored objects has been created in the current working directory:
        ar_20261019-234121_objects.txt
One or more specified objects have back-links in this domain. The following LDIF files with link restore operations have been created in the current working directory:
        ar_20261019-234121_links_saatlab.internal.ldf
Authoritative Restore completed successfully.

Now leave DSRM and restart normally:

bcdedit /deletevalue safeboot
Restart-Computer

Back in normal mode, on DC01:

repadmin /syncall DC01 /AdeP | Select-Object -Last 1
Get-ADUser -Filter * -SearchBase 'OU=Projects,OU=SAATLAB,DC=saatlab,DC=internal' -Server DC02 | Select-Object -ExpandProperty Name

You should see something like this:

SyncAll terminated with no errors.
Project User 1
Project User 2
Project User 3

Four records come back: the OU and three users. Their version numbers jumped by 100,000, so DC02 accepted them as newer than its deletion. If the users had been in groups, you’d import the LDF file with ldifde -i -f ar_..._links_saatlab.internal.ldf to get the memberships back.

✅ Checkpoint: The Projects OU and its three users are back on DC01 and DC02.

Active Directory backup lab: ntdsutil authoritative restore of the Projects OU
ntdsutil marks the OU and its users as newer than any other copy.

5Simulate a dead DC: seize FSMO roles and clean up

Shut down both DCs and take a safety snapshot from your laptop:

'DC01','DC02' | ForEach-Object { VBoxManage snapshot $_ take "Before seize" }
VBoxManage startvm DC02

Leave DC01 off (it has “died”). On DC02, as SAATLAB\adm.rahul:

netdom query fsmo
Move-ADDirectoryServerOperationMasterRole -Identity DC02 -OperationMasterRole SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster -Force
netdom query fsmo

You should see something like this (the first query may take a while, because DC01 is unreachable):

Schema master               DC02.saatlab.internal
Domain naming master        DC02.saatlab.internal
PDC                         DC02.saatlab.internal
RID pool manager            DC02.saatlab.internal
Infrastructure master       DC02.saatlab.internal
The command completed successfully.

PowerShell couldn’t reach DC01, so it tried a transfer, failed, and seized each role because of -Force. Next, remove DC01 from AD: in Active Directory Users and Computers on DC02, open Domain Controllers, delete DC01, tick This Domain Controller is permanently offline and confirm, which runs metadata cleanup for you.

Last of all, delete DC01’s leftover records in DNS Manager.

Then roll both DCs back so you have two healthy DCs for the rest of the course:

VBoxManage controlvm DC02 poweroff
'DC01','DC02' | ForEach-Object { VBoxManage snapshot $_ restore "Before seize" }

Restoring both DCs to the same snapshot is safe. Restoring only one DC from an old snapshot causes USN rollback, which is a serious replication problem, so never do that to a real DC.

✅ Checkpoint: DC02 held all five roles after the seize, DC01 was removed as a DC, and both VMs are back at “Before seize”.

Break It, Then Fix It

These two recovery mistakes waste hours during a real outage: restoring without the authoritative step, and not knowing the DSRM password.

1Break it: a restore that undoes itself

Delete the Projects OU again (step 3), then restore in DSRM but this time skip ntdsutil:

bcdedit /set safeboot dsrepair; Restart-Computer
# in DSRM:
wbadmin start systemstaterecovery -version:10/19/2026-17:48 -quiet
bcdedit /deletevalue safeboot; Restart-Computer

Back in normal mode, check straight away and then again after replication:

Get-ADOrganizationalUnit -Filter "Name -eq 'Projects'" | Select-Object Name
repadmin /syncall DC02 /AdeP | Select-Object -Last 1
Get-ADOrganizationalUnit -Filter "Name -eq 'Projects'" | Select-Object Name

You’ll see something like this:

Name
----
Projects
SyncAll terminated with no errors.

The OU came back for a moment and then disappeared, and the second query returned nothing. DC01 came back with its old copy, DC02 replicated its newer deletion to DC01, and the deletion won. That’s what a non-authoritative restore is supposed to do: bring a DC back and let it catch up.

Fix it: repeat the DSRM restore and run the authoritative restore before restarting (step 4).

✅ Checkpoint: After a non-authoritative restore the OU disappeared again, and after the authoritative one it stayed.

Active Directory backup lab: OU disappears again after a non-authoritative restore
Without the authoritative step, replication from DC02 deletes the restored OU all over again.

2Break it: the forgotten DSRM password

Restart DC01 into DSRM (bcdedit /set safeboot dsrepair) and sign in as .\Administrator with a wrong password.

You’ll get an error like this:

The user name or password is incorrect. Try again.

A lot of teams find out in the middle of an outage that nobody wrote down the DSRM password set years ago. Without it you can’t restore that DC, and you can’t fix it from DSRM either, because you can’t sign in.

In the lab, restart DC01 from the VirtualBox window and let it boot normally once you’ve removed the DSRM flag, or restore the “Before seize” snapshot of both DCs.

Fix it: from normal mode, reset the DSRM password on each DC and keep it in your vault:

bcdedit /deletevalue safeboot      # run in normal mode if the boot flag is still set
ntdsutil "set dsrm password" "reset password on server null" q q

You should see something like this:

Reset DSRM Administrator Password: set dsrm password
Reset DSRM Administrator Password: reset password on server null
Please type password for DS Restore Mode Administrator Account: ********
Please confirm new password: ********
Password has been set successfully.

✅ Checkpoint: You were refused with a wrong DSRM password, reset it with ntdsutil, and recorded the new one.

This happened at work

The backup that was too old to use

At one company the only DC with a backup agent was rebuilt after a disk failure, and then the AD database on the rebuilt server turned out to be corrupt. The plan sounded easy: restore last night’s system state. But there was no last night. The backup job had been failing for eight months because the target disk was full, and the alerts were going to someone who’d left. The newest good system state backup was 240 days old, older than the 180-day tombstone lifetime, so it couldn’t be used, because restoring it would have brought back deleted objects and broken replication. In the end the team rebuilt the DC by promoting a fresh server from the remaining healthy DC and cleaning up the old one’s metadata, and that only worked because a second DC existed.

The fix: they now back up system state daily on two DCs, send a weekly report of backup age, alert if any backup is older than two days, and run a restore test in an isolated lab every quarter.

The lesson: an AD backup older than the tombstone lifetime is no use to you, so test both that the backups run and that they restore.

Common mistakes and troubleshooting

Mistake or symptomWhat happensWhat to do instead
Restored OU disappears againNon-authoritative restore; newer deletion replicates backAuthoritative restore of the subtree in DSRM
Group memberships missing after authoritative restoreBack-links weren’t restoredImport the ar_…_links LDF file with ldifde
DSRM password unknownCan’t restore that DCReset with ntdsutil “set dsrm password”; store in a vault
Backups older than 180 daysCan’t be restored safelyDaily DC backups and alerts on backup age
Restoring a single DC from a VM snapshotUSN rollback; replication breaks quietlyUse system state backups; never revert one DC alone
Seizing roles while the old holder may returnTwo DCs think they own a roleSeize only when the old DC is gone for good
Forgetting metadata cleanupReplication errors and clients trying a dead DCDelete the DC object (permanently offline) and its DNS records
Ignoring the Recycle Bin optionSlow DSRM restores for simple deletionsUse Restore-ADObject first when it’s enabled
Never testing a restoreSurprises during a real outageQuarterly restore tests in an isolated lab

Interview questions

Click a question to open it. Each one is phrased the way an interviewer would ask it, and underneath you’ll find why they ask it and one way you could answer in your own words.

Fresher level

1. When you take a system state backup of a domain controller, what actually gets saved?

Why they ask this: They want to know you understand what a DC backup holds and that it’s enough to bring Active Directory back on that server.

How you might answer: System state on a DC includes the AD database, SYSVOL, the registry, the boot files and the COM+ registration. Together that is enough to restore Active Directory on that domain controller, so it’s the part I make sure is in every DC backup.

2. Can you explain in simple words what DSRM is and when you would use it?

Why they ask this: They want to check that you know the special recovery mode for a DC, and how you get into it when AD itself is the thing that’s broken.

How you might answer: DSRM is Directory Services Restore Mode, a boot mode where Active Directory is offline so I can restore or repair the database. Because AD isn’t running I can’t use a domain account, so I sign in with the local DSRM password instead.

3. A manager calls and says someone deleted a user account ten minutes ago. The AD Recycle Bin is turned on. How do you get it back?

Why they ask this: They want to see that you pick the quick, safe fix first and don’t jump to a full restore when you don’t need one.

How you might answer: With the Recycle Bin on, I don’t need DSRM or a backup at all. I’d find the account with Get-ADObject -IncludeDeletedObjects, filtering on the user’s name, pipe it to Restore-ADObject, and then ask the user to sign in and check everything works.

2–5 years experience

4. What’s the difference between an authoritative and a non-authoritative restore, and when would you pick each?

Why they ask this: They want to know you understand how replication treats restored data, because picking the wrong type can mean your restored objects get deleted again.

How you might answer: A non-authoritative restore puts the DC back to the backup point, and then normal replication brings it up to date from its partners. I’d use that when a single DC is damaged but the rest of AD is fine.

An authoritative restore raises the version numbers on the objects I choose, so they replicate out and overwrite the newer deletions or changes. I’d use that when someone deleted objects and the deletion has already spread to the other DCs.

5. A domain controller that holds FSMO roles has gone down. How do you decide whether to transfer the roles or seize them?

Why they ask this: They want to see that you follow the rules here, because seizing roles from a DC that later comes back can cause real damage.

How you might answer: If the role holder is online, I transfer the roles, because that’s the clean, safe way. I seize only when the DC is lost for good, and after that the old DC must never come back on the network, so I clean its metadata out of AD.

6. Someone on your team reverted a domain controller VM to an old snapshot. Why does that worry you?

Why they ask this: They want to know whether you understand USN rollback, a quiet failure that breaks replication without any obvious errors.

How you might answer: Because it can cause USN rollback. The DC goes back to an old state and reuses update sequence numbers, so its partners think they’ve already seen those changes and ignore them. The real answer is prevention, we don’t revert DCs. VM-GenerationID helps on supported hypervisors, but I wouldn’t rely on it as the plan.

Senior level

7. Say you join a company with one forest and 12 domain controllers, and there’s no real AD backup plan. What would you put in place?

Why they ask this: They want to see you think about the whole forest and not one server, and that you remember testing, retention and offline copies.

How you might answer: I’d back up system state every day on at least two DCs per domain, including the forest root and the FSMO role holders. I’d keep retention under the tombstone lifetime and keep offline or immutable copies so an attacker can’t delete them.

I’d also make sure the Recycle Bin is on and the DSRM passwords are documented. Then I’d write the forest recovery steps and actually test them, because a plan nobody has tested is just a guess.

8. It’s Monday morning and ransomware has encrypted every domain controller. Walk me through how you’d recover.

Why they ask this: They want to know if you understand forest recovery and can work in the right order during the worst kind of outage.

How you might answer: First I’d isolate the network so the attack can’t spread further. Then I’d restore one DC per domain from a known-good backup into an isolated environment, seize the roles there and clean up the old DCs.

Before reconnecting anything, I’d reset the krbtgt password twice and reset privileged passwords. Then I’d rebuild the other DCs and reconnect carefully, following Microsoft’s forest recovery guide.

9. You did an authoritative restore of some users, but their group memberships are missing. How do you fix that?

Why they ask this: They want to see that you know the back-link detail, which many people miss until users complain they’ve lost access.

How you might answer: Group memberships are stored as links on other objects, so restoring the users doesn’t bring them back on its own. During the authoritative restore ntdsutil writes LDF files listing those links for the restored objects, and I’d import them with ldifde on a DC to rebuild the memberships.

Quick quiz

Q1. Where must you sign in to restore AD from backup?

  1. Normal mode as Domain Admin
  2. DSRM with the DSRM password
  3. Safe mode with networking
Show answer

B — AD is offline in DSRM.

Q2. Why did the OU vanish after the first restore in Break It?

  1. The backup was corrupt
  2. It was non-authoritative, so DC02’s newer deletion won
  3. DSRM failed
Show answer

B — Mark it authoritative.

Q3. What did ntdsutil add to the restored objects’ version numbers?

  1. 10
  2. 100,000
  3. 1
Show answer

B — So they win over newer changes.

Q4. When is seizing an FSMO role correct?

  1. Whenever it’s faster
  2. When the role holder is permanently gone
  3. During every patch window
Show answer

B — Transfer otherwise.

Q5. In the work story, why was the backup useless?

  1. Wrong format
  2. It was older than the tombstone lifetime
  3. It was encrypted
Show answer

B — Backups must be recent and tested.

Quick recap

  • Active Directory backup means daily system state backups of DCs, kept within the 180-day tombstone lifetime.
  • Restores happen in DSRM with the DSRM password.
  • Non-authoritative restores catch up from partners, while authoritative restores (ntdsutil) make the objects you choose win.
  • Restore back-links with the LDF files ntdsutil creates.
  • Transfer FSMO roles normally, seize them only from a dead DC and then clean up its metadata.
  • Never revert a single DC from a snapshot, and test your restores regularly.

Next lesson

Lesson 33: Trusts → Next you’ll build a second forest, set up conditional DNS forwarding, create a forest trust with selective authentication, grant access across it and fix trust failures.

Further reading: Active Directory backup

Want to go deeper into Active Directory backup? Microsoft’s forest recovery guide covers worst-case recovery, and the article on restoring deleted accounts and groups explains authoritative restore and back-links. You can also see the full plan for this course on the Windows Server Administration course page.

Scroll to Top

This website uses cookies

We use a few cookies to keep this site working. If you allow it, we also use Google Analytics to count visits so we can improve our lessons. You can accept all, deny the optional ones, or choose what to allow.