Give these ones a try.
https://superuser.com/questions/893862/cmd-command-to-shutdown-pc-and-do-updates
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I've seen this asked before, but no reasonable answer.
Is there a command that I can put in a batch file that:
I've tried: wuauclt /DetectNow /Updatenow
But it doesn't wait to install updates before moving on
Even if it can check for updates, install updates, THEN move onto the next line. But at the moment there doesn't seem to be any return that the update has done installing
I want to trigger the process, then move on to the next PC.
It doesn't seem like it should be that difficult!
What am I missing?
Give these ones a try.
https://superuser.com/questions/893862/cmd-command-to-shutdown-pc-and-do-updates
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
Download and install the Windows Update PowerShell Module. Then, you can run the command Get-WUInstall -AcceptAll -AutoReboot (there are other switches and arguments to control what updates get installed).
Hi,
This is possible via PowerShell. If you're interested in trying this, please see the following commands:
This will install the Windows Update module in PowerShell:
Install-Module PSWindowsUpdate
This command will check for updates:
Get-WindowsUpdate
Adds Microsoft update for other MS Apps other than Windows (Optional):
Add-WUServiceManager -MicrosoftUpdate
To install updates and then reboot please use the following command:
Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot
----------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answe