Over at Ed-IT Solutions, we have been having a fun time with KB4011039, an Office update that can cause some pretty big problems for teachers. It makes the text inside merged table cells invisible and you can’t select the table cell at all. This is a huge pain for teachers whos planning is 90% merged table cells.

With Microsoft not releasing a fix until October 3rd we are forced to remove the defective update from the machines. If it was a normal Windows update wusa would be able to remove it rather easily but it can’t remove Office updates.

Removing an Office update involves finding the package ID for the given update and for the installed Office and then using msiexec to remove the given patch.

Obviously, before you try removing the update you need to unapprove it in WSUS or block it on the computers.

Office Update Remover

Finding these ID’s is a pain and it can be different from machine to machine. To that end, I have written a small Powershell script to remove any Office update by KB number.

As you can see its rather simple. It searches the uninstall registry keys for an entry containing the KB number specified in the script. If it finds the KB number it grabs the Office Package ID and the Updates patch ID and then runs the required MSI exec command to remove it.

It has a check the ensure that it found the update before trying to remove it which means it’s safe to leave this script running even after the machine is fixed.


Having the script is only half the battle. This needs deploying to every computer on the network. GPO startup scripts are fine for this script and being run as SYSTEM will let them uninstall the required update.

I already had an Office 2016 deployment GPO which applies to every computer in school with Office installed. In Computer Configuration -> Policies -> Windows Settings -> Scripts (Startup/Shutdown) open up Startup and click on the PowerShell Scripts tab.

Add a new script pointed at OfficeUpdateRemover.ps1 and set its arguments to -kb NUMBER e.g. -kb 4011039.

Pass the KB number to the script

If there are any other updates in the future that have problems you can add the same script again with different arguments.

I hope this helps anyone having similar problems. Any questions let me know in the comments.

Office Update Remover

3 thoughts on “Office Update Remover

  • 3rd October 2017 at 12:02 pm

    Hi, when I try to start the script with parameters -kb 4011039 and it just removes the first instance of KB4011039 and exits, but the patch have 5 instances. Can you amend it to remove KB until no more with that mane are there.

    • 3rd October 2017 at 12:25 pm

      I have an idea for that. I will have a look at it and get back to you.

      • 6th December 2017 at 11:55 am

        did you ever update your script so that it Loops until no further kB entrys were found in reg?


Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.