Windows OS

How to Add, Change, & Delete Registry Keys & Values

The registry is a Windows utility used as a database for storing the configurations of the operating system, system apps, and third-party programs. It allows the user to modify the sensitive system configurations with administrative privileges.

It is highly recommended not to use the Registry Editor until you have much information about it, as incorrect registry settings can lead to serious issues. So, have proper guidance before performing any operation in the Registry Editor.

This blog will observe a detailed instructional guide to solve the mentioned query.

How to Add, Change, & Delete Registry Keys & Values?

The registry key stores the lower-level settings in Windows hierarchical structure form, such as device drivers, services, or user interfaces. In comparison, the registry value is used to enable or disable a certain app, process, or service and is always located inside the registry key.

The registry keys and values can be added, modified, or deleted to enable/disable or modify certain processes, apps, or services in Windows. For that reason, follow the given procedures:

Note: Before you move on and create changes in the Registry Editor, it is recommended to back up the registry. In case, if you want to learn β€œhow to back up the registry”, then navigate to the provided guide.

How to Add Registry Keys & Values?

The registry keys and values can be added by following the given methods.

Method 1: Add a Registry Key

First of all, navigate to the Start menu and open β€œRegistry Editor”:

From the left pane, right-click on the sub-key or key, hover over β€œNew”, and select β€œKey”:

As a result, a new key will be added.

Method 2: Add a Registry Value

Similarly, from the left pane, right-click on the sub-key or key, hover over β€œNew”, and select β€œString Value” for adding the registry value:

Note: You can add other values such as Binary, DWORD, QWORD, Multi-String, or Expandable String by selecting from the menu.

How to Change Registry Keys & Values?

In this section, we have provided various procedures to change, rename and modify the registry keys and values.

Method 1: Rename a Registry Key

First, right-click on the newly added registry key and select β€œRename”. You can also enter your desired name:

Method 2: Rename Registry Value

Right-click on the newly added registry value and select β€œRename”, and type the new name of the registry value:

Method 3: Modify the Registry Value

Right-click on the newly added registry value and select the β€œModify” option:

Now, enter β€œ1” to enable the value, or enter β€œ0” to disable the value in the β€œValue data” section. After modifying, hit the β€œOK” button to save changes:

How to Delete Registry Keys & Values?

In order to delete registry keys and values, we have compiled a complete procedure below.

Method 1: Delete a Registry Key

To delete the registry key, first, right-click on the newly added registry key and select β€œDelete”:

Method 2: Delete Registry Value

To delete the registry value, right-click on the newly added registry value and select β€œDelete”:

That was all about adding, changing, and deleting registry keys and values in the Windows Registry.

Conclusion

To add a registry key/value, right-click on the key and hover over β€œNew”, select β€œKey” to add a key, and select β€œString Value” to add value. Similarly, right-click on the added key/value, select β€œRename” to change its name, and select β€œModify” to change it. However, to delete the registry key/value, right-click on it and trigger the β€œDelete” option. This blog has presented a complete procedure to add, change & delete registry keys and values in the registry.

About the author

Muhammad Farhan

I am a Computer Science graduate and now a technical writer who loves to provide the easiest solutions to the most difficult problems related to Windows, Linux, and Web designing. My love for Computer Science emerges every day because of its ease in our everyday life.