Script to uninstall a Windows update is not working.
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
and
%WINDIR%\SysNative\DISM.exe /Online /Remove-Package /PackageName:Package_for_RollupFix~31bf3856ad364e35~amd64~~18362.836.1.6 /quiet /norestart
Answers (2)
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.
I had to RDP into a handful of critical machines and uninstall via the gui to actually remove it. - roy.urick@koorsen.com 4 years ago