Worklet to Uninstall KB5000802 & KB5000808 Causing Print/Blue Screen Issue

As of right now, here’s the current issue: When users of Kyocera, Ricoh, Zebra printers (among others) attempt to print, they are instead presented with an irritating Blue Screen of Death (BSOD).
https://hothardware.com/news/this-windows-10-update-is-causing-bsod-crashes-simply-by-printing

If you wish to remove these from your environment, and keep them out:

First, go to the Automox software page, search for each KB, then click on the Actions button and choose Ignore for each result. This should keep them from getting re-installed again.

Second, run this worklet on them.

Evaluation:

# Look for the following KBs.  If found, Exit 1 remediate
$UpdateArray = @('KB5000802','KB5000808')

foreach ($UpdateVersion in $UpdateArray) {
    $SearchUpdates = Get-HotFix -Id "$UpdateVersion" -ErrorAction SilentlyContinue
    if ($SearchUpdates) {
        Exit 1
    }
}

# KBs not found
Exit 0

Remediation:

# "19041.867.1.8" = KB5000802
# "18362.1440.1.7" = KB5000808

$UpdateArray = @("19041.867.1.8", "18362.1440.1.7")

foreach ($UpdateVersion in $UpdateArray) {
    $SearchUpdates = dism /online /get-packages | findstr "Package_for" | findstr "$UpdateVersion"  
    if ($SearchUpdates) {
        $update = $SearchUpdates.split(":")[1].replace(" ", "")
        write-host ("Update found: " + $update + "; ")
        dism /Online /Remove-Package /PackageName:$update /quiet /norestart
    } else {
        write-host ("Update " + $UpdateVersion + " not found.")
    }
}
6 Likes

Is there a way to add in the Automox reboot notification to this?

You could probably just add the remediation from worklet:

to the bottom of the remediation of this worklet.

2 Likes