cmd禁用控制面板_如何在Windows中禁用控制面板和设置界面

cmd禁用控制面板

cmd禁用控制面板

dcp_top

The Windows Control Panel and Settings interface both expose a lot of settings that you might not want some users messing around with. Here’s how to disable them in Windows 7, 8, and 10.

Windows“控制面板”和“设置”界面都公开了很多设置,您可能不希望某些用户弄乱这些设置。 以下是在Windows 7、8和10中禁用它们的方法。

Why disable the Control Panel and Settings interface? Perhaps you share a computer and want certain users not to have access to settings. Or perhaps you have a computer in your business that is available to guests and customers and that you just want to lock it down a bit. Disabling the Control Panel and Settings interface is a pretty easy way to make sure the settings on a computer don’t get changed by accident. If you have a Pro or Enterprise edition of Windows, you can use the Local Group Policy Editor to make the change. Users of any edition of Windows can also make a quick edit to the Registry.

为什么要禁用“控制面板和设置”界面? 也许您共享一台计算机,并希望某些用户不能访问设置。 也许您的企业中有一台可供客人和客户使用的计算机,而您只是想将其锁定一点。 禁用“控制面板和设置”界面是一种很简单的方法,可确保不会意外更改计算机上的设置。 如果您具有Windows Pro或Enterprise版本,则可以使用“本地组策略编辑器”进行更改。 任何Windows版本的用户都可以对注册表进行快速编辑。

In Windows 8 and 10, this will disable both the Control Panel and the newer Settings interface. Obviously, if you’re using Windows 7, there is no settings interface, so this will just disable the Control Panel.

在Windows 8和10中,这将同时禁用“控制面板”和较新的“设置”界面。 显然,如果您使用的是Windows 7,则没有设置界面,因此只会禁用控制面板。

家庭用户:通过编辑注册表禁用控制面板和设置界面 (Home Users: Disable the Control Panel and Settings Interface by Editing the Registry)

If you have Windows 7, 8, or 10 Home, you will have to edit the Windows Registry to make these changes. You can also do it this way if you have Windows Pro or Enterprise, but just feel more comfortable working in the Registry. (If you have Pro or Enterprise, though, we recommend using the easier Local Group Policy Editor, as described in the next section.)

如果您使用Windows 7、8或10 Home,则必须编辑Windows注册表以进行这些更改。 如果您拥有Windows Pro或Enterprise,也可以通过这种方式进行操作,但是在注册表中工作会更自在。 (但是,如果您具有Pro或Enterprise,我们建议使用更简单的“本地组策略编辑器”,如下一节所述。)

Standard warning: Registry Editor is a powerful tool and misusing it can render your system unstable or even inoperable. This is a pretty simple hack and as long as you stick to the instructions, you shouldn’t have any problems. That said, if you’ve never worked with it before, consider reading about how to use the Registry Editor before you get started. And definitely back up the Registry (and your computer!) before making changes.

标准警告:注册表编辑器是一个功能强大的工具,滥用它会使您的系统不稳定甚至无法运行。 这是一个非常简单的技巧,只要您按照说明进行操作,就不会有任何问题。 也就是说,如果您以前从未使用过它,请在开始之前考虑阅读有关如何使用注册表编辑器的信息 。 并在进行更改之前一定要备份注册表 (和您的计算机 !)。

Before you get started editing the Registry, you’ll need to log on as the user you want to make changes for, and then edit the Registry while logged in to their account. If you have multiple users for whom you want to changes for, you’ll have to repeat the process for each user.

在你开始之前编辑注册表,你需要登录作为用户要进行更改 ,然后编辑注册表,而在自己的帐户登录。 如果您要更改多个用户,则必须为每个用户重复该过程。

After logging on, open the Registry Editor by hitting Start and typing “regedit.” Press Enter to open Registry Editor and give it permission to make changes to your PC.

