![image image](https://i-blog.csdnimg.cn/blog_migrate/b201dff64d8375b0bd93fbcb276e6524.png)
Have you seen that message in Windows 8 that tells you your computer is going to reboot and there is not a thing you can do about it except save your work? Here’s how to make sure that never happens again. This tip works for Windows 7 as well.
您是否已在Windows 8中看到该消息,告诉您计算机将重新启动,并且除了保存您的工作之外您无能为力? 这是确保不再发生的方法。 本技巧也适用于Windows 7。
Note that we have covered this method before for preventing Windows 7 from automatically rebooting. This article has two methods for doing the same thing.
请注意,在防止Windows 7自动重新引导之前,我们已经介绍了此方法。 本文提供了两种执行相同操作的方法。
Windows更新后阻止Windows 8重新启动PC (Prevent Windows 8 From Restarting Your PC After Windows Updates)
Press the Win + R keyboard combination to bring up the run dialog then type gpedit.msc and press enter.
按Win + R组合键以弹出运行对话框,然后键入gpedit.msc并按Enter。
![image image](https://i-blog.csdnimg.cn/blog_migrate/a1fb7be26da25d871411d442c95571df.png)
When the Local Group Policy Editor opens, navigate to:
本地组策略编辑器打开时,导航至:
Computer Configuration\Administrative Templates\Windows Components\Windows Update
计算机配置\管理模板\ Windows组件\ Windows更新
![image image](https://www.howtogeek.com/wp-content/uploads/2013/03/ximage28.png.pagespeed.gp+jp+jw+pj+ws+js+rj+rp+rw+ri+cp+md.ic.Qa9y9xhjtD.png)
On the right hand side you will see a setting titled:
在右侧,您将看到一个标题为:
No auto-restart with logged on users for scheduled automatic updates installations
对于计划的自动更新安装,没有使用登录用户自动重启
Double click on it.
双击它。
![image image](https://i-blog.csdnimg.cn/blog_migrate/fdcaf9cd4171bfa7d2a954c6797a5584.png)
From here you will need to enable the setting by changing the radio button from “Not Configured” to “Enabled”, then clicking apply.
在此处,您需要通过将单选按钮从“未配置”更改为“启用”,然后单击“应用”来启用设置。
![image image](https://i-blog.csdnimg.cn/blog_migrate/2111d299ba07ddecd3753844916edd56.png)
As always, we recommend you force a Group Policy update so that the changes will reflect immediately.
与往常一样,我们建议您强制执行组策略更新,以便更改可以立即反映出来。
![image image](https://i-blog.csdnimg.cn/blog_migrate/1aceda1d5b7f1ad68a45e96fc866b964.png)
![image image](https://i-blog.csdnimg.cn/blog_migrate/d1481d715de1a5d382d28c19801e78f1.png)
That’s all there is to it.
这里的所有都是它的。
使用注册表 (Using the Registry)
If your version of Windows 8 doesn’t ship with the Group Policy editor, you can always use the registry to disable these reboots. Again press the Windows + R keyboard combination to bring up a run box – type regedit then hit enter.
如果您的Windows 8版本未随组策略编辑器一起提供,则始终可以使用注册表来禁用这些重新启动。 再次按Windows + R键盘组合以弹出运行框-键入regedit,然后按Enter。
![image image](https://i-blog.csdnimg.cn/blog_migrate/2ed4a5a950442fabda278f1707289111.png)
Now navigate to:
现在导航至:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Microsoft \ Windows \ WindowsUpdate \ AU
Note: If you don’t see the Windows Update or AU keys you may have to create them.
注意:如果看不到Windows Update或AU键,则可能必须创建它们。
Then create a new 32-bit DWORD called NoAutoRebootWithLoggedOnUsers.
然后创建一个名为NoAutoRebootWithLoggedOnUsers的新的32位DWORD。
![image image](https://i-blog.csdnimg.cn/blog_migrate/74c993980e0eede34f5c6e10b309eb59.png)
Then double click on it and give it a hex value of 1.
然后双击它,并使其十六进制值为1。
![image image](https://i-blog.csdnimg.cn/blog_migrate/41228dea408fc71c6830fe44e00873a4.png)
Reboot your machine and you’re good to go!
重新启动计算机,一切顺利!
翻译自: https://www.howtogeek.com/139993/prevent-windows-8-from-restarting-your-pc-after-windows-updates/