Get all your news in one place.
100’s of premium titles.
One app.
Start reading
Windows Central
Windows Central
Technology
Mauro Huculak

How to restrict access to Registry on Windows 11

Windows 11 disable Registry

On Windows 11, it's possible to disable access to the Registry, and in this guide, you will learn two ways to complete this task. The Registry is a hierarchical database that stores configuration settings for the operating system, hardware, and installed applications, and since the slightest mistake can cause irreversible damage, it's never a good idea to make changes.

Although this is a known fact for most technical users, it's not something everyone knows. As a result, on Windows 11, if you want to prevent users from making unwanted system changes, you can restrict access to the Registry in at least two ways using the Local Group Policy Editor and the Registry.

In this how-to guide, you will learn the steps to block access to the Registry on Windows 11.

Warning: This is a friendly reminder that editing the Registry is risky and can cause irreversible damage to your installation if you don't do it correctly. Before proceeding, it's recommended to make a full backup of your PC.

How to disable Registry access from Group Policy

On Windows 11, the best way to stop users from launching and modifying the Registry is through the Local Group Policy Editor. However, this tool is only available for Pro, Enterprise, and Education.

To block access to the Registry on Windows 11, use these steps:

  1. Open Start.
  2. Search for gpedit and click the top result to open the app.
  3. Open the following path: User Configuration > Administrative Templates > System
  4. Double-click the "Prevent access to registry editing tools" policy from the right side.
(Image credit: Future)
  1. Choose the Enabled option.
  2. (Optional) Under the "Options" section, select the "Yes" option to also prevent users from editing the database with the "regedit /s" command. If you choose, the "No" option won't have any access to the Registry.
(Image credit: Future)
  1. Click the Apply button.
  2. Click the OK button.

Once you complete the steps, the configuration will apply to every user with an account on Windows 11.

Re-enable the Registry

If you change your mind or no longer need the configuration, you can easily allow access to the Registry with these steps:

  1. Open Start.
  2. Search for gpedit and click the top result to open the app.
  3. Open the following path: User Configuration > Administrative Templates > System
  4. Double-click the "Prevent access to registry editing tools" policy from the right side.
(Image credit: Future)
  1. Choose the Not configured option.
(Image credit: Future)
  1. Click the Apply button.
  2. Click the OK button.

After you complete the steps, users will once again be able to open and change settings in the Registry.

How to disable Registry access from Registry Editor

On Windows 11 Home, it's still possible to restrict access to the Registry. However, ironically enough, you must use the Registry Editor because you won't have access to the Local Group Policy.

If you have to use this method, consider that you must change the settings on every account if you want to restrict access. 

To disable Registry access through the Editor app, use these steps:

  1. Open Start.
  2. Search for regedit, right-click the top result, and select the Run as administrator option.
  3. Open the following path: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies
  4. Right-click the Policies (folder) key, select the New submenu, and click on Key.
(Image credit: Future)
  1. Name the key System and press Enter.
  2. Right-click the newly created key, select the New menu, and click on DWORD (32-bit) Value.
(Image credit: Future)
  1. Name the key DisableRegistryTools and press Enter.
  2. Double-click the newly created DWORD and change its value from "0" to "1" to block access to the Registry.
(Image credit: Future)
  • Quick note: Similar to the Group Policy option, you could use the "2" option to prevent users from accessing the Registry and block running commands silently. However, it's not a good approach since it makes it very challenging to undo the changes.

Once you complete the steps, the new setting will apply immediately, and when trying to re-launch the Registry, you will longer have access to it.

Re-enable the Registry

If you have to allow access to the Registry again, you will have to create and import a ".reg" file since you won't be able to launch the database editor.

To remove the Registry block on Windows 11, use these steps:

  1. Open Start.
  2. Search for Notepad and click the top result to open the app.
  3. Copy and paste the following content:

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] "DisableRegistryTools"=dword:00000000

(Image credit: Future)
  1. Open the File menu and choose the Save as option.
(Image credit: Future)
  1. Choose the destination folder.
  2. Confirm a descriptive name for the file – for example, reenable_registry.reg.
  3. Click the Save button.
  4. Open Start.
  5. Search for Command Prompt, right-click the result, and select Run as administrator.
  6. Type the following command to switch to the ".reg" location and press Enter: cd C:\PATH\TO\REG-FILE\

In the command, update the path and file with your configuration.

  1. Type the following command to re-enable the Registry and press Enterregedit.exe /s reenable_registry.reg
(Image credit: Future)

After you complete the steps, the file will merge the settings into the database to remove the access restrictions to the Registry on Windows 11.

More resources

For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources:

Sign up to read this article
Read news from 100’s of titles, curated specifically for you.
Already a member? Sign in here
Related Stories
Top stories on inkl right now
One subscription that gives you access to news from hundreds of sites
Already a member? Sign in here
Our Picks
Fourteen days free
Download the app
One app. One membership.
100+ trusted global sources.