- per aggiornare windows da linea di comando ( windows update ) # powershell as admin Install-Module PSWindowsUpdate -Force # Install-Module PSWindowsUpdate -Confirm:$False powershell -noprofile -executionpolicy bypass "Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot" ---- old powershell as admin # da testare # prima sempre insrallare modulo Install-Module PSWindowsUpdate Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot # se da errore di permessi o simili che non può eseguire lo script powershell -noprofile -executionpolicy bypass "Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot" ######## old con i comandi separati Install-Module PSWindowsUpdate Get-WindowsUpdate Install-WindowsUpdate fonte https://www.altaro.com/msp-dojo/powershell-windows-updates/ https://www.thewindowsclub.com/how-to-run-windows-updates-from-command-line-in-windows-10