Is it possible to shutdown Windows 10 with a command or a desktop shortcut which first will install pending updates and then shuts down the computer? I know this might be a silly question since most of the people are trying to avoid updates so their computers shut down immediately.
When I use shutdown.exe
with /s /t 0
parameters it shuts the computer down but the pending updates are not installed. I know I can use the power button in Start menu but it just takes too many clicks.
It would be superb if this can be achieved only with common Windows components (Powershell included) and without the need of elevated (admin) privileges, but I'm fine with 3rd party tools as well.
wuauclt.exe /resetauthorization /detectnow /updatenow
before shutdown?