WSUS2016 クリーンアップウィザード 終了エラー(Invoke-WsusServerCleanup): "実行タイムアウトの期限が切れました。

WindowsServer2016のWSUSでGUICLIともにクリーンアップウィザードが正常終了しない状況が発生することがあります。

 

CLIのエラー内容は次の通りです。
終了エラー(Invoke-WsusServerCleanup): "実行タイムアウトの期限が切れました。操作完了前にタイムアウト期間が過ぎたか、サーバーが応答していません。

 

WSUSはパッチ適用で使用しますが、監視などをしていないとダウンしていても気づかないことがありますし、久しぶりにチェックするとディスクが枯渇しかけることもあるので、監視はしっかりとしておいたほうがいいですね。

 

 

そして、このエラーについての情報が海外のフォーラムに記載がありました。

 

 

The WSUS administration console was unable to connect to the WSUS Server Database. 

Verify that SQL server is running on the WSUS Server. If the problem persists, try restarting SQL.

 

System.Data.SqlClient.SqlException -- Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

 

 Source

.Net SqlClient Data Provider

 

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)

 

この問題は、「不要な更新の削除」タスクの結果として現れ、通常、サーバークリーンアップウィザードが使用されたことのない長期間運用されていたサーバーで見られます。また、データが多すぎるWSUSサーバーでも発生する可能性があるそうです。

 

以下は回答の抜粋です。

 

1. Delete unused computers only
2. Decline expired updates and Decline superseded updates
3. Delete unused updates (this is the step that usually takes the most time, and is almost always the culprit for timeouts)
4. Delete unneeded files

 

「参考」

https://social.technet.microsoft.com/Forums/en-US/3968850f-9720-439c-88db-82c72f26c05d/wsus-server-cleanup-wizard?forum=winserverwsus