阻止Windows Update劫持“睡眠/关机”按钮

As an avid user of the Sleep function on my laptop, I’ve been more than irritated with Windows 7 or Vista’s habit of changing the Sleep/Shutdown button into an “Install Updates and Shut Down” button whenever there are updates from Windows Update.

作为笔记本电脑上“睡眠”功能的狂热用户,我对Windows 7或Vista的习惯感到非常恼火,只要有Windows Update更新,我就会习惯将“睡眠/关机”按钮更改为“安装更新和关机”按钮。

After the last time I accidentally clicked this stupid button when I just wanted to enter sleep mode, I decided to look for a solution.

在上次我只是想进入睡眠模式时不小心单击了该愚蠢的按钮之后,我决定寻找解决方案。

image

Update: Windows 7 does the same thing to my Shutdown button, and this same registry hack fixes the problem.

更新:Windows 7对我的“关机”按钮执行相同的操作,并且该相同的注册表黑客解决了该问题。

Manual Registry Hack

手动注册表破解

If you’d like to manually create this hack, you can open up regedit.exe using the start menu search box and then browse down to the following key, creating the key if it doesn’t exist.

如果您想手动创建此黑客,则可以使用“开始”菜单搜索框打开regedit.exe,然后向下浏览至以下密钥,如果该密钥不存在,则创建该密钥。

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

HKEY_CURRENT_USER \ Software \ Policies \ Microsoft \ Windows \ WindowsUpdate \ AU

image

Add a 32-bit DWORD value called NoAUAsDefaultShutdownOption with a value of 1. No reboot should be necessary.

添加一个名为NoAUAsDefaultShutdownOption的32位DWORD值,其值为1。无需重新引导。

Now our Sleep button should be back to the way it was, but if you wanted to use the Install Updates and Shut Down option, it’s still available via the shutdown menu:

现在我们的“睡眠”按钮应该恢复到原来的状态,但是如果您想使用“安装更新并关闭”选项,则仍可以通过关闭菜单使用它:

image

Download Registry Hack

下载注册表黑客

Unzip the file and double-click on the StopHijackingMySleepButton.reg file to activate the registry hack. You shouldn’t have to restart anything, as the changes will happen immediately. There’s also a registry file to uninstall the hack.

解压缩该文件,然后双击StopHijackingMySleepButton.reg文件以激活注册表黑客。 您不必重新启动任何操作,因为更改将立即发生。 还有一个注册表文件可卸载黑客。

I believe there is a similar option for XP, but I’m guessing the key is located in a different place.

我相信XP也有类似的选择,但是我猜钥匙位于不同的地方。

Download StopHijackingMySleepButton Registry Hack

下载StopHijackingMySleepButton注册表黑客

翻译自: https://www.howtogeek.com/howto/windows-vista/stop-windows-update-from-hijacking-the-sleep-button/

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值