Jump to content

Script to uninstall KB5000802?


Recommended Posts

I'm trying to run just a simple wusa /uninstall /kb:5000802 script in a task but the task just hangs forever and never makes progress on the machines. I don't have too much experience running any type of scripting through an RMM so any help would be greatly appreciated. 

Link to post
Share on other sites

Came across this which seems to work if anyone else is having the same issues still: 

# "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 result found: " + $update )
        dism /Online /Remove-Package /PackageName:$update /quiet /norestart
    } else {
        write-host ("Update " + $UpdateVersion + " not found.")
    }
}
exit 0

Link to post
Share on other sites

Perhaps this could help,

This may prevent it from being pushed out in the future.

Assuming Microsoft will release a permanent fix soon.

Under Patch Management select Policies you can edit your policy under OS Rules by adding two new rules then move them to the top of your list.

  • If Name contains kb:5000802 then Don't Install
  • If Name contains kb:5000808 then Don't Install

 

Please view the attached screenshot.

 

 

 

 

 

kb5000802.PNG.3f0dee50e6618739f1023bce862f9cff.PNG

Link to post
Share on other sites
  • 2 weeks later...

Hello, does anyone know how to trigger the optional update to fix this issue?  I've tried changing my Policies to contain the KB number and allow and install but it hasn't triggered the update.  

Link to post
Share on other sites
  • Administrators

Hi @colsen,

We've released today an update to the Windows Agent (v8.6.6) which detects the optional update released by Microsoft. It should reach your systems within 36 hours.

-Paul

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...