How To Use The REGISTRY
How To Use The REGISTRY
In today’s edition of Geek School, we’re going to teach you how to use
the registry editor, what some of those keys actually mean, and gen-
erally help you understand it a little better.
Over the years we’ve covered a lot of registry hacks, and while most
people can handle the step-by-step instructions for how to make a
registry change, or double-click a .reg file to insert it into the regis-
try, you will be much better served having a solid knowledge of what
the registry is and how it works.
The most important thing to know about the registry is that you prob-
ably shouldn’t just mess around and delete or change things for no
reason. Deleting a big portion of the registry is never going to make
your computer run faster, and there’s no registry hack that will speed
up your computer or give you some major new functionality that
doesn’t exist.
The registry has two basic concepts to be aware of: Keys and Values.
Registry Keys are objects that are basically folders, and in the inter-
face even look exactly like folders. Values are a bit like the files in the
folders, and they contain the actual settings.
When you open the Registry Editor for the first time, you’ll see a
treeview on the left-hand pane that contains all of the keys, with val-
ues on the right-hand side. It’s about as simple as an interface gets.
The root-level keys that you see in the left-hand side of the screenshot
are important. Each one houses a different set of information, so
depending on what you are trying to do, you’ll need to know which
section to browse down into.
The interesting thing that most people don’t know is that three of the
five items on the root level aren’t actually there… they are just linked
to items further down in one of the other keys.
HKEY_CLASSES_ROOT
You can also use this section if you want to tweak the context menu
for a particular file type.
HKEY_CURRENT_USER
Holds the user settings for the currently logged in user, and is usually
abbreviated HKCU This is actually just a link to HKEY_USERS\<SID-
FOR-CURRENT-USER>. The most important sub-key in here is
HKCU\Software, which contains user-level settings for most of your
software.
HKEY_LOCAL_MACHINE
HKEY_USERS
Stores all of the settings for all users on the system. You’ll typically
use HKCU instead, but if you need to check settings for another user
on your computer, you can use this one.
HKEY_CURRENT_CONFIG
You can create a new Key, which will show up as a folder on the left-
hand side, or a new value, which will show up on the right-hand side.
Those values can be a little confusing, but there are really only a cou-
ple of values that are used regularly.
It’s also a great way to bookmark something in the registry if you are
looking around in multiple locations, so you can easily flip back to the
last place you were at.
Exporting Registry Files
You can export registry keys and all of the values contained under-
neath them by right-clicking on a key and choosing Export. This is
really important if you are going to be making changes to your sys-
tem.
Once you’ve got your exported registry file, you can double-click on it
to enter the information back into the registry, or you can choose Edit
to take a look at the contents in Notepad.
The registry hacking file format is pretty simple – value names on the
left, and actual values on the right.
RELATED: How to Make Your Own Windows Registry
Hacks
For more on registry hack files, make sure to read our guide on the
subject.
Setting Permissions
Some of the registry keys won’t allow you to make changes by default.
This is generally because you don’t have permission to those keys, but
you can tweak the permissions scheme if you want by right-clicking a
key and choosing Permissions, and then adjusting them from there.
We should note that this is not a good idea, and you should usually
stay away from keys that require this much work to edit.
Now you can open them up on another computer and look around by
using the Load Hive option.
See those SAM, SECURITY, SOFTWARE, and SYSTEM files? They cor-
respond to the same keys underneath the HKEY_LOCAL_MACHINE
folder.
The data for the HKEY_CURRENT_USER branch is stored in your user
folder, in a hidden file called NTUSER.DAT.
You might have noticed over the years that every site that advises you
to hack the registry in some way also tells you to backup your regis-
try. But what’s the best way to do that?
You can’t export the entire registry to a file, and it wouldn’t work
very well to import it again either. You also can’t easily access the
files themselves on the hard drive, because they are completely
locked. So that’s not going to work.