IBM Cloud Docs
如何使用 PowerShell 指令來管理 Windows Server 更新?

如何使用 PowerShell 指令來管理 Windows Server 更新?

下列 PowerShell 指令可用來啟用由 PowerShell 指令管理的 Windows Server 更新項目:

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