+4 votes
74 views
Lock Registry Windows 11

in Windows11 by (552k points)
reopened | 74 views

1 Answer

+5 votes
Best answer

1 Block Registry Windows 11 from Policy Editor
2 Lock Windows 11 Registry from Registry Editor

One of the Windows 11 utilities that we use the most at an administrative level is the Registry Editor or regedit which gives us the possibility to access and modify the integrated Windows Registry database locally, this Windows registry is a database where we find the various configurations, options and system values ​​that allow both the system itself and its programs to work correctly, hence the importance of learning to carefully manage each record..

 

 

Key Types
The registry editor is made up of primary keys and secondary keys where the values ​​are stored, these keys are:

 

  • HKEY_CLASSES_ROOT (HKCR): This key contains information about file associations and object classes registered in the operating system.
  • HKEY_CURRENT_USER (HKCU): This is where the specific settings of the currently connected user are located, this covers details such as desktop settings, browser settings and how to use applications.
  • HKEY_LOCAL_MACHINE (HKLM): in this key we find the global settings for the system and for all created users, this covers aspects of hardware, drivers, system settings and installed apps.
  • HKEY_USERS (HKU): This is where the user profiles for all Windows users are located, each user will have a unique subkey where their configuration is stored individually.
  • HKEY_CURRENT_CONFIG (HKCC): This gives us details about the current hardware configuration and the hardware profiles that we use in Windows.

 

 

As we can see, it is a very careful aspect and as such it will be necessary on some occasions to block access to the Registry Editor, especially if various users have access to the PC without adequate knowledge or the necessary precaution, TechnoWikis will teach two ways to block access to the Windows 11 Registry Editor.

 

To stay up to date, remember to subscribe to our YouTube channel!
SUBSCRIBE ON YOUTUBE

 


1 Block Registry Windows 11 from Policy Editor

 

Step 2

This is an option available in the Pro and Enterprise editions, for its use in the start browser we enter "gpedit" and click on "Edit group policy":

 

image

 

Step 2

Let's go to the route:
  • user settings
  • Administrative Templates
  • System

 

Step 3

There we click on "Prevent access to registry editing tools":

 

image

 

Step 4

By double clicking we will see the following:

 

image

 

step 5

We activate the "Enabled" box:

 

image

 

Note
At the bottom we leave the option “Yes” in order to prevent users from editing the database using the "regedit /s" command from the terminal.

 

step 6

Apply the changes:

 

image

 

step 7

Open the Registry Editor:

 

image

 

step 8

When trying to access the Registry Editor you will get an error:

 

image

 

step 9

To access Registry Editor again, open the "Prevent access to registry editing tools" policy:

 

image

 

step 10

We double click and activate the "Not configured" box:

 

image

 

step 11

Apply the changes:

 

image

 

step 12

Open the Registry Editor:

 

image

 

step 13

You will have normal access:

 

image

 


2 Lock Windows 11 Registry from Registry Editor

 

Step 1

This option is available in all editions of Windows 11 and to use it we open the Registry Editor with regedit:

 

image

 

Step 2

Let's go to the route:
 HKEY_CURRENT_USER - SOFTWARE - Microsoft - Windows - CurrentVersion – Policies 
Step 3

We right click on "Policies" and select the "New Key" option:

 

 

 

image

 

Step 4

Assign the name "System":

 

image

 

step 5

Right click on "System" and select "New - DWORD (32-bit) Value":

 

image

 

step 6

Assign the name "DisableRegistryTools":

 

image

 

step 7

Double click on this new value to see its properties:

 

image

 

step 8

Assign the value 1. Apply the changes.

 

 

image

 

step 9

Open the Registry Editor:

 

image

 

step 10

When trying to access the Registry Editor, an error will appear as we have seen before:

 

image

 

step 11

To access the Registry Editor again open notepad:

 

image

 

step 12

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

 

 

step 13

Go to "File - Save As":

 

image

 

 

step 14

Assign a name followed by .reg and under "Type" select "All Files". Save the file.

 

image

 

 

step 15

Now open the terminal as administrator:

 

image

 

 

step 16

Accept the permissions:

 

image

 

step 17

Access the path where the .reg file is:

 

 

image

 

 

step 18

We execute:
 regedit.exe /s file.reg 
image

 

 

step 19

Access the Registry Editor:

 

image

 

step 20

It will open as normal:

 

image

 

These options will help us optimize Windows security by avoiding access to the Registry Editor..

 


by (3.5m points)
edited

Related questions

+4 votes
1 answer
asked Feb 20, 2023 in Windows11 by backtothefuture (552k points) | 90 views
+4 votes
3 answers
asked Aug 14, 2023 in Windows11 by backtothefuture (552k points) | 116 views
+3 votes
1 answer
asked Jan 20, 2022 in Guides by backtothefuture (552k points) | 99 views
+3 votes
1 answer
asked Nov 19, 2021 in Guides by backtothefuture (552k points) | 93 views
+5 votes
1 answer
asked Jan 15 in Windows11 by backtothefuture (552k points) | 54 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users