Windows 注册表是(Windows Registry)Windows 10中最关键的工具之一。由于它可以深刻地改变您的操作系统的工作方式(或不工作,就此而言),让您 PC 上的每个用户访问它并不是一个好主意。如果您不希望其他人能够使用注册表编辑器(Registry Editor)更改键或值,您应该考虑禁用对Windows 注册表(Windows Registry)的访问。以下是三种不同的方法:
1.如何使用注册表编辑器(Registry Editor)在Windows 10上禁用(Windows 10)Windows 注册表(Windows Registry)
尽管听起来可能违反直觉,但在 Windows 10 中禁用注册表编辑器的最佳方法之一是使用(Registry Editor)注册表编辑器(Registry Editor)本身。打开它(Open it):一种快速的方法是使用任务栏上的搜索字段键入regedit,然后单击或点击注册表编辑器(Registry Editor)结果。
在 Windows 10 上使用搜索打开注册表编辑器(Registry Editor)(regedit)
在注册表编辑器(Registry Editor)中,导航到以下位置:“Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System . ”
计算机HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
如果System密钥不存在,请自行创建。右键单击策略(Policies)键,在上下文菜单中选择新建(New),然后单击或点击键( Key)。
在Windows 注册表(Windows Registry)中创建新键
将新的注册表项命名为System。
命名新密钥系统
接下来,在注册表编辑器( Editor)的右侧面板上,右键单击空白区域并使用上下文菜单在新的系统(System)文件夹中创建一个新的 DWORD(32 位)值。(New DWORD (32-bit) Value)
在注册表编辑器(Registry Editor)中创建新的DWORD(32 位)值(Value)
将新值命名为DisableRegistryTools。
命名新值DisableRegistryTools
要禁用对注册表编辑器(Registry Editor)的访问,请双击DisableRegistryTools并将其值设置为 1。
将值DisableRegistryTools设置为 1
重要提示:(IMPORTANT:)此方法仅对当前用户帐户禁用注册表编辑器。(Registry Editor)如果要为该用户重新启用注册表编辑器,请将(Registry Editor)DisableRegistryTools值更改为 0(零),或直接删除该值。请记住,如果您为管理员禁用了Windows 注册表(Windows Registry),则必须使用另一个管理员帐户为该管理员重新启用注册表编辑器。(Registry Editor)如果您的 Windows 10 PC 上没有配置两个或更多管理员,您可以使用本指南中的其他方法之一启用注册表编辑器。( Editor)
2. 如何使用组策略在Windows 10上禁用(Windows 10)Windows 注册表(Windows Registry)
如果要禁用注册表编辑器,(Registry Editor,)也可以使用本地组策略编辑器(Local Group Policy Editor)来完成。但是,请注意,此工具仅适用于Windows 10 专业版(Pro)和企业版(Enterprise)。如果您使用的是Windows 10 家庭(Home)版,请按照本指南任何其他部分的说明进行操作。
首先打开本地组策略编辑器(opening the Local Group Policy Editor)。一个快速的方法是按键盘上的Win + R运行窗口(Run window),输入gpedit.msc,然后按OK或Enter键。
运行 gpedit.msc 以打开本地组策略编辑器(Local Group Policy Editor)
在本地组策略编辑器(Local Group Policy Editor)中,使用导航窗格转到“User Configuration -> Administrative Templates -> System.”然后,双击或双击右侧面板中的“阻止访问注册表编辑工具”(“Prevent access to registry editing tools”)设置。
用户配置(User Configuration)-> 管理模板(Templates)-> 系统
上一个操作会打开一个窗口,也称为“阻止访问注册表编辑工具”。(“Prevent access to registry editing tools.”)在其中,选择启用(Enabled)设置。然后,单击或点击Apply或OK。
启用阻止(Prevent)访问注册表编辑工具
注册表编辑器(Registry Editor)现在已禁用。如果用户试图打开它,他或她得到的唯一信息是一条消息:“注册表编辑器已被您的管理员禁用。”(“Registry Editor has been disabled by your administrator.”)
(Registry Editor)您的管理员已禁用注册表编辑器
注意:(NOTE:)如果您选择使用本地组策略编辑器禁用(Local Group Policy Editor)注册表编辑(Registry Editor)器,之后任何人都无法访问它。这意味着在您的 Windows 10 PC 上配置的所有标准用户和所有管理员。要重新启用注册表编辑器( Editor),您必须遵循相同的步骤并将策略设置为已禁用(Disabled)或未配置(Not Configured)。
3. 如何使用我们的 DisableRegistryEditor 应用在 Windows 10上禁用(Windows 10)Windows 注册表(Windows Registry)
在Windows 10中禁用(Windows 10)注册表编辑器(Registry Editor)的另一种简单方法是使用我们为您创建的名为DisableRegistryEditor.exe的工具。使用此链接(this link)或本节末尾的链接下载它。将其保存在 Windows 10 PC 上的某个位置。
Digital Citizen制作的DisableRegistryEditor.exe文件
请注意,SmartScreen 过滤器(SmartScreen filter)可能会警告您它来自不受信任的发布者。您收到此通知是因为没有多少人下载和使用它。相信(Trust)我们,它是安全的,不会损害您的计算机。它只是一个保存为可执行文件的PowerShell脚本,具有简单的图形用户界面。要使用此工具,您必须单击或点击“更多信息”(“More info”),然后选择“仍然运行”。(“Run anyway.”)
仍然选择运行 [DisableRegistryEditor.exe]
我们的工具需要管理权限才能工作,因此当Windows 10 的 UAC(Windows 10’s UAC)询问您是否要运行它时,请选择Yes。
允许 DisableRegistryEditor.exe(Allow DisableRegistryEditor.exe)以管理员身份运行
当DisableRegistryEditor打开时,您应该会看到一个带有两个按钮的小窗口。要阻止访问 Windows 10 PC 上的注册表编辑器(Registry Editor),请单击或点击“禁用注册表编辑器”(“Disable Registry Editor”)按钮。
禁用注册表编辑器
应用设置后,您会看到一条消息,通知您“注册表编辑器已被禁用”。(“Registry Editor has been disabled.”)
注册表编辑器已被禁用
要允许访问注册表编辑器(Registry Editor),请单击或点击“启用注册表编辑器”(“Enable Registry Editor”)按钮。
启用注册表编辑器
注意:(NOTE: )我们按原样提供此工具,不提供任何保证。如果您在应用程序中遇到任何问题,请通过本文底部的评论部分告诉我们。
下载:(Download: )DisableRegistryEditor
您是否(Did)在 Windows 10 PC 上禁用了 Windows注册表?(Registry)
现在您知道如何禁用注册表编辑器(Registry Editor)并拒绝用户访问Windows 注册表(Windows Registry)。你为什么要那么做?您是否(Are)与他人共享您的 Windows 10 计算机或设备并希望确保其安全?你还有其他原因吗?在下面的评论部分让我们知道。
3 ways to disable the Windows Registry -
The Windows Registry is one of the most critical tools in Windows 10. As it can profoundly alter how your operating system works (or doesn’t work, for that matter), letting every user on your PC access it is not a good idea. If you don’t want others to be able to change keys or values using the Registry Editor, you should consider disabling access to the Windows Registry. Here are three different ways to do that:
1. How to disable Windows Registry on Windows 10 using Registry Editor
Although it might sound counterintuitive, one of the best ways to disable the Registry Editor in Windows 10 is to use the Registry Editor itself. Open it: a fast way to do that is to use the search field on your taskbar to type regedit, and then click or tap on the Registry Editor result.
Opening Registry Editor (regedit) using search on Windows 10
In Registry Editor, navigate to the following location: “Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.”
Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
If the System key doesn’t exist, create it yourself. Right-click on the Policies key, select New on the contextual menu, and then click or tap on Key.
Creating a new key in Windows Registry
Name the new registry key as System.
Naming the new key System
Next, on the right panel from the Registry Editor, right-click on an empty space and use the contextual menu to create a New DWORD (32-bit) Value inside the new System folder.
Creating a new DWORD (32-bit) Value in Registry Editor
Name the new value DisableRegistryTools.
Naming the new value DisableRegistryTools
To disable access to the Registry Editor, double-click on DisableRegistryTools and set its value to 1.
Setting the value DisableRegistryTools to 1
IMPORTANT: This method disables Registry Editor only for the current user account. If you want to enable Registry Editor back for that user, change the DisableRegistryTools value to 0 (zero), or simply delete the value. Keep in mind that if you disabled Windows Registry for an administrator, you have to use another administrator account to re-enable Registry Editor for that admin. If you don’t have two or more administrators configured on your Windows 10 PC, you can enable the Registry Editor using one of the other methods in this guide.
2. How to disable Windows Registry on Windows 10 using group policy
If you want to disable the Registry Editor, you can also do it using the Local Group Policy Editor. However, know that this tool is only available in Windows 10 Pro and Enterprise. If you’re using Windows 10 Home, follow the instructions from any of the other sections of this guide.
Start by opening the Local Group Policy Editor. A quick way to do it is to press Win + R on your keyboard to fire up the Run window, type gpedit.msc, and press OK or the Enter key.
Running gpedit.msc to open Local Group Policy Editor
In the Local Group Policy Editor, use the navigation pane to go to “User Configuration -> Administrative Templates -> System.” Then, double-click or double-tap on the “Prevent access to registry editing tools” setting from the right panel.
User Configuration -> Administrative Templates -> System
The previous action opens a window also called “Prevent access to registry editing tools.” In it, select the Enabled setting. Then, click or tap on Apply or OK.
Enable Prevent access to registry editing tools
The Registry Editor is now disabled. If a user tries to open it, the only thing he or she gets is a message that says: “Registry Editor has been disabled by your administrator.”
Registry Editor has been disabled by your administrator
NOTE: If you choose to disable the Registry Editor using the Local Group Policy Editor, nobody can access it afterward. That means all standard users and all the administrators configured on your Windows 10 PC. To re-enable the Registry Editor, you have to follow the same steps and set the policy to either Disabled or Not Configured.
3. How to disable Windows Registry on Windows 10 using our DisableRegistryEditor app
Another easy way to disable the Registry Editor in Windows 10 is to use a tool that we created for you, called DisableRegistryEditor.exe. Download it using this link or the one at the end of this section. Save it somewhere on your Windows 10 PC.
The DisableRegistryEditor.exe file made by Digital Citizen
Note that the SmartScreen filter might warn you that it comes from an untrusted publisher. You get this notification because there aren’t that many people downloading and using it. Trust us that it is safe and doesn’t harm your computer. It is only a PowerShell script saved as an executable file with a simple graphical user interface. To use this tool, you have to click or tap on “More info” and then select “Run anyway.”
Choosing to Run [DisableRegistryEditor.exe] anyway
Our tool requires administrative privileges to work, so when Windows 10’s UAC asks you if you want to run it, choose Yes.
Allow DisableRegistryEditor.exe to run, as admin
When DisableRegistryEditor opens, you should see a small window with two buttons. To block access to the Registry Editor on your Windows 10 PC, click or tap the “Disable Registry Editor” button.
Disable Registry Editor
Once the setting is applied, you get to see a message informing you that “Registry Editor has been disabled.”
Registry Editor has been disabled
To allow access to the Registry Editor, click or tap the “Enable Registry Editor” button.
Enable Registry Editor
NOTE: We provide this tool as-is, with no warranties. If you encounter any issues with the app, let us know via the comments section from the bottom of this article.
Download: DisableRegistryEditor
Did you disable Windows Registry on your Windows 10 PC?
Now you know how to disable Registry Editor and deny users access to Windows Registry. Why did you do it? Are you sharing your Windows 10 computer or device with others and want to keep it safe? Do you have other reasons? Let us know in the comments section below.