Directory Services Restore Mode
What is DSRM?
Directory Services Restore Mode (DSRM) is a special boot mode for repairing or recovering Active Directory. It is used to log on to the computer when Active Directory has failed or needs to be restored.
Note: Do not confuse DSRM with Safe Mode. Active Directory will still attempt to start in Safe Mode and if it fails you will not be able to log on. Instead use DSRM.
You can log on to DSRM by using a special DSRM password that you set when you promoted the domain controller. Use the logon account name .\Administrator (language may vary).
DSRM is only needed when Active Directory is so damaged that you cannot log on using your normal AD Administrator password. Use DSRM when doing a domain-wide restore or a forest-wide restore when AD is so damaged that it will not boot normally.
How to Log on to DSRM
After booting DSRM (see below) click on Switch User -> Other User. When prompted for the logon account name type .\Administrator
The initial logon prompt will show the account name MyDomain\Administrator, where MyDomain is the name of the domain. This is incorrect and will not work. You must click on Switch User and manually type the name .\Administrator.
If You Lost the DSRM Password
If you forgot the DSRM password for the .\Administrator account you can reset it using ntdsutil. See Reset DSRM Password. This requires a working Active Directory.
If Active Directory is also not working you can reset the DSRM password by using a standard desktop PC lost-password recovery tool:
- Windows Server 2016-2022 (Windows 10 and Windows 11 recovery tools)
- Windows Server 2012 R2 (Windows 8.1 recovery tools)
- Windows Server 2012 (Windows 8 recovery tools)
- Windows Server 2008 R2 (Windows 7 recovery tools)
If after you boot DSRM you need to recover your Active Directory password for the Domain Administrator account see Changing a Lost Domain Administrator Password.
How to Boot DSRM: F8 Key
To manually boot in Directory Services Restore Mode, press the F8 key repeatedly. Do this immediately after BIOS POST screen, before the Windows logo appears. (Timing can be tricky; if the Windows logo appears you waited too long.) A text menu menu will appear. Use the up/down arrow keys to select Directory Services Restore Mode or DS Restore Mode. Then press the Enter key.
Windows 8 or later: The F8 key is disabled on desktop editions of Windows 8 or later. If you want to boot into Safe Mode, run msconfig and select Minimal. Then reboot.
How to Boot DSRM: msconfig.exe
You can configure Windows to boot DSRM using msconfig.exe:
- Press WIN+R.
- In the Open box type msconfig and click OK. This will show the System Configuration dialog box.
- Click on the tab Boot (top).
- Under “Boot options” check the box Safe boot.
- Select Active Directory repair and click OK.
- Reboot the computer: Click on Start (or press WIN+X -> Shut down or sign out -> Restart.
This will boot the computer into DSRM.
To boot normally, reverse the procedure:
- Press WIN+R.
- In the Open box type msconfig and click OK. This will show the System Configuration dialog box.
- Click on the tab Boot (top).
- Under “Boot options” uncheck the box Safe boot and click OK.
- Reboot the computer: Click on Start (or press WIN+X -> Shut down or sign out -> Restart.
This will boot the computer back into normal mode.
How to Boot DSRM: Bcdedit
On Windows Server 2008 or later you can run bcdedit inside of an administrative console:
- To boot DSRM, type the command bcdedit /set safeboot dsrepair, then reboot: shutdown /r /f /t 5.
- When you are ready to boot normally, type bcdedit /deletevalue safeboot, then reboot: shutdown /r /f /t 5.
You can use this procedure when a graphical user interface (GUI) is not available (e.g., on Server Core).
For more information
See also Changing the Domain Administrator Password.
U-Move protects your Active Directory domain controller by offering strong backup and recovery protection, along with advanced upgrade capability.
U-Move for Active Directory |