WSUS: Remove Drivers from Updates

Not long ago, I wanted to enable driver updates through WSUS. When I saw the amount of drivers to download compared to the percentage used, I wanted to backtrack. The problem is that once you synchronize to the WSUS database, you have to approve or reject the files.

The solution to remove all traces of the drivers is to go through PowerShell.

Copy the code below into PowerShell ISE to remove the drivers:

[string]$WsusServer = ([]::GetHostByName('localhost')).hostname,
[bool]$UseSSL = $False,
[int]$PortNumber = 8530

[reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration") | out-null
$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer($WsusServer,$UseSSL,$PortNumber);
$wsus.getupdates() | Where {$_.UpdateClassificationTitle -eq 'Drivers'} | ForEach-Object { $wsus.DeleteUpdate($_.Id. UpdateID); Write-Host $_.Title removed }

It is possible to use this same code to delete other classification of updates.

To view available classifications:



Related Posts

How to install and configure WSUS on Windows Server

Windows Server Update Service (WSUS) is a built-in role in Windows Server, which enables the implementation of a Microsoft Updates distribution system internally. The benefits of WSUS: Monitoring the

Configuring the Update for Windows Server Clusters

Clustered Update is a feature that allows you to update servers in a failover cluster with little or no loss of availability during the update process. During an update run, the feature transparently

WSUS: maintenance and optimization

Intro In this tutorial, I will explain how to maintain and optimize the installation of your WSUS service to keep it in optimal operating condition. If your WSUS console shuts down regularly, I advise