How to quickly switch between HKCU and HKLM branches

The registry in Microsoft windows is a database to store the settings for the operating system and other software. Kernel, drivers, service-based application and user interface are typically found in the registry. The registry editor is used to add, edit, restore, import and export the keys. There are multiple root keys (key beginning with HKEY is a root key) to windows operating system. But, our focus is on the HKEY_LOCAL_MACHINE branch and HKEY_CURRENT_USER branch only. These keys are required to do most of the changes under windows operating system (e.g. Installation of new Software).

Now, it is possible to quickly jump between these keys if the branches between both keys are identical (or the folder/branch you are working on also exists on the other key hierarchy). You can go from editing a subkey under one branch to a similar subkey under the second branch. For example, you do not have to come out of HKEY_LOCAL_MACHINE and navigate back to the same key in the HKEY_CURRENT_USER branch. Rather, you can easily switch between the branches while working on the same key. This saves you a lot of time and effort.

Keep in mind that this isn’t necessary. You can easily change the same key from both branches by simply navigating via the registry key tree (on the left side of registry editor). The shortcut switch we are presenting here is just for the people who want a quick way of switching between branches for the same key.

Method 1: Switch via Right Clicking

Switching between the HKEY_LOCAL_MACHINE branch and HKEY_CURRENT_USER branch is very easy and can be done with just a couple of clicks. Simply follow the steps given below

  1. Hold Windows key and press R
  2. Type regedit and press Enter
  3. Now, double click HKEY_CURRENT_USER
  4. Use the hierarchy tree on the left pane to navigate to the key you want
  5. Once done, right click the key and select Go to HKEY_LOCAL_MACHINE. It will switch to the HKEY_LOCAL_MACHINE branch on the same key.

You can, of course, do this the other way around as well. You can switch from HKEY_LOCAL_MACHINE to HKEY_CURRENT_USER.

Note: You can only switch if the same key exists on both branches (HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER). But, you don’t have to worry about knowing whether the key exists on both branches or not. Simply right click the key and check its options. If there is no option Go to HKEY_CURRENT_USER or Go to HKEY_LOCAL_MACHINE then that means the key doesn’t exist on both branches.


Kevin Arrows

Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.
Back to top button

Expert Tip

How to quickly switch between HKCU and HKLM branches

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested