IBM Cloud Docs
How can I manage Windows Server updates using PowerShell commands?

How can I manage Windows Server updates using PowerShell commands?

The following PowerShell commands can be used to enable Windows Server updates to be managed by PowerShell commands:

Get-PackageProvider -Name nuget -Force
Install-Module PSWindowsUpdate -confirm:$false -Force
Get-WindowsUpdate -Install -acceptall -IgnoreReboot