User Tools

Site Tools


programmazione:windowsupdate_con_powershell

WindowsUpdate con PowerShell

Alcuni comandi utili

Get-WindowsUpdate  -MicrosoftUpdate -AcceptAll -Install -IgnoreReboot
Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -Install -IgnoreReboot
Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -ScheduleReboot (Get-Date -Date "08/07/2025 11:00 PM")
Get-WURebootStatus

Aggiornare con Installation Assistant

# URL to Windows 11 Update Assistant
$Win11UpgradeURL = "https://go.microsoft.com/feline/?linkid=2171764"
$UpgradePath = "$env:TEMP\Windows11InstallationAssistant.exe"
 
# Download the Windows 11 Installation Assistant 
Invoke-WebRequest -Uri $Win11UpgradeURL -OutFile $UpgradePath
 
# Run Installation Assistant silently to upgrade
Start-Process -FilePath $UpgradePath -ArgumentList "/quietinstall /skipeula /auto upgrade /NoRestartUI" -Wait -NoNewWindow
programmazione/windowsupdate_con_powershell.txt · Last modified: by lrosa