Score:0

WSUS drivers supersedence

tn flag

I have added the driver classification in wsus and now i have 100k driver updates. The supersedence is not specified so i can't easily decline old updates. I see a lot of duplicate versions for the drivers (update id is different so it's not the same update).

In the past this was bad but since i added windows 10 it's almost unmanageble.

  • Is it true that microsoft did not hire a scriptkiddy to correct the supersedence for drivers?
  • Is it true that drivers with thesame version number and other details, are thesame? Or is there some subtle difference?

Sure i could not automatically approve drivers and manually approve only the needed ones and decline old ones. I could even regex out the version numbers and use powershell to approve the newest ones. Or update the wsus database so it's correct. But that is Microsofts job.

Or am i missing something here? If i need to make some powershell script i will share it here, don't worry about that.

Score:0
tn flag

Pressed the wrong button again, made a script to decline now (use at own risk)

$WSUS = Get-WsusServer
$FPClass = $WSUS.GetUpdateClassifications()|Where{$_.Title -eq 'Drivers'}
$u = $FPClass.GetUpdates()

# extract version
$u1 = $u |% {
    $x = $_.title -match "^(.*) (.*)$";
    [pscustomobject]@{
        "id"=$_.id;
        "v"=[version]$matches[2];
        "n"=$matches[1];
    }
}

# get max version
$u2 = $u1 |
Sort-Object -Property v | group n |%{
 [PSCustomObject]@{
     n = $_.name;
     v = ($_.Group | Sort-Object v | select -Last 1 -Property v).v; 
}}

# do decline
$u1 |% {
    $x = $_;
    [PSCustomObject]@{   
        "id"=$_.id;
        "v1"=$_.v;
        "n" = $_.n;
        "v2"=($u2 |? { $_.n -eq $x.n }).v;
    }
} |? { $_.v1 -ne $_.v2} |% {
    Deny-WsusUpdate -Update (Get-WsusUpdate -UpdateId $_.id.UpdateId);
    $_;
}

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.