Every once in a while, some problem crops up that forces you to alter something in your registry. Here we provide you with a full Windows registry tutorial in order to edit or change settings in it.
Before we get started, I feel it’s important to understand that it’s absolutely crucial to backup your registry before making any changes in it.
Once you have created an export backup of your registry, take that file and copy it to a different location.
An additional method is recommended, just in case you have a situation where you aren’t able to gain access to your desktop. And that would be to create a restore point. In our other post on creating a restore point, we show you the entire process.
This way, you can restore your Windows to an exact replica to the time that you create the restore point. We cannot recommend this highly enough.
It’s quick and easy to do and will ensure that your operating system has a chance of always being restored to its former working state.
Windows registry tutorial
Let’s go from the beginning and work through to the more advanced ways to work with your registry.
How to open the registry editor
The easiest and quickest way to open your registry:
- Press and hold the Windows key ⊞ on your keyboard and tap the ‘R’ button, then release the Windows key.
- Left-click your mouse pointer in the text box next to ‘Open’.
- Type ‘regedit’ and left-click on the ‘OK’ button.
You will see a new window titled ‘Registry Editor’, which now allows you to work with your registry database:
How to back up the registry (or parts of it)
The Windows Registry Editor allows you to export the whole thing, or parts that you want to backup.
To backup the whole registry:
- Make sure the ‘Computer’ item in your left pane is selected. You can do this by left-clicking your mouse on the ‘Computer’ item.
- Left-click your mouse button on ‘File’ in the top menu.
- Left-click your mouse button on ‘Export’.
- In the export window that has appeared, the bottom area has an export range option. Left-click your mouse button on the ‘All’ radio button.
- Left-click your mouse button on ‘This PC’. Choose the location you wish to save your backup file to.
- Left-click your mouse on the ‘File name’ text box and type in the name you want for the backup filename.
How to save specific registry settings
- Left-click your mouse on the item you wish to export in the left pane. Press the right mouse button.
- Left-click your mouse button on the ‘Export’ item in the contextual menu.
- Complete the export process as shown at the end of the previous export process.
Give your computer a few minutes to complete the operation. You might find that the Registry Editor is non-responsive until the process is complete. Unfortunately, there is no progress indicator to give you an idea of how far the process is.
How to import registry files
If you have exported, or downloaded any .reg files and wish to merge them with your registry, here’s how to do that.
- Double click your left mouse button on the .reg file you wish to import.
- A warning will appear, and if you are sure that you want to import the file’s settings, confirm it by left-clicking the ‘Yes’ button with your mouse.
Different types of registry settings
There are two main elements in the registry:
- Keys – These look like folders that you will see in the left pane in the Registry Editor. They contain the value elements inside them.
- Values – These are the elements that resemble files. You can see them in the right pane after clicking on a key.
Types of keys
- HKEY_LOCAL_MACHINE (HKLM)
- HKEY_CURRENT_CONFIG (HKCC)
- HKEY_CLASSES_ROOT (HKCR)
- HKEY_CURRENT_USER (HKCU)
- HKEY_USERS or HKU
Types of values
|1||REG_SZ||Standard string value.|
|2||REG_EXPAND_SZ||An expandable string value that can also contain environment variables.|
|32 Bit unsigned integer.|
|5||REG_DWORD_BIG_ENDIAN||32 Bit unsigned integer.|
|6||REG_LINK||A UNICODE symbolic link to another key. It specifies a root key and the path to the key.|
|7||REG_MULTI_SZ||Multi string value.|
|8||REG_RESOURCE_LIST||A resource list used by hardware enumeration and configuration for Plug-n-Play.|
|9||REG_FULL_RESOURCE_DESCRIPTOR||A resource descriptor used by hardware enumeration and configuration for Plug-n-Play.|
|10||REG_RESOURCE_REQUIREMENTS_LIST||A resource requirement list used by hardware enumeration and configuration for Plug-n-Play.|
|64 Bit |
How to edit keys and values
You won’t be able to edit the names of the root keys, for obvious reasons, but this is how to rename the keys one layer or deeper in the key trees including all key values:
- Click on the key or value you wish to rename with your left mouse button.
- Left-click your mouse on the ‘Rename’ item in the contextual menu that has appeared from completing the previous step.
- Edit the name of the key or value using your keyboard and press enter once you are happy with the change.
How to add keys or values
If you want to create a new key, focus on the left pane, and for a new value, work in the right pane.
- Right-click your mouse button on any unused space in the left or right pane depending on what you want to create.
- In the new contextual menu, hover your mouse pointer on ‘New’ and a new menu will roll open.
- Left-click your mouse button on the type of key or value you wish to create.
How to delete keys or values
- Right-click your mouse button on the key or value.
- Left-click your mouse button on the ‘Delete’ item in the newly created contextual menu.
How to save changes
No saving is required. Once you make changes to your registry, it is changed permanently.
This is why we encourage you to back up your registry keys, or even the whole thing before you edit anything inside your registry.
In conclusion to the Windows Registry tutorial
As you can see, making changes in your registry is not difficult.
We wish you all the best in working with your registry and correcting any issue you might have.
Marlo is a full-time professional computer programmer, electronics engineer and computer technician. Computers are his passion and he loves to help anyone wanting to know more about them.