Hi all,
I am running the script below to delete the contents of the driver in WSUS but a timeout error is displayed powershell
[reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")
$wsus=[Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer();
$wsus.getupdates()
|Where{$_.UpdateClassificationTitle
-eq'Drivers'}
|ForEach-Object{
$wsus.DeleteUpdate($_.Id.UpdateId.ToString());
Write-Host$_.Title
removed}
Exception calling "GetUpdates" with "0" argument(s): "The operation has timed out"
Thanks all,
Leonardo Fogaça de Almeida