iT邦幫忙

0

在WSUS所有更新,不顯示已拒絕的更新。

  • 分享至 

  • xImage

Dear各位
WSUS上的已拒絕更新,可以刪除不出現嗎?
如圖
如圖,這些更新都不在WSUS了,但他們還是會出現
導致報告時有點緩慢,想問有經驗的大大們,
已拒絕更新可以不出現在所有更新裡面嗎?
謝謝。

上網找到方法
-----
# This will delete declined updates in a WSUS server.

# It can be done in less lines, however there is a chance in poorly maintained WSUS servers of an SQL timeout.
# Doing it in this way allows even partial runs to remove some data, so subsequent runs have more chance of succeeding.

[reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")
$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer();
$ListOfUpdates=$wsus.getupdates() | where {$_.isdeclined -eq $TRUE}
$listofupdates | measure | select count
foreach ($UpdateToDelete in $ListOfUpdates) {
$wsus.DeleteUpdate($UpdateToDelete.Id.UpdateId.ToString()); Write-Host $UpdateToDelete.Title removed }
$ListOfUpdates=$wsus.getupdates() | where {$_.isdeclined -eq $TRUE}
$listofupdates | measure | select count
-----
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

0
chsinzk
iT邦研究生 2 級 ‧ 2021-08-31 11:51:35

已拒絕的更新

有使用WSUS伺服器清理精靈

去清理掉更新嗎?

有使用了
這些更新都不再電腦上了
但還是都會顯示 這些不能用的PATCH

0
通通
iT邦新手 4 級 ‧ 2021-08-31 13:41:28

你這要客製化

你可以參考這篇
客製化

謝謝你給了方向

我要發表回答

立即登入回答