无法以编程方式更新 Windows 10

Jun*_*ire 5 windows windows-update windows-10

想以编程方式将 Windows 10 十一月升级应用到我的 Windows 10 专业版机器。由于这要在大量机器上完成,因此必须以编程方式完成。

为此使用以下脚本执行升级 - https://msdn.microsoft.com/en-us/library/aa387102(VS.85).aspx

输出:

Installation Result: 3
Reboot Required: True
Listing of updates installed and individual installation results:
1> Update for Windows 10 for x64-based Systems (KB3106932): 2
2> Upgrade to Windows 10 Pro, version 1511, 10586: 4
3> Cumulative Update for Windows 10 for x64-based Systems (KB3116869): 2
4> Windows Malicious Software Removal Tool for Windows 8, 8.1, 10 and Windows Server 2012, 2012 R2 x64 Edition - December 2015 (KB890830): 2
5> Definition Update for Windows Defender - KB2267602 (Definition 1.213.77.0): 2
Run Code Online (Sandbox Code Playgroud)

4Windows 10 版本 1511的安装结果代码表示安装失败。所以我运行了 ashutdown /r /t 1并再次运行了脚本。

第二个输出:

Installation Result: 2
Reboot Required: True
Listing of updates installed and individual installation results:
1> Upgrade to Windows 10 Pro, version 1511, 10586: 2
The installation result code 2 means that it was successful. 
Run Code Online (Sandbox Code Playgroud)

我重新启动,但 Windows 10 专业版没有更新。

谁能告诉我我错过了什么?

Jun*_*ire 0

各位,谢谢您的宝贵时间。已尝试删除文件C:\Windows\SoftwareDistribution\Download并再次运行脚本,但无济于事。

最后,解压缩.iso文件并setup.exe使用/quiet /noreboot /unattend <path to answer file>开关执行。

现在,跨多台机器的部署可以自动化。