如何在Windows 7上没有更新的情况下关闭计算机?


21

有时,当我的Win 7计算机上的程序崩溃(例如Firefox或IE)时,我想关闭计算机而不安装任何Windows更新。那是因为我担心,如果IE或Firefox崩溃了,系统就不会处于非常稳定的状态,因此我宁愿稍后再安装更新。

但似乎我只有2个选择:

1)关闭并始终执行任何更新
2)重新启动,并且不执行任何更新

(这些是“关闭/注销”选项中的2个选择)

那么有没有办法不进行更新就关机的方法吗?还是我必须首先重新启动,然后执行更新,然后关闭?

原因之一是,如果您要乘公共汽车或乘飞机,则要关闭它然后走。您不想等待额外的5、10分钟来更新它,也不想重启,因为您的目标是将其关闭。


嗯?我不太了解您的需求。我同意这是一个奇怪的Windows行为,但是应该可以关闭计算机并应用更新。
r0ca 2010年

2
我觉得没有什么仍然是OS时,它的应用更新的可以得到不稳定,似乎仍然功能,这几乎是操作系统的核心。
Phoshi

1
@Phoshi我很确定Windows的任何部分都可能变得不稳定:-)。否则您的硬件可能会沉闷。
布莱斯

Answers:


16

您可以按Ctrl+ Alt+,Del然后从右下方菜单中选择关闭。如果从此界面关闭,它将不会安装更新。

替代文字


即使他按了Windows-Shutdown,也应该可以选择关闭,也可以选择关闭并安装更新。
r0ca 2010年


是用户级别的东西吗?我知道在Win 7机器上看到了这两个选项
Chris_K,2010年

是的,但是您有未决的更新吗?我相当确定它已从7 Beta开始被删除:windowssecrets.com/comp/090312#insid1
John T

昨晚我看到了。但是...现在我坐在这里想知道特定机器是否仍在运行RC版本。东西来检查时,我回家:-)
Chris_K

11

How-To Geek提供了一个注册表黑客,有关如何在此处禁用此功能:

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

添加一个名为32位的DWORD值NoAUAsDefaultShutdownOption,以HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsUpdate\AU与1号重新启动的值应该是必要的。

您可以手动应用它,也可以下载启用或禁用此功能的注册表文件。我将其部署到我拥有的所有Windows 7计算机上,并且运行良好。


2
同样,在此处发布实际的注册表项也将有所帮助。
凯文·基布尔

4

简单的方法是,在桌面上按Alt+ F4,然后选择“关闭电源”(或“关机”,类似...)


4

我自己进行了测试,并确认此方法有效:

  1. 去开始
  2. gpedit.msc
  3. 用户配置
  4. 管理模板
  5. Windows组件
  6. Windows更新。

在此处,您会找到一个名为“在“关闭Windows”对话框中不要将默认选项调整为“安装更新并关闭”的选项”的选项。如果启用此功能,则单击“关闭”将仅关闭计算机而无需安装更新。但是,如果需要,“安装更新并关闭”选项在小菜单中仍然可用。


这以一种更舒适的方式为该答案设置了相同的注册表项
Tobias Kienzler 2015年

3

另一个选择是按Win + R弹出运行菜单,然后键入

shutdown /t 0 /s

/t 0 表示0秒后关闭。

/s表示关闭。您可以改用/r重新启动或/l注销。

还有其他选择

Usage: C:\Windows\system32\shutdown.exe [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]
    [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]

    No args    Display help. This is the same as typing /?.
    /?         Display help. This is the same as not typing any options.
    /i         Display the graphical user interface (GUI).
               This must be the first option.
    /l         Log off. This cannot be used with /m or /d options.
    /s         Shutdown the computer.
    /r         Shutdown and restart the computer.
    /g         Shutdown and restart the computer. After the system is
               rebooted, restart any registered applications.
    /a         Abort a system shutdown.
               This can only be used during the time-out period.
    /p         Turn off the local computer with no time-out or warning.
               Can be used with /d and /f options.
    /h         Hibernate the local computer.
               Can be used with the /f option.
    /e         Document the reason for an unexpected shutdown of a computer.
    /m \\computer Specify the target computer.
    /t xxx     Set the time-out period before shutdown to xxx seconds.
               The valid range is 0-315360000 (10 years), with a default of 30.
               If the timeout period is greater than 0, the /f parameter is
               implied.
    /c "comment" Comment on the reason for the restart or shutdown.
               Maximum of 512 characters allowed.
    /f         Force running applications to close without forewarning users.
               The /f parameter is implied when a value greater than 0 is
               specified for the /t parameter.
    /d [p|u:]xx:yy  Provide the reason for the restart or shutdown.
               p indicates that the restart or shutdown is planned.
               u indicates that the reason is user defined.
               If neither p nor u is specified the restart or shutdown is
               unplanned.
               xx is the major reason number (positive integer less than 256).
               yy is the minor reason number (positive integer less than 65536).

Reasons on this computer:
(E = Expected U = Unexpected P = planned, C = customer defined)
Type    Major   Minor   Title

 U      0       0       Other (Unplanned)
E       0       0       Other (Unplanned)
E P     0       0       Other (Planned)
 U      0       5       Other Failure: System Unresponsive
E       1       1       Hardware: Maintenance (Unplanned)
E P     1       1       Hardware: Maintenance (Planned)
E       1       2       Hardware: Installation (Unplanned)
E P     1       2       Hardware: Installation (Planned)
E       2       2       Operating System: Recovery (Planned)
E P     2       2       Operating System: Recovery (Planned)
  P     2       3       Operating System: Upgrade (Planned)
E       2       4       Operating System: Reconfiguration (Unplanned)
E P     2       4       Operating System: Reconfiguration (Planned)
  P     2       16      Operating System: Service pack (Planned)
        2       17      Operating System: Hot fix (Unplanned)
  P     2       17      Operating System: Hot fix (Planned)
        2       18      Operating System: Security fix (Unplanned)
  P     2       18      Operating System: Security fix (Planned)
E       4       1       Application: Maintenance (Unplanned)
E P     4       1       Application: Maintenance (Planned)
E P     4       2       Application: Installation (Planned)
E       4       5       Application: Unresponsive
E       4       6       Application: Unstable
 U      5       15      System Failure: Stop error
 U      5       19      Security issue
E       5       19      Security issue
E P     5       19      Security issue
E       5       20      Loss of network connectivity (Unplanned)
 U      6       11      Power Failure: Cord Unplugged
 U      6       12      Power Failure: Environment
  P     7       0       Legacy API shutdown

0

您可以更改计算机为一体的电源按钮的功能。更改设置以关闭计算机。这将关闭计算机,将停止安装更新。

要更改电源按钮在Win7中的功能,请执行以下操作:
ControlPanel->电源选项->右键单击“选择电源按钮的功能”

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.