登录后,通过单击开始并键入“ regedit”打开注册表编辑器。 按Enter键打开注册表编辑器,并授予其对PC进行更改的权限。

dcp_1

In the Registry Editor, use the left sidebar to navigate to the following key:

在注册表编辑器中,使用左侧边栏导航至以下键:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\
dcp_2

Next, you’ll need to make sure that a subkey named Explorer exists inside the Policies key. If you already see the Explorer key, you’re good to go on to the next step. If you don’t see it, you’ll need to create one. Right-click the Policies key and choose New > Key. Name the new key Explorer .

接下来,您需要确保Policy键中存在一个名为Explorer的子键。 如果您已经看到Explorer键,则可以继续进行下一步。 如果看不到,则需要创建一个。 右键单击“ Policies密钥,然后选择“新建”>“密钥”。 将新密钥命名为Explorer

dcp_3

Next, you’re going to create a value inside the new Explorer key. Right-click the Explorer key and choose New > DWORD (32-bit) Value. Name your new value NoControlPanel .

接下来,您将在新的Explorer键中创建一个值。 右键单击Explorer键,然后选择“新建”>“ DWORD(32位)值”。 将新值NoControlPanel

dcp_4

Double-click the new NoControlPanel value to open its properties window. Change the value from 0 to 1 in the “Value data” box and then click “OK.”

双击新的NoControlPanel值以打开其属性窗口。 在“数值数据”框中将值从0更改为1,然后单击“确定”。

dcp_5

And that’s all you have to do. The changes should take place immediately with no need for restarting Windows. You’ll still see the Settings icon on the Start menu (in Windows 10) or Charms bar (in Windows 8) and you’ll still see the Control Panel shortcut in all versions of Windows, but clicking any of them will not work. If you try to pull up Settings, nothing will happen. If you try to open Control Panel, you’ll be greeted with an error message.

这就是您要做的。 更改应立即进行,而无需重新启动Windows。 您仍然会在“开始”菜单(在Windows 10中)或“超级按钮”栏(在Windows 8中)上看到“设置”图标,并且在所有Windows版本中仍会看到“控制面板”快捷方式,但是单击其中的任何一个均不起作用。 如果您尝试调出设置,则不会发生任何事情。 如果您尝试打开“控制面板”,则会收到一条错误消息。

dcp_6

And if you ever want to restore access to the Control Panel, just log on as the affected user, open up Registry Editor, and change the NoControlPanel value from 1 back to 0.

而且,如果您想恢复对控制面板的访问,只需以受影响的用户身份登录,打开注册表编辑器,然后将NoControlPanel值从1更改回0。

下载我们的一键式注册表黑客 (Download Our One-Click Registry Hack)

dcp_7

If you don’t feel like diving into the Registry yourself, we’ve created two downloadable registry hacks you can use. One hack disables access to Control Panel and Settings and the other hack enables access. Both are included in the following ZIP file. Double-click the one you want to use and click through the prompts. Just remember that you’ll need to log on with the user account you want to make the changes for first.

如果您不想自己进入注册表,我们创建了两个可供下载的注册表黑客。 一种hack禁用对控制面板和设置的访问,另一种hack允许访问。 两者都包含在以下ZIP文件中。 双击您要使用的一个,然后单击提示。 请记住,您需要首先使用要进行更改的用户帐户登录。

Windows Control Panel Hacks

Windows控制面板黑客

These hacks are really just the Explorer  key, stripped down to the NoControlPanel value we described above, and then exported to a .REG file. Running the “Disable Control Panel and Settings” hack creates the Explorer key and the NoControlPanel value and sets the value to 1. Running the “Enable Control Panel and Settings (Default)” hack sets the value back to 0.  And if you enjoy fiddling with the Registry, it’s worth taking the time to learn how to make your own Registry hacks.

