Uninstall KB update on remote computer in domain using WUSA and PsExec

Posted on 24.10.17   KB Powershell PsExec wusa

Step 1 – Check if the KB update is installed

Run the following Powershell script to make sure the KB update actually is installed. It will also show the install date.

Get-Hotfix -computername $hostname | Select HotfixID, InstalledOn | Where-Object { $_.HotfixID -eq $kb } | Sort-Object InstalledOn

Replace $hostname and $kb with the respective hostname and KB number. If you wish, the command can be simplified to:

Get-Hotfix -computername $hostname | Where-Object { $_.HotfixID -eq $kb }

Screenshot Powershell output

Step 2 – Download PsExec

You can download it here: https://docs.microsoft.com/en-us/sysinternals/downloads/psexec

Step 3 – Uninstall KB update

psexec.exe -s \\hostname wusa.exe /uninstall /kb:2952664 /quiet /norestart

Again, remember to change hostname and KB number. If everything went OK it should say wusa.exe exited on $hostname with error code 3010.

Error code 3010 is correct, it means ERROR_SUCCESS_REBOOT_REQUIRED: “The requested operation is successful. Changes will not be effective until the system is rebooted.”

 

More on ITDB

Finding the source for locked AD account from Event Viewer log on Domain controller


Change Resize Mode for all VMs in RoyalTS 4


Oracle Universal Installer - Successfully completed with errors


NiceHash hacked?


Get Linux distribution information from terminal




Leave a Reply

Your email address will not be published. Required fields are marked *