set-executionpolicy remotesigned
Install-Module PSWindowsUpdate
Import-Module PSWindowsUpdate
Get-WindowsUpdate
Install-WindowsUpdate
Eksempler på mer avansert bruk
Detekter - installer - reboot:
Get-WindowsUpdate -AcceptAll -Install -AutoReboot
Installer spesifikk Windows Update:
Get-WindowsUpdate -Install -KBArticleID 'KB5007186'