在Windows 7中删除关机和重新启动按钮

Sometimes you might have a shared computer where you don’t want the users to be able to do a Shutdown or Restart. Today we take a look at using Local Group Policy Editor to remove those buttons from the Start Menu in Windows 7.

有时,您可能有一台共享计算机,但您不希望用户能够执行关机或重新启动。 今天,我们来看看使用本地组策略编辑器从Windows 7的“开始”菜单中删除那些按钮。

Note: This process uses Local Group Policy Editor which is not available in Starter or Home versions of Windows 7.

注意:此过程使用Windows 7的Starter或Home版本中不可用的本地组策略编辑器。

在Windows 7中删除关机和重新启动按钮

Disable Shutdown, Restart, Sleep, and Hibernate Buttons

禁用关机,重新启动,睡眠和Hibernate按钮

To open Local Group Policy Editor, click on Start and type in gpedit.msc and hit Enter.

要打开本地组策略编辑器,请单击“开始”,然后键入gpedit.msc ,然后按Enter。

在Windows 7中删除关机和重新启动按钮

In Local Group Policy Editor navigate to User Configuration \ Administrative Templates \ Start Menu and Taskbar and double click on Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands.

在“本地组策略编辑器”中,导航到“用户配置” \“管理模板” \“开始”菜单和任务栏,然后双击“删除”并阻止访问“关机”,“重新启动”,“睡眠”和“Hibernate”命令

在Windows 7中删除关机和重新启动按钮

Now you want to enable this setting and click Apply and Ok. You can leave a note to yourself in the comment box, which I find comes in handy when changing a lot of settings in Group Policy.

现在,您要启用此设置,然后单击“应用”和“确定”。 您可以在注释框中留下自己的注释,我发现在更改组策略中的许多设置时会很方便。

在Windows 7中删除关机和重新启动按钮

Now when you look at the Power options in the Start Menu, the only options available are Log off, Switch user, and Lock.

现在,当您查看“开始”菜单中的“电源”选项时,唯一可用的选项是“注销”,“切换用户”和“锁定”。

在Windows 7中删除关机和重新启动按钮

The setting goes into effect right away for all users of the machine. The button to turn off the computer if the user hits Ctrl+Alt+Del will be gone as well.

该设置对本机的所有用户立即生效。 如果用户单击Ctrl + Alt + Del,则关闭计算机的按钮也将消失。

翻译自: https://www.howtogeek.com/howto/7553/remove-shutdown-and-restart-buttons-in-windows-7/