We are trying to automate Feature upgrade process from Windows 10 1607 to 1703. WSUS is used to distribute the update package.
When upgrade is installed ( using gpo or comobject Microsoft.Update.Session), the status in Windows Updates Settings is 'A restart is required to finish installing the follwing updates: Feature update to Windows 10 enterprise,version 1703" Below the message I can see 'Restart Now' button.
Since I am trying to automate the process, I will need to restart the computer by using non gui method, i.e. running restart-computer, wmi, or some other way . When computer reboots, the update is not being installed. I have also tried 'usoClient RestartDevice' without success.
The upgrade only happens when I use Restart Now button. How can I force Windows to do the actual install during reboot without using Windows Updates Settings GUI? Surely 'Restart' is a restart, whatever way it is executed?