locked
Purge Drivers classification WSUS in Windows Server 2016 RRS feed

  • Question

  • 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

    Friday, January 19, 2018 3:17 PM

All replies