WSUS清理 – 删除“不需要的更新文件”时超时

执行尚未完成的WSUS清理 – 运行清理向导,唯一select的选项是“不需要的更新文件”:

在这里输入图像说明

大约三分钟的处理之后,向导由于超时exception而崩溃: 在这里输入图像说明

这是我在控制台中按“复制到剪贴板”的消息:

The WSUS administration console was unable to connect to the WSUS Server via the remote API. Verify that the Update Services service, IIS and SQL are running on the server. If the problem persists, try restarting IIS, SQL, and the Update Services Service. System.Net.WebException -- The operation has timed out Source System.Windows.Forms Stack Trace: at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args) at Microsoft.UpdateServices.UI.SnapIn.Wizards.ServerCleanup.ServerCleanupWizard.OnCleanupComplete(Object sender, PerformCleanupCompletedEventArgs e) 

…在PowerShell的升级实例中尝试了同样的事情: 在这里输入图像说明

我到目前为止所尝试的:

  • 由于超时时间似乎是〜3分钟,我已经把IIS中的Wsus-Site的连接超时设置为180秒到10800秒: 在这里输入图像说明

  • 确保与IIS-ApplicationPool关联的帐户在WSUSContent文件夹上具有足够的权限

  • 确保我运行wizward /脚本的帐户是WSUSpipe理员组(和服务器的pipe理员组)中的成员,
  • 禁用SQLDB服务器上运行的SQL-Server上的查询超时(最初是在清理未使用的更新和更新修订版时这样做的)

所有其他的WSUS清理步骤正在运行 – 最初我在清理“未使用的更新和更新修订版本”时有一些打嗝,因为很久没有执行清理了。 但是,手动删除数据库中的一些更新并禁用完成而没有错误的超时。 我还要提到WSUS服务器是SCCM环境的一部分,它由我们的SUP进行pipe理(启用预定更新同步时进行清理)。

环顾论坛,我发现了几个有用的线程处理超时,同时清理“未使用的更新和更新文件”,但我还没有find很多关于清理“不需要的更新文件”同样的问题。 所以任何帮助,将不胜感激。

这个脚本是旧的,但我已经运行在我的WSUS服务器上运气好运。 我inheritance了一个完全失控的控制台,会在各个地方崩溃。 我也运行这个reindex WSUS数据库脚本 ,这可能会有所帮助。

从那以后,我一直在做这些维护。