Scripting Question

Script to uninstall a Windows update is not working.

06/12/2020 780 views

Attempting to remove kb4560960, Kace SMA will say the script ran successfully but the update is still installed.  When running the command locally it works fine.  I found I had to use C:\Windows\Syswow64 or %WINDIR%\SysNative for it to not show an error on the deskop.

Here is what I'm running. 

%WINDIR%\SysNative\wusa.exe /uninstall /KB:4560960 /quiet /norestart


%WINDIR%\SysNative\DISM.exe /Online /Remove-Package /PackageName:Package_for_RollupFix~31bf3856ad364e35~amd64~~18362.836.1.6 /quiet /norestart

3 Comments   [ + ] Show comments


  • Did you try rolling back by using the patch engine, can the patch be rolled back?
  • I'll try that
  • we are experiencing the same. It crapped out our PCL5 printers. If I run the wusa command by hand it just spits out the help screen like the arguments are invalid.

    I had to RDP into a handful of critical machines and uninstall via the gui to actually remove it.

All Answers

The /quiet switch may be suppressing your error, if you're getting one. Try adding the /log switch to write the job results to a file - that might help provide a clue as to why it's failing to uninstall.
Answered 06/16/2020 by: JLankford
White Belt


As I remember the /quiet option cannot be used in combination with "/uninstall /kb:xxxx" on Windows 10:


Have you checked the DISM log file? By default, if you do not specify /LogPath: switch, it is saved in %WINDIR%\Logs\Dism\dism.log

For the local tests, have you tried to uninstall it using psexec (-s), to make sure it works as a SYSTEM account?

I do not remember if all the updates are removed from the list right after the uninstall command is completed or after a reboot - worth to check too.

Answered 06/24/2020 by: rad33k
Fourth Degree Brown Belt

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