复制粘贴下方的命令到PowerShell
[reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")
$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer();
$wsus.GetUpdates() | Where {$_.IsDeclined -eq $true} | ForEach-Object {$wsus.DeleteUpdate($_.Id.UpdateId.ToString()); Write-Host $_.Title removed }
注意:WSUS administration website has to be running for the second line to connect successfully to WSUS.
WSUS管理网站必须运行第二行才能成功连接到WSUS
来源:
https://social.technet.microsoft.com/Forums/ie/en-US/404292a0-c762-4cfa-b19a-ac765adfa48e/clear-declined-updates-in-wsus-30-with-sp1?forum=winserverwsus
如果认为回帖者的回答有所帮助,请将之标记为答复,这样可以帮助更多的用户获取有效信息。