Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Windows » How to Disable and Enable Registry Access on Windows 11
  • WDS
    An error occurred while trying to start the Windows deployment services error 0x906 Windows Server
  • 960x0
    How to resolve request timed out when pinging Windows Server
  • trip wire feature
    How to install and configure Tripwire on Ubuntu Linux
  • Featured image Unblock Microsoft Store
    How to Unblock Microsoft Store on Windows 11 Windows
  • screenshot 2020 05 11 at 15.03.02
    How to record the screen of macOS Mac
  • 1237968 3d79
    How to perform sysprep in Windows Windows
  • fjkjcvbnm
    How to enable Enhanced Networking Adapter (ENA) on Windows AWS/Azure/OpenShift
  • Azure SASE
    [AZURE] Security Service Edge (SSE) and Microsoft Entra ID AWS/Azure/OpenShift

How to Disable and Enable Registry Access on Windows 11

Posted on 30/06/202301/07/2023 Matthew By Matthew No Comments on How to Disable and Enable Registry Access on Windows 11
How to Disable and Enable Registry Access on Windows 11
How to Disable and Enable Registry Access on Windows 11

The Windows Registry is a critical database that stores configuration settings for the operating system, hardware, and installed applications. Making incorrect changes to the Registry can have severe consequences, leading to irreversible damage to your system. Therefore, it’s essential to exercise caution when accessing and modifying the Registry. In this guide, we will explore two methods for how to Disable and Enable Registry Access on Windows 11 using the Local Group Policy Editor and the Registry Editor. Please see How to search through the Windows registry, how to display Windows system information via the Windows registry, and how to block upgrades to Windows 11 through Local Group Policy or Registry Editor from Windows 10.

Note: Editing the Registry can be risky, so it's crucial to back up your PC before proceeding.

Here are other related guides on Windows Registry: How to add and modify the Windows Registry from the Command Prompt, How to add Registry keys via DISM in Windows,  How to Get, Edit, Create and Delete Registry Keys via PowerShell in Windows, Smart App Control and how to enable Phishing Protection: Windows 11 New Security Features, and How to enable or disable Core Isolation Memory Integrity in Windows 10 and 11.

Method 1: Disable Windows Registry Access through the Local Group Policy Editor

The Local Group Policy Editor is available in Windows 11 Pro, Enterprise, and Education editions. Follow these steps to block Registry access:

Press “Windows + R” key together to open Run, type “gpedit.msc” and hit Enter to launch the Local Group Policy Editor.

Run utility
Run utility

Navigate to the following path :

User Configuration > Administrative Templates > System

Double-click on the “Prevent access to registry editing tools” policy on the right side.

Navigate to Prevent access to registry editing tool in the Local Group Policy Editor
Navigate to Prevent access to registry editing tool in the Local Group Policy Editor

In the policy settings, select “Enabled.” Under the “Options” section, choose “Yes” to prevent users from editing the Registry using the “regedit /s” command.

Enable Prevent Access to Registry Editing tool
Enable Prevent Access to Registry Editing tool

Click “Apply” and then “OK” to save the changes. Restart your system for the configuration to take effect.

Please see How to set Desktop Wallpaper, Prevent access to Registry Editing tools, enable Screen Saver Timeout, and Password Protect the Screensaver via Group Policy, and how to Check if Windows Updates were installed on your device via the Registry Editor.

How to Re-enable Registry Access

Press “Windows + R” key together to open Run, type “gpedit.msc” and hit Enter to launch the Local Group Policy Editor.

Run utility
Run utility

Navigate to the following path :

User Configuration > Administrative Templates > System

Double-click on the “Prevent access to registry editing tools” policy.

Navigate to Prevent access to registry editing tool in the Local Group Policy Editor
Navigate to Prevent access to registry editing tool in the Local Group Policy Editor

Select “Not configured.”

Set Prevent Access to Registry Editing tool to Not Configured
Set Prevent Access to Registry Editing tool to Not Configured

Click “Apply” and then “OK.”

Method 2: Restrict Registry Access through the Registry Editor

If you are using Windows 11 Home edition, you can restrict Registry access using the Registry Editor. Keep in mind that you will need to repeat the steps for each user account. Here’s how:

Open the Registry Editor (RegEdit.exe) by searching for it in the Start menu.

Open Registry Editor
Open Registry Editor

Navigate to the following path:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies

Right-click on the “Policies” key, select “New,” and click on “Key.” Name the key “System” and press Enter.

Create System key in Policies
Create System key in Policies

Right-click on the newly created “System” key, select “New,” and click on “DWORD (32-bit) Value.” Name the key “DisableRegistryTools” and press Enter.

Create DWORD in the System key
Create DWORD in the System key

Double-click the “DisableRegistryTools” DWORD and set its value to “1” to block Registry access.

Change the DWORD value data
Change the DWORD value data

Close the Registry Editor. The new setting will take effect immediately for the respective user account.

Registry editing disabled
Registry editing disabled

Now, when a user try accessing the Registry Editor it displays a message saying “Registry editing has been disabled by your administrator.”

