Windows 2000 Registry Backup During Setup

During the installation of Microsoft Windows 2000, the operating system constructs its core configuration databases and establishes a baseline recovery mechanism. This article explains how Windows 2000 initializes, configures, and automatically backs up system registry hives to the repair directory during the setup phases to protect against boot failures and system corruption.

Initialization of Core Registry Hives

During text-mode setup, the Windows 2000 installer prepares the target disk and initializes the primary system registry hives. Rather than creating these structures from scratch, Setup utilizes template files located on the installation media:

  • System Setup Templates: Setup loads a temporary hive called Setupreg.hiv into memory to track installation progress, hardware detection, and driver configurations.
  • Primary Target Directory: Once the partition is formatted and basic files are copied, Setup creates the definitive active registry hives (SYSTEM, SOFTWARE, SAM, SECURITY, and DEFAULT) in the %SystemRoot%\System32\Config directory.

Creation of the Repair Backup Directory

As the installation transitions toward completion, Windows 2000 generates a baseline snapshot of the registry to facilitate future recovery:

  1. Populating %SystemRoot%\Repair: After hardware configuration and core services are written to the active hives, Setup copies these initial hive files directly into the %SystemRoot%\Repair folder.
  2. Baseline Configuration State: The files placed in %SystemRoot%\Repair reflect the system state immediately following installation, stripped of user-specific configurations, third-party software, or post-install updates.
  3. Setup Log Creation: Along with the backup hives, Setup generates setup.log in the %SystemRoot%\Repair directory. This file maintains an inventory of all installed system files along with checksums, which works in tandem with the registry backups to verify system integrity during repairs.

Role in the Emergency Repair and Recovery Console

The backup hives created during setup serve as the fallback mechanism for two primary recovery utilities built into Windows 2000:

  • Recovery Console: If the active registry in System32\Config becomes corrupted, an administrator can boot into the Recovery Console and manually copy the baseline hives from the Repair folder back to the Config folder to restore boot functionality.
  • Emergency Repair Disk (ERD): Setup prepares the system so that administrators can later format an ERD. The initial repair hives provide the base template that the ERD process relies on to restore default security settings and system configurations.

Post-Installation Management

Once the setup wizard completes the final reboot into the graphical interface, the operating system stops updating the %SystemRoot%\Repair directory automatically. From that point forward, the backup hives created during initial setup remain static unless updated manually by the administrator using the Windows 2000 Backup utility (NTBackup.exe), which writes updated backups to a RegBack subfolder within the repair directory.