Fix Windows Boot Issues Using Regedit in WinPE

When a Windows computer fails to start due to corrupted settings, misconfigured services, or incompatible drivers, you can use the Windows Recovery Environment (WinPE/WinRE) to repair the system registry offline. Because the standard registry tools load the temporary recovery environment by default, you must manually load the offline registry hives from your main Windows installation drive to make the necessary repairs and restore normal system startup.

Step 1: Open Command Prompt in Recovery Mode

  1. Boot your computer using Windows installation media or trigger the Windows Recovery Environment by turning off the PC during startup twice consecutively.
  2. On the Choose an option screen, select Troubleshoot.
  3. Select Advanced options, then click Command Prompt.

Step 2: Launch Registry Editor

In the Command Prompt window, type the following command and press Enter:

regedit

Step 3: Load the Offline Registry Hive

By default, the Registry Editor displays the temporary registry of the WinPE environment. You must mount the registry hive of your actual Windows installation:

  1. Click on HKEY_LOCAL_MACHINE in the left navigation pane.
  2. Click the File menu at the top left and select Load Hive.
  3. Navigate to your primary Windows drive. In WinPE, the drive letter might be shifted (e.g., D:\ instead of C:\).
  4. Go to the path: [Drive Letter]:\Windows\System32\config\
  5. Select the hive file you need to repair and click Open:
    • SYSTEM: Contains hardware, driver, and system service startup configurations.
    • SOFTWARE: Contains application settings and general operating system configurations.
  6. When prompted for a Key Name, enter a temporary name to identify the loaded hive (e.g., OfflineSystem).

Step 4: Perform the Necessary Registry Fixes

Expand HKEY_LOCAL_MACHINE and open the folder with the name you provided (e.g., OfflineSystem).

Step 5: Unload the Hive and Save Changes

Saving your changes requires cleanly unmounting the offline registry hive:

  1. Select your loaded key folder (e.g., OfflineSystem) in the left pane.
  2. Click the File menu and select Unload Hive.
  3. Confirm the prompt by clicking Yes.
  4. Close the Registry Editor.
  5. In the Command Prompt window, type exit and press Enter.
  6. Select Continue to exit the recovery environment and boot normally into Windows.