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](https://i-blog.csdnimg.cn/blog_migrate/0009eabadb70efbba6474576ef1aab05.png)
Update: Windows 7 does the same thing to my Shutdown button, and this same registry hack fixes the problem.
更新:Windows 7对我的“关机”按钮执行相同的操作,并且该相同的注册表黑客解决了该问题。
![](https://i-blog.csdnimg.cn/blog_migrate/dfe43af4062fff9583c2aaf4dd84768a.png)
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](https://i-blog.csdnimg.cn/blog_migrate/adae47dee749bfcd80ec03500b1a46d8.png)
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](https://i-blog.csdnimg.cn/blog_migrate/9faf5ffc8416b2d22077213c5e99e352.png)
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/