Fix An error has occurred, Not all of the updates were successfully uninstalled in Windows 10/11

2 methods to solve An error has occurred. Not all of the updates were successfully uninstalled in Windows 10 or 11.

An error has occurred. Not all of the updates were successfully uninstalled

Are you unable to uninstall a Windows update and come across an error message when trying the same? Sometimes, it happens that a Security update or another patch causes certain problems in Windows 10 or 11, for example, users have been encountering printer error after installing KB5006738, KB5005565, and KB5006670. Usually, during such type of case, the primary solution is removal of the update but the error discussed here prevents the uninstallation. When you try to uninstall a Windows update a message prompts – “An error has occurred. Not all of the updates were successfully uninstalled” in Windows 10 and 11.

An error has occurred. Not all of the updates were successfully uninstalled commonly appear when start removing a patch from Windows 11 and 10. But, there are other methods to uninstall the same, and these are through Command prompt or Windows PowerShell.  However, in some cases, these methods also fail and you may need to follow any tweak.

An error has occurred. Not all of the updates were successfully uninstalled.

Here is how to fix An error has occurred. Not all of the updates were successfully uninstalled in Windows 10/11 –

Way-1: Uninstall Windows update through cmd command or Windows PowerShell

  1. Click Search from the taskbar.
  2. Type – cmd.
  3. Select – Run as administrator.
  4. Choose Yes on User account control prompt.
  5. Now, suppose, you are trying to uninstall KB5005565 then type – wusa /uninstall /kb:5005565.
how to fix An error has occurred. Not all of the updates were successfully uninstalled in Windows 1011
  1. Press – Enter.
  2. Verify by clicking on Yes when you are asked – “Are you sure you want to uninstall this update?”.

Way-2: A specific Registry tweak to uninstall

Several updates like KB5005565 and KB5006670 that are causing printer bug need a specific tweak before their removal. So follow the steps below and then try to uninstall either using Control panel or via cmd/PowerShell.

  1. Press – Win+S.
  2. Type – regedit. See – How to open Registry Editor in Windows 11 (Best Ways).
  3. Hit – Enter.
  4. Click – Yes if prompted.
  5. Copy the following string and paste in the address bar of the Registry Editor –

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print

  1. Press – “Enter”.
  2. This will take you to the Print key. In the right pane, right-click and select –  New > DWORD (32-bit) Value.
  3. Name this value – RpcAuthnLevelPrivacyEnabled.
  4. Double click on “RpcAuthnLevelPrivacyEnabled”.
  5. Enter Value data 0 and choose the Base Hexadecimal.
  6. Click on – OK.
Registry tweak
  1. Reboot the system or restart Windows Explorer from Task Manager.

Now uninstall the update using the normal method and bypass ‘An error has occurred. Not all of the updates were successfully uninstalled.

  1. Click the – Start.
  2. Type – updates.
  3. Press – Enter.
  4. Click on – View updates history.
  5. From the next page, click on – Uninstall updates.
  6. Go to the Microsoft Windows section.
  7. Right click on the update you’re trying to remove.
  8. Select – Uninstall.
  9. Confirm by clicking – Yes.

Methods list:
Way-1: Uninstall Windows update through cmd command
Way-2: A specific Registry tweak to uninstall

That’s all!!

Sharing is caring    Share Whatsapp

 
Topics:  Windows
  
About Sunita
Love to play with Windows 11 and 10. Suggestion - Going for Registry change or system files edit then remember to take a backup or create a restore point before Starting.