bklockwood / PSWU

PowerShell Windows Update. CLI/scripted windows updates!
MIT License
24 stars 2 forks source link

Win10: PSWU installs updates hidden by KB3073930 #18

Open SSubZero opened 8 years ago

SSubZero commented 8 years ago

Given script: $env:PSModulePath = $env:PSModulePath + ";Z:\Scripts\PScripts" Import-Module PSWU $myupdates = Get-UpdateList $myupdates | Hide-Update -KBID 2876229 $myupdates.Updates.Count

$myupdates | Install-Update

PSWU will download all updates (except that hidden one). However, it will also download drivers, including drivers MS is intentionally hiding for said device. Hidden devices can be seen via the driver update disabler:

https://support.microsoft.com/en-us/kb/3073930

In my case it will try to install drivers that result in the machine (Lenovo X1 Carbon 3rd gen) to BSOD on some network activity as the network driver isn't for this model.

bklockwood commented 8 years ago

I need to investigate the way 3073930 hides updates. For the time being, PSWU will ignore driver updates.

bklockwood commented 8 years ago

FYI, you can manually specify search criteria used by Get-UpdateList, like so:

Get-UpdateList -Criteria "Isinstalled=0 and Type='Driver'"

Docs on how to write the search criteria.

bklockwood commented 8 years ago

Left open because I still need to investigate KB3073930 to understand any issues between it and PSWU.