Trying to uninstall a Windows Update that has caused issues for me, I have managed to get a Powershell script together that does it however it doesn’t do it silently. I have tried multiple techniques to get the Windows Update removed silently and none seems to work. Please see below what I have already tried.<\/p>\n
Set-ExecutionPolicy RemoteSigned | Write-Output A
\nInstall-Module PSWindowsUpdate
\nImport-Module PSWindowsUpdate
\nWrite-Output Y
\nRemove-WindowsUpdate -KBArticleID KB*******
\nWrite-Output Y
\nHide-WindowsUpdate -KBArticleID KB*******
\nWrite-Output Y<\/p>\n
and I have I tried this
\nSet-ExecutionPolicy RemoteSigned | Write-Output A
\nwusa /uninstall /kb:******* /quiet
\nInstall-Module PSWindowsUpdate
\nImport-Module PSWindowsUpdate
\nWrite-Output Y
\nHide-WindowsUpdate -KBArticleID KB*******<\/p>\n
Any advice would be greatly appreciated<\/p>","upvoteCount":6,"answerCount":9,"datePublished":"2021-09-28T12:33:20.000Z","author":{"@type":"Person","name":"harrisoncostas2","url":"https://community.spiceworks.com/u/harrisoncostas2"},"suggestedAnswer":[{"@type":"Answer","text":"
Trying to uninstall a Windows Update that has caused issues for me, I have managed to get a Powershell script together that does it however it doesn’t do it silently. I have tried multiple techniques to get the Windows Update removed silently and none seems to work. Please see below what I have already tried.<\/p>\n
Set-ExecutionPolicy RemoteSigned | Write-Output A
\nInstall-Module PSWindowsUpdate
\nImport-Module PSWindowsUpdate
\nWrite-Output Y
\nRemove-WindowsUpdate -KBArticleID KB*******
\nWrite-Output Y
\nHide-WindowsUpdate -KBArticleID KB*******
\nWrite-Output Y<\/p>\n
and I have I tried this
\nSet-ExecutionPolicy RemoteSigned | Write-Output A
\nwusa /uninstall /kb:******* /quiet
\nInstall-Module PSWindowsUpdate
\nImport-Module PSWindowsUpdate
\nWrite-Output Y
\nHide-WindowsUpdate -KBArticleID KB*******<\/p>\n
Any advice would be greatly appreciated<\/p>","upvoteCount":6,"datePublished":"2021-09-28T12:33:20.000Z","url":"https://community.spiceworks.com/t/uninstalling-a-windows-update-siliently-via-powershell/812442/1","author":{"@type":"Person","name":"harrisoncostas2","url":"https://community.spiceworks.com/u/harrisoncostas2"}},{"@type":"Answer","text":"
I did it by using the confirm switch<\/p>\n
Hide-WindowsUpdate -KBArticleID KBXXXXXX -confirm:$false\n<\/code><\/pre>","upvoteCount":0,"datePublished":"2021-09-28T12:44:45.000Z","url":"https://community.spiceworks.com/t/uninstalling-a-windows-update-siliently-via-powershell/812442/2","author":{"@type":"Person","name":"titusovermyer","url":"https://community.spiceworks.com/u/titusovermyer"}},{"@type":"Answer","text":"Alternatively, you can use wusa too<\/p>\n
C:\\Windows\\System32\\wusa.exe\" /uninstall /kb:XXXXXXX /quiet /norestart\n<\/code><\/pre>","upvoteCount":1,"datePublished":"2021-09-28T12:45:39.000Z","url":"https://community.spiceworks.com/t/uninstalling-a-windows-update-siliently-via-powershell/812442/3","author":{"@type":"Person","name":"titusovermyer","url":"https://community.spiceworks.com/u/titusovermyer"}},{"@type":"Answer","text":"Hi,<\/p>\n
I did try wusa /uninstall /kb******* /quiet /norestart<\/p>\n
This hasn’t done anything, I had left the machine for a few hours and performed a restart as well and the windows update was still installed.<\/p>","upvoteCount":0,"datePublished":"2021-09-28T13:14:15.000Z","url":"https://community.spiceworks.com/t/uninstalling-a-windows-update-siliently-via-powershell/812442/4","author":{"@type":"Person","name":"harrisoncostas2","url":"https://community.spiceworks.com/u/harrisoncostas2"}},{"@type":"Answer","text":"
I just saw another user with the same complaint. The only difference is that: wusa /uninstall /kb******* /quiet /norestart : caused the update to be visible so you can delete it the standard way. Have you gone back in to see if the update is visible now?<\/p>","upvoteCount":0,"datePublished":"2021-09-28T13:32:08.000Z","url":"https://community.spiceworks.com/t/uninstalling-a-windows-update-siliently-via-powershell/812442/5","author":{"@type":"Person","name":"lloydmason2","url":"https://community.spiceworks.com/u/lloydmason2"}},{"@type":"Answer","text":"
The update being visible isn’t the problem, I need there to be no visibilty of the update being un-installed however when I tried wusa /uninstall /kb******* /quiet /norestart it doesn’t actually do anything, I go into the Installed updates section and it is still showing as an installed update even following a restart<\/p>","upvoteCount":0,"datePublished":"2021-09-29T06:50:13.000Z","url":"https://community.spiceworks.com/t/uninstalling-a-windows-update-siliently-via-powershell/812442/6","author":{"@type":"Person","name":"harrisoncostas2","url":"https://community.spiceworks.com/u/harrisoncostas2"}},{"@type":"Answer","text":"
I have just tried using the below as well and get this now<\/p>\n
Remove-WindowsUpdate -KBArticleID KB******* -Confirm:$false<\/p>\n
HResult RebootRequired ResultCode<\/p>\n
\n-2145124318 False 4<\/p>","upvoteCount":1,"datePublished":"2021-09-29T07:36:01.000Z","url":"https://community.spiceworks.com/t/uninstalling-a-windows-update-siliently-via-powershell/812442/7","author":{"@type":"Person","name":"harrisoncostas2","url":"https://community.spiceworks.com/u/harrisoncostas2"}},{"@type":"Answer","text":"
HRESULT -2145124318 => hex of FDBFFDE => 2’s complement of 80240022:<\/p>\n
0x80240022\tWU_E_ALL_UPDATES_FAILED\tOperation failed for all the updates.\n<\/code><\/pre>\n