Directory Services Restore Mode in Windows 2000
Directory Services Restore Mode (DSRM) is a specialized boot mode in Microsoft Windows 2000 Server designed to take Active Directory offline for critical maintenance, repair, and recovery tasks. Because the Active Directory database locks during standard domain controller operations, administrators use DSRM to boot into an environment where the database is dismounted. This article explains the core functions of DSRM, why it is essential for disaster recovery, and how it is accessed and secured.
Active Directory Database Restoration
The primary purpose of DSRM is to restore the Active Directory
database (NTDS.dit) and the System State. Under normal
operation on a Windows 2000 domain controller, Active Directory runs
continuously, preventing write access or rollbacks to the database
files. In DSRM, the server boots without starting Active Directory
services, allowing backup utilities such as NTBACKUP to
overwrite the existing database with a previously saved backup.
Administrators use this environment to perform two types of restores:
- Non-Authoritative Restore: Restores the directory database to the state of the backup. Once the server reboots normally, it replicates newer updates from other domain controllers on the network.
- Authoritative Restore: Uses the command-line
utility
NTDSUTILin conjunction with a restore to designate specific objects (such as accidentally deleted organizational units or users) as authoritative. This ensures that the restored objects replicate out to overwrite newer changes across the entire domain.
Offline Database Maintenance
Over time, the Active Directory database accumulates white space from deleted objects and tombstone expirations. DSRM allows administrators to perform offline maintenance tasks that cannot run while the directory is online:
- Offline Defragmentation: Using
NTDSUTIL, administrators can compact the database file, reducing its physical size on disk and improving directory performance. - Integrity Checks and Semantic Analysis: Administrators can test the database for corruption and repair structural errors within the Extensible Storage Engine (ESE) architecture.
Isolation and Troubleshooting
DSRM acts as a targeted safe mode for domain controllers. If the Active Directory database becomes severely corrupted, a domain controller may encounter boot loops or blue-screen stop errors during normal startup. Booting into DSRM isolates the operating system from the directory services, allowing administrators to access the local file system, inspect event logs, and repair corrupt files without the system crashing.
Authentication and Access
Because Active Directory is offline in DSRM, standard domain accounts
cannot be authenticated. Instead, DSRM relies on a separate, local SAM
database. Access requires the DSRM Administrator password, which is
originally configured when the server is promoted to a domain controller
using DCPROMO.
To enter DSRM in Windows 2000:
- Restart the server.
- Press F8 during early startup to open the Windows 2000 Advanced Options Menu.
- Select Directory Services Restore Mode (Windows 2000 domain controllers only).
- Log on using the local username
Administratorand the dedicated DSRM password.