2012-08-16 14:26:54 +0000 2012-08-16 14:26:54 +0000
← 软件用户

能否让我得到更多关于Windows Update的信息?

得分 81
Advertisement

经常会出现这样的情况,我不得不看这个屏幕几分钟:

enter image description here

我对后面的情况一无所知。而且我也没有兴趣去看WindowsUpdate.log的变化。

我很想知道,如果有什么方法可以给我更多的反馈。最好是能在命令行中调用的东西(比如apt-get)。

Advertisement
Advertisement

答案 (8)

得分 70
2013-12-21 01:47:31 +0000

你可以使用位于%windir%/system32文件夹中的wuauclt.exe工具从命令行调用Windows Update。在Windows 10之前的版本中,你也可以通过输入以下命令(位于%windir%\system32文件夹中)来启动Windows Update的GUI:

wuauclt.exe /detectnow
wuauclt.exe /detectnow /updatenow

这只会打开更新程序并检查可用的更新,不会安装更新。另外,如果你在Windows Update设置中设置了 “从不检查更新",这也不会检查更新,你必须点击 "检查更新 "按钮。

Advertisement

解决方案找到了!

得分 55
2017-03-08 01:31:01 +0000

在Windows 10中,你可以使用 PSWindowsUpdate PowerShell模块。

> Install-Module PSWindowsUpdate
> Get-WindowsUpdate
> Install-WindowsUpdate

enter image description here

得分 11
2015-09-11 03:17:20 +0000

我想从任务栏中删除Windows 10更新图标,所以我写了这个AutoHotkey脚本,它可以调用wusa。https://support.microsoft.com/en-us/kb/262841

wusa := "c:\windows\system32\wusa.exe"
runwait %wusa% /uninstall /kb:2952664 /norestart
runwait %wusa% /uninstall /kb:3021917 /norestart
runwait, %wusa% /uninstall /kb:3035583 /norestart
msgbox, okay, all done!`rDon't forget to -hide- the updates now.

这个页面有其他的方法从命令行管理更新。 这个页面解释了wusa.exe的工作原理。

Advertisement
得分 9
2012-08-24 06:48:31 +0000
Advertisement

我使用的是WuInstall。它是一个管理Windows更新的命令行工具。你有很多很好的选项,比如显示安装进度,指定是否需要重启和何时重启,以及每个进程的日志文件都可以使用。尊敬的朋友们,您好

Advertisement
得分 2
2019-01-06 09:18:19 +0000
Advertisement

根据kizzx2的答案,我为命令提示符创建了两个单行代码。

从高架命令行中运行以下代码。

安装更新模块:

Powershell.exe -ExecutionPolicy Unrestricted -command "Install-Module PSWindowsUpdate -force"

从命令行中执行更新: Powershell.exe -ExecutionPolicy Unrestricted -command "Import-Module PSWindowsUpdate; Get-WindowsUpdate; Install-WindowsUpdate"

此外,还可以在-AcceptAll命令中添加选项-AutoReboot和Install-WindowsUpdate。