I was using below powershell script to update windows https://gallery.technet.microsoft.com/scriptcenter/Execute-Windows-Update-fc6acb16#content
It works fine for Windows updates. But it does not install/update the Microsoft Updates
I am looking for script which automates Both important and optional updates as shown below.
How can I alter this script? (Script can be found in above link)