我想应用Windows 10 11月10日升级程序对我的Windows 10 Pro机器。由于这要在大量的机器上完成,所以必须通过编程来完成。
为此,使用了以下脚本来执行升级- 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安装结果代码4 for Windows 10,版本1511意味着它失败了。所以我运行了一个shutdown /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. 我运行了一个重新启动,但Windows 10 Pro没有更新。
有人能告诉我我错过了什么吗?
发布于 2015-12-23 06:57:33
各位,谢谢你们抽出时间。尝试删除C:\Windows\SoftwareDistribution\Download中的文件并再次运行该脚本,但没有效果。
最后,解压缩.iso文件并使用/quiet /noreboot /unattend <path to answer file>开关执行setup.exe。
现在,跨许多机器的部署可以自动化。
发布于 2015-12-21 08:23:29
我还没有尝试使用您正在使用的脚本来自动进行Windows更新。以前(以前我有一份工作需要我做这样的事情),我使用了WSUS离线工具可用的这里。对于Windows 7和其他人来说,这就像一种魅力(还没有尝试过Windows 10,但我认为它会很好)。基本上,该工具允许您下载它支持的OSes的所有可用更新。然后,它生成一个更新脚本,可以在所有您想要的机器上运行。它是社区支持的,有相当多的人提交修复和改进,使它成为一个非常坚实的工具。
我不知道你是否能够在这一点上改变轨道,并尝试这个工具,但我绝对可以推荐它的任务,如你想要完成的。
希望能有所帮助:)
发布于 2015-12-21 16:22:39
实际的更新可能会给您带来问题。
假设这个脚本对你有好处(似乎是因为其他的更新应用了),我会试着清除下载。有关更多信息,请参见以下链接:
https://serverfault.com/questions/743863
复制相似问题