What Is the Windows Registry and How Do I Edit It?
Whatsapp Pinterest
Advertisement

The Windows Registry is a scary place at first glance. It is a place where power users can change Windows settings that are not exposed elsewhere. When you search for how to change something in Windows, you often find articles telling you to edit the registry.

If you need to edit the registry, don’t worry. Making a registry tweak is easy so long as you know what setting you’re modifying. However, you must be careful when editing the Windows Registry as you can create unintended issues.

What Is the Windows Registry?

The Windows Registry is a database that stores a wide variety of configuration settings. Nearly all configuration settings included with Windows are stored here. Third-party programs can also use the registry to store their settings, although they can also store settings in configuration files – the choice is up to each program.

windows registry entry

Many of the options exposed in the registry are not available elsewhere in Windows. There is a wide variety of advanced settings that you cannot change without editing the registry. Some of these settings are available through Windows Group Policy—but the Windows Group Policy Editor is only available to Professional versions of Windows. If you are using a non-Professional version of Windows, editing the Windows Registry is likely the only way to edit some of these settings.

The Windows Registry Editor is a GUI for the Windows Registry that allows you to view and edit its contents.

How to Open the Windows Registry

Warning: I advise extreme caution when editing the Windows Registry. Don’t jump into the Registry Editor and start deleting whatever you want. Don’t change any registry entries without knowing exactly what you’re about to edit. If you do know what you are doing and carefully edit only the correct values, you shouldn’t have any problems.