这些hack实际上只是Explorer密钥,被简化为我们上面描述的NoControlPanel值,然后导出到.REG文件。 运行“禁用控制面板和设置” hack创建Explorer键和NoControlPanel值,并将其值设置为1。运行“启用控制面板和设置(默认)” hack将值NoControlPanel为0。如果您喜欢摆弄使用注册表,值得花时间学习如何制作自己的注册表黑客

专业版和企业版用户:使用本地组策略编辑器禁用控制面板和设置界面 (Pro and Enterprise Users: Disable the Control Panel and Settings Interface with Local Group Policy Editor)

If you’re using Windows Pro or Enterprise, the easiest way to disable the Control Panel and Settings interface is by using the Local Group Policy Editor. It also gives you a bit more power over which users have this restriction. If you’re restricting access to the Control Panel and Settings interface for only some user accounts on a PC, you’ll need to do a little extra setup by first creating a policy object for those users. You can read all about that in our guide to applying local Group Policy tweaks to specific users.

如果您使用的是Windows Pro或Enterprise,则禁用“控制面板和设置”界面的最简单方法是使用“本地组策略编辑器”。 它还使您可以更灵活地控制哪些用户具有此限制。 如果您仅对PC上的某些用户帐户限制了对“控制面板和设置”界面的访问权限,则需要先为这些用户创建策略对象,以进行一些额外的设置。 您可以在将本地组策略调整应用于特定用户的指南中阅读所有相关内容。

You should also be aware that group policy is a pretty powerful tool, so it’s worth taking some time to learn what it can do. Also, if you’re on a company network, do everyone a favor and check with your admin first. If your work computer is part of a domain, it’s also likely that it’s part of a domain group policy that will supersede the local group policy, anyway.

您还应该意识到,组策略是一个非常强大的工具,因此值得花一些时间来学习它可以做什么 。 另外,如果您在公司网络中,请给所有人一个帮助,并首先与您的管理员联系。 如果您的工作计算机是域的一部分,则它也很可能是域组策略的一部分,无论如何,该组策略将取代本地组策略。

Start by finding the MSC file you created for controlling policies for those particular users. Double-click to open it and allow it to make changes to your PC. In this example, we’re using one we created for applying policy to all non-administrative user accounts.

首先找到您创建的用于控制那些特定用户的策略的MSC文件。 双击打开它,并允许它对您的PC进行更改。 在此示例中,我们使用创建的策略将策略应用于所有非管理用户帐户。

In the Group Policy window for those users, on the left-hand side, drill down to User Configuration > Administrative Templates > Control Panel. On the right, find the “Prohibit access to Control Panel and PC settings” item and double-click it to open its properties dialog. If you’re running Windows 7, this item will just be named “Prohibit access to the Control Panel,” since there was no separate Settings interface in Windows 7.

在这些用户的“组策略”窗口的左侧,深入到“用户配置”>“管理模板”>“控制面板”。 在右侧,找到“禁止访问控制面板和PC设置”项,然后双击它以打开其属性对话框。 如果您运行的是Windows 7,则此项目将仅被命名为“禁止访问控制面板”,因为Windows 7中没有单独的“设置”界面。

dcp_8

In the setting’s properties window, click the “Enabled” option and then click “OK.”

在设置的属性窗口中,单击“启用”选项,然后单击“确定”。

dcp_9

You can now exit the Local Group Policy Editor. Changes should take place immediately, so there’s no need to restart Windows first. The Control Panel and Settings interface should no longer be accessible to the user. To reverse the change later, just go back to the same “Prohibit access to Control Panel and PC settings” item and change its setting back to “Not Configured.”

现在,您可以退出本地组策略编辑器。 更改应立即进行,因此无需先重新启动Windows。 用户应该不再可以访问“控制面板和设置”界面。 要稍后撤消更改,只需返回相同的“禁止访问控制面板和PC设置”项,然后将其设置更改回“未配置”即可。

翻译自: https://www.howtogeek.com/howto/16189/configure-what-items-are-available-in-control-panel-or-completely-disable-it-in-windows-7/

cmd禁用控制面板

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值