Windows Update (via PowerShell command line)

posted Dec 3, 2019, 6:53 AM by Andrew Chadick   [ updated Dec 3, 2019, 6:59 AM ]

Install-Module PSWindowsUpdate
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
Import-Module PSWindowsUpdate
Get-WindowsUpdate
Install-WindowsUpdate


usoclient.exe  /StartScan, /StartDownload, /StartInstall
startdownload               (download updates)
startinstall                    (install updates)
Refreshsettings             (Refresh settings if any changes were made)
StartInteractiveScan      (Open a dialog and start scanning for updates)
RestartDevice                (Restart computer to finish installing updates)
ScanInstallWait              (Scan, Download, and install updates)
ResumeUpdate               (Resume installing updates on next boot)
Comments