How To Re-enable Registry Access Using Command Prompt (Permit Registry Access)

Since you won’t be able to launch the Registry Editor, follow these steps:

Open the Start menu, search for “Notepad” and open the app.

Open Notepad
Open Notepad

Copy and paste the following content into Notepad:

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

Save the file with a descriptive name, such as “reenable_registry.reg.”

Save the registry entries
Save the registry entries

Open the Start menu, search for “Command Prompt,” right-click on the result, and select “Run as administrator.”

Open Command Prompt
Open Command Prompt

Use the “cd” command to navigate to the folder where the “.reg” file is located.

Execute the following command to re-enable Registry access:

regedit.exe /s reenable_registry.reg
Reenable Registry editing
Reenable Registry editing

After executing the command, restart your system. You will regain access to the Registry as an admin once the system reboots.

Enabling Registry Editor using UnHookExec.inf from Symantec

To enable the Registry Editor and remove restrictions on modifying registry keys, you can use the UnHookExec.inf file provided by Symantec. This small .inf file is designed to address the issue of viruses, spyware, trojans, or worms that often target the shell\open\command keys, allowing them to execute each time a specific file type is opened. Typically, these malicious programs associate their execution with .exe files. However, by using UnHookExec.inf, you can not only enable Registry editing but also remove such associations.

To use UnHookExec.inf, follow these steps:

Open Notepad and copy the code provided below:

[Version]
Signature="$Chicago$"
Provider=Symantec

[DefaultInstall]
AddReg=UnhookRegKey

[UnhookRegKey]
HKLM, Software\CLASSES\batfile\shell\open\command,,,"""%1"" %*"
HKLM, Software\CLASSES\comfile\shell\open\command,,,"""%1"" %*"
HKLM, Software\CLASSES\exefile\shell\open\command,,,"""%1"" %*"
HKLM, Software\CLASSES\piffile\shell\open\command,,,"""%1"" %*"
HKLM, Software\CLASSES\regfile\shell\open\command,,,"regedit.exe ""%1"""
HKLM, Software\CLASSES\scrfile\shell\open\command,,,"""%1"" %*"
HKCU, Software\Microsoft\Windows\CurrentVersion\Policies\System,DisableRegistryTools,0x00000020,0

Save the file as UnHookExec.inf (you can choose any name, but make sure it has the .inf extension).

Copy and paste the UnHookExec code
Copy and paste the UnHookExec code

Right-click on the UnHookExec.inf file and select “Install.” Please note that installing the file will not display any pop-ups or notice boxes.

Install the UnHookExec file
Install the UnHookExec file

Registry Editor will be immediately accusable. If it is not, restart your PC.

Conclusion

By following these steps, you can effectively control and manage Registry access on your Windows 11 system, ensuring the security and stability of your operating environment. Remember to exercise caution and always back up your system before making any changes to the Registry.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Tags:Registry, Registry Editor, Registry Keys, RegistryEditor, Windows 10, Windows 11, Windows Registry

Post navigation

Previous Post: How to configure additional LSA Protection
Next Post: How to remove malware using Microsoft Safety Scanner on Windows 10 and 11

Related Posts

  • fddd
    How to check the version of Windows ADK Windows
  • BitLocker 1
    Unable to install Microsoft Bitlocker Administration: Uninstall your current version of MBAM and run setup again Windows
  • Shared Folder
    How to access shared resources from two different domains Windows
  • windows 10 bjw3 1280x720 1
    How to Find the Pathname of a Mapped Network Drive Windows
  • Fix Secure Boot certificate expiration
    Enable Secure Boot: Fix Secure Boot certificates expiration Windows
  • screenshot 2020 02 08 at 15.53.31
    Enable Automatic Logon via Windows Registry Windows

More Related Articles

fddd How to check the version of Windows ADK Windows
BitLocker 1 Unable to install Microsoft Bitlocker Administration: Uninstall your current version of MBAM and run setup again Windows
Shared Folder How to access shared resources from two different domains Windows
windows 10 bjw3 1280x720 1 How to Find the Pathname of a Mapped Network Drive Windows
Fix Secure Boot certificate expiration Enable Secure Boot: Fix Secure Boot certificates expiration Windows
screenshot 2020 02 08 at 15.53.31 Enable Automatic Logon via Windows Registry Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • WDS
    An error occurred while trying to start the Windows deployment services error 0x906 Windows Server
  • 960x0
    How to resolve request timed out when pinging Windows Server
  • trip wire feature
    How to install and configure Tripwire on Ubuntu Linux
  • Featured image Unblock Microsoft Store
    How to Unblock Microsoft Store on Windows 11 Windows
  • screenshot 2020 05 11 at 15.03.02
    How to record the screen of macOS Mac
  • 1237968 3d79
    How to perform sysprep in Windows Windows
  • fjkjcvbnm
    How to enable Enhanced Networking Adapter (ENA) on Windows AWS/Azure/OpenShift
  • Azure SASE
    [AZURE] Security Service Edge (SSE) and Microsoft Entra ID AWS/Azure/OpenShift

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.