How the Registry is Organized

by Barry Dysert
(last updated June 5, 2017)

The registry is at the heart of the Windows operating system. Ideally, you should never have to concern yourself with it, since things pretty well run in conjunction with the registry in a manner invisible to you. But sometimes it may be helpful to understand how the registry is organized just in case you need to look at it or even modify it.

There are five major sections to the registry. These sections are called "hives", and each hive is stored in its own hidden, system file on your hard disk. The five hives are:

HKEY_CLASSES_ROOT. This hive contains information about registered applications. It displays the same settings as exist in HKEY_LOCAL_MACHINE\Software\Classes.

HKEY_CURRENT_USER. This hive contains information about the user who is currently active on the PC. It's a subset of the information found in HKEY_USERS.

HKEY_LOCAL_MACHINE. This hive contains settings specific to your PC's hardware and software.

HKEY_USERS. This hive contains keys for all users of the PC.

HKEY_CURRENT_CONFIG. This hive is the only one that is not permanently stored on disk. It is populated with information gathered when Windows is booted.

Each hive contains keys and subkeys (and sub-subkeys, etc.) to actually get to the information required to make things work. For example, if you wanted to know what all programs could be used to open a file with the type of ".xps" you would navigate to the hive HKEY_CURRENT_USER and follow the path: "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xps\OpenWithList". When you finally get there, you'll find the names of keys, and each key will have a value. (See Figure 1.) These key/value pairs are what keep Windows (and your applications) running as expected.

Figure 1. A "leaf" registry node showing keys.

 This tip (7345) applies to Windows 7, 8, and 10.

Author Bio

Barry Dysert

Barry has been a computer professional for over 30 years, working in different positions such as technical team leader, project manager, and software developer.  He is currently a senior software engineer with an emphasis on developing custom applications under Microsoft Windows. ...

MORE FROM BARRY

Deferring Windows Updates

Are you bothered by when Windows decides to do its updates? If you want some control over when Windows downloads and installs ...

Discover More

Understanding Desktop Widgets

Widgets are small, lightweight applications that continually run on your desktop to provide information. You can add, delete, ...

Discover More

Moving Your Downloads Folder

If you're on the Internet a lot, chances are you do a lot of downloading. By default, your Downloads folder is on your C: ...

Discover More
More WindowsTips

Editing the Windows Registry

The Registry is the central depository of configuration information used by Windows and by programs running on your system. ...

Discover More

Backing Up the Windows Registry

Windows wouldn't function if it weren't for the Registry. It's important, therefore, to back it up—especially before ...

Discover More

Editing Registry Values

The Registry is the central depository of configuration information used by Windows and by programs running on your system. ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is eight minus 2?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.