Would like to apply the Windows 10 November upgrade programatically to my Windows 10 Pro machines. Since this is to be done on a large number of machines, it has to be done programatically.
For this have used the following script to execute the upgrade - https://msdn.microsoft.com/en-us/library/aa387102(VS.85).aspx
Output:
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
The installation result code 4
for Windows 10, version 1511 means that it failed. So I ran a shutdown /r /t 1
and the ran the script again.
Second Output:
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.
I ran a reboot but the Windows 10 Pro wasn't updated.
Can anyone tell what I am I missing?