However, if you start deleting, editing, and tweaking registry keys, you could damage your Windows installation beyond repair. Only a full reinstall will recover your system at that point, and you could lose a lot of data in the process. (Though it is possible to reset your Windows Registry How to Reset the Windows Registry to Default How to Reset the Windows Registry to Default If you've messed up the Windows Registry, hopefully you have a backup. If not, you have a short list of options to fix the problem. Read More .)

To open the Registry Editor, type regedit in your Start Menu search bar, then select the Best Match.windows registry start menu entry

How to Edit the Windows Registry

If you know a specific value you want to change, you can navigate through the Windows Registry tree structure.

Click the arrows to open the next branch of folders until you find what you’re looking for. For example, if I want to edit the “Add to VLC Playlist” right-click context menu option, I would browse to HKEY_CLASSES_ROOT\Directory\shell\AddToPlaylistVLC, unfurling each folder branch until you reach the destination value.

windows registry find key

Alternatively, you can use the Registry Editor search function. Press CTRL + F to open Find. Then you can type in the key, value, or data string you’re looking for. The Registry Editor Find function doesn’t always return what you’re looking for. If it returns no values, head back to the manual search. Alternatively, check out how to open the Windows Registry to any key without searching How to Open the Windows Registry to Any Key How to Open the Windows Registry to Any Key Editing the Registry allows you to make all sorts of changes to Windows. If you find yourself jumping all over the Registry, here's how you can jump to any key in seconds. Read More !

To edit the value, right-click the name, and select Modify. Change the Value Data to whatever is appropriate and press OK.

How to Create a New Windows Registry Value

At times, you may need to create a new registry value. For instance, if the registry value for a setting you want to edit doesn’t exist, you can create it. For a new value to work, however, you must make sure you are in the corresponding registry folder. There is no use in placing a new registry value in any old folder; it could negatively affect your system or worse.

First, make sure you are in the correct Registry Editor location. Then right-click the right pane and select New > [registry value type]. Type the name of the value, assign it whatever attributes it needs and hit OK. Sounds vague? That’s because you will only create new registry values on a case-by-case basis, and there are several different registry value types. By and large, you will create a DWORD (32-bit) Value. But that isn’t always the case.

windows registry new dword

If a key, or folder, you need doesn’t exist, create the correct folder structure by creating new subkeys in each folder. For example, if you need to change a value in Foo\Bar, create the “Foo” key if it doesn’t exist, then create the “Bar” key inside it.

How to Export and Import Windows Registry Files

The Registry Editor also supports the import and export of .reg files.

Export

You can create your own .reg files to back up specific registry keys. Taking a backup is a great idea if you are about to edit the registry Why Does Windows Automatically Save the Registry? Why Does Windows Automatically Save the Registry? Not sure what the Windows Registry does? Wonder how to save, restore, or back it up? Read this article to find out. It's simpler than you might think. Read More . You can back up individual keys and values, or the entire registry. Although backing up the entire registry sounds time-consuming, it isn’t. For most people, the registry will amount to hundreds of megabytes. For instance, my entire Windows Registry weighs in at 167MB, as you can see below:

windows registry export key

Anyway, back to the exporting. Right-click the registry key (in the left panel), select Export. The contents of the key will save to a .reg file on your computer.

Import

Double-clicking a .reg file will add its contents to your registry. Adding a .reg file to your registry simplifies the process of performing registry hacks. Instead of creating or editing each value manually, double-clicking the .reg adds every value, placing them in your registry without error. For many registry hacks or alterations, you will have to restart your system before the change takes effect.

windows registry import key warning

You will come across .reg files online. However, you shouldn’t download and run any old .reg file. A malicious registry file could wreck your system settings with a single file. Before running the .reg file, right-click it and select Edit. The registry file contents will open in Notepad (or an alternative text editor), showing you exactly what will install should you double-click.

Understandably, you won’t figure out what each entry is for. I can’t either. When you are unsure, complete an internet search for the registry key in question to figure out if it is benign.

Three Useful Registry Hacks to Try

There are loads of handy registry hacks and tweaks you can make. Here are three to get you started.

1. Open Last Active Window from the Taskbar

Ever click an icon on your taskbar and wish it would open the last active Window of that program? I did, so found this registry tweak that “fixes” the problem.

Open the Registry Editor and navigate to:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Current\Version\Explorer\Advanced

Then right-click in the right panel, select New > DWORD (32-bit) Value. Name it LastActiveClick, change the Value Data to 1, and hit OK.

2. Remove the OneDrive Button from the File Explorer

Something else that drives me mad is the persistence of the OneDrive button. Don’t use OneDrive? You can use a registry tweak to remove the button from File Explorer.

Open the Registry Editor and navigate to:

HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

Double-click System.IsPinnedToNameSpaceTree, set the Value Data to 0 and hit OK.

3. Change Desktop Icon Spacing

Ever wanted to change the space between your desktop icons? You can use a Windows Registry tweak for that!

Open the Registry Editor and navigate to:

HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics

There are two spacing measurements you need to edit. In the left panel, find the WindowMetrics key. In the left panel, find the values for IconSpacing and IconVerticalSpacing. The former controls the horizontal spacing, while the latter controls the vertical.

Is Editing the Windows Registry Easy?

Editing the Windows Registry is easy—so long as you move slowly. That means don’t add random registry files without checking, don’t mess with registry values you don’t understand, and always take a backup before making registry tweaks.

Want another Windows Registry tip? Registry cleaning software is snake oil! Using Registry Cleaner: Does Is It Really Make a Difference? Using Registry Cleaner: Does Is It Really Make a Difference? Advertisements for registry cleaners are all over the Web. There’s an entire industry out there bent on convincing inexperienced computer users that their registry needs fixing, and that, for ten easy payments of $29.95, their... Read More But knowing how to use the Registry can help you fix issues like the DistributedCOM error.

Explore more about: Troubleshooting, Windows Registry, Windows Tips.

Enjoyed this article? Stay informed by joining our newsletter!

Enter your Email

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. daviti
    November 28, 2017 at 9:59 am

    very good

  2. harley bellwood
    February 28, 2013 at 6:42 pm

    Simple question...if you uninstall a program or software via a good uninstaller & find crap entries still in the registry, is it safe to delete them?

    • Chris Hoffman
      February 28, 2013 at 6:52 pm

      Technically, it's probably safe as long as they're entries related to the program itself.

      However, you shouldn't bother. You could potentially break something (even I could potentially break something if I tried) and there's no actual benefit to deleting such entries. It just wastes time and could potentially cause problems -- and for no real benefit.

      • harley bellwood
        February 28, 2013 at 6:53 pm

        Good to know, thanks.

  3. Dmitriy Haralson
    January 22, 2013 at 12:24 pm

    the registry maybe a powerful tool, but in inexperienced hands a PC killer

  4. John Schmitt
    January 18, 2013 at 4:31 pm

    Yes, for XP:

    My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress...something..

    I delete that key everytime!

  5. Eric Brewer
    January 17, 2013 at 9:18 pm

    Had to use the registry many times on home version computers when someone got a virus that changed some of the group policy settings to make them harder to remove.

  6. Victor Ong
    January 17, 2013 at 8:55 pm

    Very good for beginners. Everything you really need to know!

  7. Patrick Jackson
    January 17, 2013 at 4:25 pm

    I just backup at times!

  8. Noman Fayez
    January 17, 2013 at 1:23 pm

    registry editor some times save us from big problems. Thanks to Microsoft that they provide user to access it. Otherwise OHH I can not think without it.

  9. Junil Maharjan
    January 17, 2013 at 9:13 am

    you should have an article for cool and really useful registry hacks only.

  10. dragonmouth
    January 16, 2013 at 11:04 pm

    "While we’re on the topic, don’t fall for registry cleaners – they don’t really make Windows go faster."

    They may not make Windows run any faster but they do get rid of a lot of crap left by incompletely uninstalled programs. That is the problem with Windows - the uninstall process leaves a lot files and Registry entries behind.

    • James Johnston
      January 17, 2013 at 1:08 am

      That's a good point to make, I worked with clients thinking that those cleaners will fix everything but, since they no nothing about the registry they can sometimes makes this worse.

      As for uninstall programs leaving junk files and registry entries behind. I've had a few issues with that in the past and had use several different third party uninstaller programs and file/registry tools to successfully remove all files left behind or least most of the files.

    • Alan Wade
      January 17, 2013 at 7:43 am

      I use a third party uninstaller which clears out most of the junk, whats left amounts to just a couple of bytes and dosnt harm anything.

  11. Alan Wade
    January 16, 2013 at 10:19 pm

    Great tutorial Chris!
    The registry has been my playground for a few years now so I am well aware that backing up the registry before editing is very important too..

    • Lisa Santika Onggrid
      January 17, 2013 at 4:35 pm

      When I learnt how powerful the registry editor is, I played with every trick I came across. I once pranked my friend by removing his start button and shutdown menu, popping up bogus notifications and some more edits, plus messing up some settings in Group Policy to finish.
      He's savvy enough to undo everything, but he's baffled as to why that could happen and blamed it to virus slipping under his security. What's so funny about it, you ask? I did it right beside him when he was talking to me.

  12. Rigoberto Garcia
    January 16, 2013 at 10:08 pm

    Excellent article Chris, decoding each of the parts of the Registry. It will be helpful to my staff the support area, who will share. Thank you very much ...