---
title: "Utilizing Offline Registry Editor to Repair the Registry"
description: "Learn how to use Windows’ built-in offline registry editor to fix registry issues with Windows 10 even if Windows won’t boot!"
canonical: "https://adamtheautomator.com/offline-registry-editor/"
---

# Utilizing Offline Registry Editor to Repair the Registry

> Learn how to use Windows’ built-in offline registry editor to fix registry issues with Windows 10 even if Windows won’t boot!

Source: https://adamtheautomator.com/offline-registry-editor/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![Utilizing Offline Registry Editor to Repair the Registry](https://adamtheautomator.com/wp-content/uploads/2021/06/How-to-Edit-the-Windows-Registry-Completely-Offline.jpg)

# Utilizing Offline Registry Editor to Repair the Registry

[![](https://secure.gravatar.com/avatar/9a14f10ff1b1ec7d790d34f5b559e4d3de2d31b172e6ef266dfd8b479174d97b?s=192&d=mm&r=g)June Castillote](https://adamtheautomator.com/author/june/)30 June 20217 min. read

Categories: [IT Ops](/category/it-ops/)

Tags:[Windows 10](/tag/windows-10/)

Table of Contents

*   [Prerequisites](#h-prerequisites)
*   [Offline Registries: Understanding and Editing](#h-offline-registries-understanding-and-editing)
*   [Opening the Command Prompt in WinRE](#h-opening-the-command-prompt-in-winre)
*   [From the Windows Power Menu](#h-from-the-windows-power-menu)
*   [Using Windows Installation Media](#h-using-windows-installation-media)
*   [Finding the Windows Operating System Drive Letter](#h-finding-the-windows-operating-system-drive-letter)
*   [Loading, Editing, and Unloading the Offline Registry](#h-loading-editing-and-unloading-the-offline-registry)
*   [Verifying your Offline Registry Changes](#h-verifying-your-offline-registry-changes)
*   [Conclusion](#h-conclusion)

Have you ever experienced an “oops” moment while editing the [registry](https://docs.microsoft.com/en-us/windows/win32/sysinfo/registry), like, changing the wrong value? And when you restart your computer, Windows fails to start? Lucky for you, you can still edit or repair the registry by using an offline registry editor.

Not a reader? Watch this related video tutorial!

**_Not seeing the video? Make sure your ad blocker is disabled._**

Also, in situations like removing stubborn or locked registry entries due to possible malware infection, editing the registry offline may be your last resort. Continue reading this tutorial and learn how to edit the Windows registry offline.

Come on, and let’s see what else you can break! 😉

## Prerequisites

To follow along with this tutorial, be sure you have the following.

*   A computer running on Windows 10, Windows Server 2016, and above. This article will be using a Windows 10 version 1909.
*   A copy of the [Windows installation media](https://www.microsoft.com/en-us/software-download/windows10). Either a DVD or USB installation media should work.

## Offline Registries: Understanding and Editing

One popular way to edit the Windows registry is to use the [Regedit utility](https://support.microsoft.com/en-us/windows/how-to-open-registry-editor-in-windows-10-deab38e6-91d6-e0aa-4b7c-8878d9e07b11). This utility is a graphical registry editor that _typically_ allows you to edit the Windows registry while it’s in use. But, you can also use Regedit to edit an _offline_ registry.

An offline registry is a Windows registry that’s stored in files (one for each registry [hive](https://docs.microsoft.com/en-us/troubleshoot/windows-server/performance/windows-registry-advanced-users)) that Windows is not currently using. Each file is stored in specific locations, as shown in the table below.

<table><tbody><tr><td>Registry Hive</td><td>File Path</td></tr><tr><td>HKEY_LOCAL_MACHINE\SAM</td><td>%WINDIR%\system32\config\SAM</td></tr><tr><td>HKEY_LOCAL_MACHINE\SYSTEM</td><td>%WINDIR%\system32\config\SYSTEM</td></tr><tr><td>HKEY_LOCAL_MACHINE\SOFTWARE</td><td>%WINDIR%\system32\config\SOFTWARE</td></tr><tr><td>HKEY_USERS.DEFAULT</td><td>%WINDIR%\system32\config\DEFAULT</td></tr><tr><td>HKEY_CURRENT_USER</td><td>%USERPROFILE%\NTUSER.DAT</td></tr></tbody></table>

To edit an offline registry, you can use Regedit inside of a special Windows operating environment called the [Windows Recovery Environment (WinRE)](https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-recovery-environment--windows-re--technical-reference?view=windows-11).

> _While third-party offline registry editors exist, WinRE and Regedit are Microsoft’s officially supported tools. Additionally, WinRE has built-in support for [UEFI firmware](https://whatis.techtarget.com/definition/Unified-Extensible-Firmware-Interface-UEFI) and [Bitlocker](https://docs.microsoft.com/en-us/windows/security/information-protection/bitlocker/bitlocker-overview), which is not available in most third-party tools._

Related:[How to Save and Recover BitLocker Recovery Keys](https://adamtheautomator.com/bitlocker-recovery-key/)

## Opening the Command Prompt in WinRE

To edit a Windows registry offline, you must first book into WinRE and open the command prompt from there. To do that, you have a couple of different ways depending on if you can get into Windows now and if you have Windows installation media or not.

### From the Windows Power Menu

The easiest and typical method of booting into WinRE is from the Windows power menu. This method applies only if Windows is still bootable or if you can still at least reach the login screen where you’ll have access to the power menu.

Follow the steps below to boot to WinRE using the power menu.

> _Note: This WinRE boot method will only work if your Windows system drive (e.g., drive C:) is not encrypted with Bitlocker. If the system drive is encrypted, skip to booting into WinRE with installation media._

1\. If you’re logged in to Windows, press `WIN+L` on your keyboard to lock the screen.

2\. On the lower-right corner of the login screen, click the power button. Next, hold down the `SHIFT` key on your keyboard and click **Restart**.

![Clicking Restart](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-10.png)

Clicking Restart

3\. At the warning prompt saying that you could lose unsaved work, click **Restart anyway**. The computer will restart and automatically boot into the WinRE.

![Clicking Restart anyway ](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-12.png)

Clicking Restart anyway

> _Note: If the computer fails to boot to Windows 10 in two to three consecutive times, the next boot will enter WinRE automatically._

4\. After the computer restarts, you’ll see the WinRE menu similar to the screenshot below. On this page, click **Troubleshoot**.

![Clicking Troubleshoot](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-14.png)

Clicking Troubleshoot

5\. On the **Troubleshoot** page, click **Advanced options**.

![Clicking Advanced options](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-16.png)

Clicking Advanced options

Under the **Advanced options** page, click **Command Prompt**.

![Clicking Command Prompt](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-18.png)

Clicking Command Prompt

7\. In the **Command Prompt** window, click your account name to log in.

![Clicking on the account name](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-19.png)

Clicking on the account name

8\. Now, enter your account’s password and click **Continue**.

![Entering the account password](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-20.png)

Entering the account password

### Using Windows Installation Media

In cases where Windows is not bootable, another option to access WinRE is booting with the Windows installation media. Whether you have a CD/DVD or USB installation media, WinRE also comes preloaded with it.

> _The step-by-step process below demonstrates booting into WinRE using the Windows 10 installation media. Depending on your Windows installation version, the screenshots or steps may differ from what you will see in this example._

1\. Insert your Windows installation media (CD, DVD, or USB) and then turn off the computer.

2\. Power on your computer and make sure that the computer [boots into the installation media](https://www.wikihow.com/Boot-a-Computer-from-a-CD).

3\. Once the computer boots into the Windows setup, click **Next**.

![Clicking Next on the Windows setup](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-21.png)

Clicking Next on the Windows setup

4\. On the next screen, click **Repair your computer**.

![Clicking Repair your computer on the Windows setup](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-22.png)

Clicking Repair your computer on the Windows setup

5\. Next, on the **Choose an option** menu, click **Troubleshoot**.

![Clicking Troubleshoot](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-23.png)

Clicking Troubleshoot

6\. On the **Advanced options** menu, click **Command prompt**.

![Clicking Command Prompt](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-24.png)

Clicking Command Prompt

7\. If one or more drives in your computer are Bitlocker-encrypted, you will see the prompt to enter the recovery key similar to the screenshot below. If the drive containing your offline registry files is encrypted, enter the recovery key and click **Continue** to unlock the drive.

Without unlocking the encrypted drive, you will not have access to the offline registry files.

![Unlocking the Bitlocker encrypted drive](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-25.png)

Unlocking the Bitlocker encrypted drive

## Finding the Windows Operating System Drive Letter

Now that you’ve booted your computer to the WinRE and have the command prompt open, you can now start using Regedit as an offline registry editor.

> _On a typical Windows installation, you can find the operating system on drive C. But inside WinRE, drive C is assigned to the [System Reserved Partition (SRP)](https://www.auslogics.com/en/articles/system-reserved-partition-in-windows/#:~:text=What%20Is%20the%20System%20Reserved%20Partition%3F). The SRP is a hidden partition that you can find immediately before the partition that houses Windows._

First, you have to determine in which drive the Windows installation resides. You can do so by listing the computer’s [Boot Configuration Database (BCD)](https://docs.microsoft.com/en-us/previous-versions/technet-magazine/cc162480\(v=msdn.10\)?redirectedfrom=MSDN#:~:text=under%20normal%20usage.-,Boot%20Configuration%20Database,-Windows%20Vista%20has). The BCD contains system and operating system startup configuration, including the partition that houses the operating system itself.

To list the boot configuration data, run the command below in the command prompt.

```powershell
bcdedit
```

Under the **Windows Boot Loader** section, look for the **osdevice** property value. This value indicates which drive letter has the Windows OS installation. In the example below, the Windows OS is on drive D.

![Finding the OS drive](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-26.png)

Finding the OS drive

## Loading, Editing, and Unloading the Offline Registry

In the previous section, you’ve determined that Windows resides on the drive D in WinRE. Now you can fire up the offline registry editor and load the offline registry hives for editing. To load the offline registry hives, follow the steps below.

1\. Open the built-in Windows registry editor by running the command below in the command prompt.

```powershell
regedit
```

Now you should see the familiar **Registry Editor** window like the screenshot below. Since you’re in WinRE, the registry hives you’re seeing are the WinRE registry and not your Windows registry. You have to manually load the hives you want to edit, which you will do in the next step.

![Regedit in WinRE](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-27.png)

Regedit in WinRE

2\. Next, load the registry hive you want to edit. Loading a hive means opening the offline registry file from the Windows OS drive, which will then become visible in the offline registry editor.

To do so, first, click to select the key where you will load the registry hive. You can only load hives under the _HKEY\_LOCAL\_MACHINE_ and _HKEY\_USERS_ keys. The example below selects the _HKEY\_LOCAL\_MACHINE_ key.

![Selecting the key where to load the registry hive](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-28.png)

Selecting the key where to load the registry hive

3\. After selecting the key, click **File —> Load hive** on the menu bar.

![Loading the hive](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-29.png)

Loading the hive

4\. On the **Load Hive** window, navigate to _D:\\Windows\\System32\\config_.

> _Remember that the Windows installation is in drive D in this example, as the `bcdedit` command shown previously._

Next, select the registry hive file that you want to load. Once you’ve selected the file, click **Open**. The example below will open the _SOFTWARE_ file, which loads the _HKEY\_LOCAL\_MACHINE\\SOFTWARE_ registry hive.

![Selecting the registry hive to load](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-30.png)

Selecting the registry hive to load

5\. At the next prompt, enter the **Key Name** you want to assign to the offline registry file and click **OK**. For clarity, you are not creating a new key. Instead, you’re only setting a label or name to the offline registry hive.

Feel free to use any name that you think would make sense. The example below uses the name _OFFLINE\_SOFTWARE_.

![ Naming the hive ](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-32.png)

Naming the hive

Back on the **Registry Editor** window, you can now see the offline registry that you’ve loaded into your offline registry editor.

![The loaded offline registry ](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-34.png)

The loaded offline registry

At this point, you can repeat the same steps to load other offline registry files if needed.

After you’ve loaded the offline registry hive, you can now edit the registry in the same manner that you would edit the registry while logged in to Windows.

6\. Next, create a new key with the name _ATA\_WinRE\_Regedit_. To do so, right-click on the offline registry you want to edit —> click **New** —> **Key**. Lastly, type in the name of the new key and press Enter.

![Creating a new key in the offline registry editor](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-35.png)

Creating a new key in the offline registry editor

7\. Once you’ve completed editing the registry, unload the offline registry hive. To do so, **(1)** click to select the offline registry key, click **(2)** **File** —> **(3)** **Unload hive**. Lastly, on the confirmation prompt, click (4) **Yes**.

![Unloading the offline registry file](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-36.png)

Unloading the offline registry file

8\. Now, close the offline registry editor and command prompt windows.

![Closing the offline registry editor and the command prompt](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-37.png)

Closing the offline registry editor and the command prompt

9\. Now, turn off your computer or boot to Windows.

## Verifying your Offline Registry Changes

Once you’ve restarted your computer and successfully logged in to Windows, the next step is confirming that the changes you made in the offline registry persist. Follow the steps below.

First, open the registry editor. To do so, press `WIN+R` on your keyboard to open the **Run** dialog. Next, type in `regedit` in the **Open** box and press Enter or click **OK**.

![Opening the Registry Editor](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-38.png)

Opening the Registry Editor

Once you’re in the **Registry Editor** window, navigate to the hive you edited previously and confirm that it exists. In this example, the item to verify is the _ATA\_Offline\_Regedit_ key under _HKEY\_LOCAL\_MACHINE\\SOFTWARE_ hive.

> _Remember that when you loaded the offline registry hive into a new key while in WinRE, you assigned a label named OFFLINE\_SOFTWARE. That key was only temporary while in WinRE and does not carry into the active registry in Windows._

![Confirming the registry key](https://adamtheautomator.com/wp-content/uploads/2021/06/Untitled-39.png)

Confirming the registry key

## Conclusion

Knowing how to edit the registry offline can save your bacon, especially if you’ve made a mistake and corrupted the registry. Whether the computer still boots up or not, or if the drive is encrypted, you can still use Regedit to edit the Windows registry offline.

Apart from editing the registry offline using Regedit, do you think you can backup and import the registry offline too? What other actions do you think are possible to do with the offline registry?

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Foffline-registry-editor%2F&text=Utilizing%20Offline%20Registry%20Editor%20to%20Repair%20the%20Registry)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Foffline-registry-editor%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Foffline-registry-editor%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2024/01/OpenSSL-on-Windows-10.jpg)

### [Master OpenSSL on Windows 10: A Guide to Powerful Security](/openssl-windows-10/)

Master OpenSSL on Windows 10 with PowerShell, from installation to certificate signing requests and conversions.

![](https://adamtheautomator.com/wp-content/uploads/2020/07/bitlocker-recovery-key.jpg)

### [Save & Recover Bitlocker Recovery Keys: A Complete Guide](/bitlocker-recovery-key/)

Learn how to save and recover Bitlocker recovery keys from files, USB drives, AD, Azure AD, and more in this tutorial.

![](https://adamtheautomator.com/wp-content/uploads/2021/05/How-to-Partition-and-Erase-Windows-Volumes-with-Diskpartx.jpg)

### [Mastering Diskpart : Erase and Partition Volumes with Ease](/diskpart/)

Learn how to create partitions, create volumes, delete volumes and partitions and manage unallocated space with the Windows Diskpart utility.

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
