想要将Windows 10 November升级程序以编程方式应用到我的Windows 10 Pro计算机上。 由于这是在大量的机器上完成的,所以必须以编程方式完成。
为此,使用以下脚本执行升级 – https://msdn.microsoft.com/zh-cn/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
Windows 10,1511版的安装结果代码4表示失败。 所以我运行了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没有更新。
任何人都可以告诉我我缺less什么?
我还没有尝试使用您正在使用的脚本自动执行Windows更新。 以前(当我有一份工作要求我这样做的时候),我使用了WSUS离线工具。 这就像Windows 7和其他人的魅力(没有尝试用Windows 10,但我想它会没事)。 基本上,该工具可让您下载所支持的操作系统的所有可用更新。 然后它会生成一个更新脚本,可以在所有你想要的机器上运行。 这是社区支持,有不less人提交修复和改进,使其成为一个非常可靠的工具。
我不知道你是否能够在这一点上改变轨道,并尝试这个工具,但我可以肯定地推荐它,像你正在尝试完成的任务。
希望能帮助到你 :-)
实际更新可能会导致您的问题。
假设这个脚本对你有好处(看起来应用了其他更新后的效果),我会试着清除下载。 请参阅以下链接了解更多信息:
伙计,谢谢你的时间。 已尝试删除C:\Windows\SoftwareDistribution\Download并再次运行脚本中的文件,但无济于事。
最后,将.iso文件解压缩,然后使用/quiet /noreboot /unattend <path to answer file>开关执行setup.exe 。
现在,跨多台机器的部署可以实现自动化。