$session = New-Object -ComObject Microsoft.Update.Session
$searcher = $session.CreateUpdateSearcher()
Write-Host "Searching for optional driver updates..."
$result = $searcher.Search("IsInstalled=0 and Type='Driver' and IsHidden=0")
$found = $false
for ($i = 0; $i -lt $result.Updates.Count; $i++) {
$update = $result.Updates.Item($i)
if ($update.Title -like "*wch.cn*USB Module*") {
Write-Host "Hiding: $($update.Title)"
$update.IsHidden = $true
$found = $true
}
}
if ($found) {
Write-Host "The WCH USB Module update has been hidden."
} else {
Write-Warning "The WCH USB Module update was not found."
}
Example here is the wch.cn*USB Module* update the script accordingly.