How to Disable Access to Registry Editor in Windows 10

Jun. 21, 2021



The Windows Registry Editor is an extremely powerful tool for experienced users and allows them to make a host of changes and implement new functionality on their PCs. However, it can become a massive liability in the hands of a novice because any false step can mess up your Windows installation. So to help you prevent your friends or colleagues from messing up your computer, here’s how you can disable and re-enable the Registry Editor on yourWindows 10computer.

Here, we will show you 3 ways to disable access to the Registry on your Windows 10 computer. We will use the Local Group Policy Editor (gpedit) and the Registry Editor (regedit) itself to disable the Windows Registry on your device. We will also show you how to re-enable access to the Windows Registry Editor when you finally get your PC back. Do note that the methods below apply to Windows 10, Windows 8, and Windows 7.

Note:Group Policy Editor is not officially available in Windows 10 Home. However, you can stillenable Group Policy Editor on Windows 10 Homeby following our detailed guide linked herein.

  1. First off, open the Local Group Policy Editor. To do that, use theWindows keyboard shortcutWin + Rsimultaneously to open the Run dialog box. You can also search for “Run” in the Windows Search Bar. Now type “gpedit.msc” in the Run window and hit Enter or “OK” to open the Group Policy Editor.

  2. In the Group Policy Editor window, move to the following path using the left sidebar:User Configuration > Administrative Templates > System. In the right pane, double-click on the entry that says “Prevent access to registry editing tools“.

  3. On the next window, select “Enabled” and hitApplyorOK. Finally, reboot your PC for the changes to take effect.

  4. Now, when you try to access the Registry Editor (regedit) on your Windows 10 PC, you will get an error message, as seen below.

Enabling this option on one account will apply the changes to all users on that computer, including Admin accounts. Do note thatyou must be signed in from an Admin accountin the first place to be able to use the trick above. Once you disable the registry editor, no one using that PC can access the feature. You can, however, easily undo the changes by following the steps below.

Note:Tweaking the Registry Editor is fraught with danger. It is advisable toenable and create a System Restore pointbefore making any changes.

  1. Firstly, open the Windows Registry Editor. To do that,search for “regedit”in the Windows Search Bar and click on the first result.

  2. Now double-click on the new DWORD andchange its hexadecimal value from 0 to 1or 2 (check below to see what the values mean). Click on “OK” to save changes and reboot your PC for these changes to take effect.

Here are the DisableRegistryTools values:

0 – Registry Editor enabled1 – Registry Editor only works in ‘silent mode’ using the /s switch while in the command prompt2 – Registry Editor disabled, cannot be started normally or silently

Do note that this policy is limited to the current user account only. You will have to repeat the process for every user on a PC if you want to implement the policy for all users. Also,do not use the value “2” if you do not have access to the Group Policy Editor. Re-enabling the feature, in that case, will involve some degree of complexity, as you will now see.

To re-enable the Windows Registry using the following method, you have to sign in from an Administrator account.

Open the Group Policy Editor and go toUser Configuration > Administrative Templates > Systemas described earlier. Now double-click on “Prevent access to registry editing tools” in the right pane and choose “Not Configured“. Then, click on OK or Apply to save the changes.

That’s it. You can now access the Registry Editor on your Windows 10 computer again.

Once you have disabled the Registry Editor, you can also re-enable it using theWindows Command Prompt. Here’s how you go about it:

  1. Open Notepad and copy+paste the following code:Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]“DisableRegistryTools”=dword:00000000. Now save it as a registry file (.reg) by hitting the “File -> Save as” option. You can name the file anything you want, but for the purpose of this demo, I’m naming it “EnableRegEdit.reg“.

  2. Now, open the Command Prompt in Admin mode. To do that, search for “command prompt” in the Windows Search Bar and click on the “Run as Administrator“.

  3. Then, run the following command:cd C:\Users[username]\Desktopto navigate to the path of the Reg file.Remember to use the actual location of your file. If it’s on your desktop, the file location will most likely be the same as mine, but don’t forget to use your own username in the command.

  4. Next up, copy+paste the following command to enable the Registry and press Enter:regedit.exe /s EnableRegEdit.reg

That’s it! Your DisableRegistryTools DWORD value will now revert from 1 to 0, and you should regain access to the Registry Editor.

Easily Switch Off Registry Editor on Your Windows 10 PC

Easily Switch Off Registry Editor on Your Windows 10 PC

Now that you know how to enable or disable access to the Registry Editor on your Windows 10 PC, you can do that while handing over your system to someone without having to worry about them messing it up. However, the Windows Registry is a powerful tool, so remember to be cautious whenever you do anything with it. Meanwhile, if you plan on lending your PC to someone, you should also learnhow to password protect files and folders on Windows 10. So go ahead, follow our tutorials to improve your privacy and safeguard your system while sharing your computer with others.

Passionate techie. Professional tech writer. Proud geek.