安装Windows更新后,如何在Windows Server 2012中取消自动重新启动

这里的东西 – “closures-a”选项不起作用,没有“稍后重新启动”button,只是15分钟的倒数计时器,无法取消它。

我该怎么办? 我读了一些地方,如果我locking,它会冻结计时器,直到我下一次login,但我不想等到“时间是正确的”。

计时器是Windows更新服务的一部分,而不是操作系统本身,所以你可以通过停止服务停止尝试net stop "windows update" ,应该做的伎俩。

但是这是一个临时的解决scheme,因为服务将在以后重新启动时重新启动,我想你真正想要的是迫使Windows在更新计划时间重新启动,基本上你需要添加一个registry项来尝试此链接http://support.microsoft.com/kb/2835627

我build议使用PSWindowsUpdate powershell模块。 它允许你忽略重启。

 Import-Module PSWindowsUpdate Get-WUInstall -AcceptAll -IgnoreReboot 

如果您收到错误“指定的模块”PSWindowsUpdate“未被加载,因为没有find有效的模块文件…”您可能需要下载并使用此脚本进行安装。

 $webDeployURL = "https://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc/file/41459/43/PSWindowsUpdate.zip" $filePath = "$($env:TEMP)\PSWindowsUpdate.zip" (New-Object System.Net.WebClient).DownloadFile($webDeployURL, $filePath) $shell = New-Object -ComObject Shell.Application $zipFile = $shell.NameSpace($filePath) $destinationFolder = $shell.NameSpace("C:\Program Files\WindowsPowerShell\Modules") $copyFlags = 0x00 $copyFlags += 0x04 # Hide progress dialogs $copyFlags += 0x10 # Overwrite existing files $destinationFolder.CopyHere($zipFile.Items(), $copyFlags) # Clean up Remove-Item -Force -Path $filePath Import-Module PSWindowsUpdate