Uninstall MS Office 2010 SP2

Topics: Examples
Sep 8, 2014 at 11:05 AM
Edited Sep 8, 2014 at 11:05 AM
Thank you for providing such a handy tool.

I am trying to create an uninstall script for MS Office 2010 SP2. The oarpman.exe that MS provides (MS Office 2010 server pack uninstaller) does not seem to take into account MS Office patches that are labeled "Uninstallable=False" and therefor the oarpman.exe errors out with a 1646. This does not work well when trying to automate the removal of MS Office 2010 SP2.
I have the following code that checks for MS Office products and MS Office patches that are installed and Uninstallable = True and the DisplayName matches SP2.
get-msiproductinfo | where-object {$_.Name -match "Office"} | get-msipatchinfo -filter applied | Where-Object {($_.Uninstallable -match "True" -and $_.DisplayName -match "SP2")}
I can see the product codes, patch codes, state, if the patch is uninstallable and the display name.

If I want to uninstall each patch that the above code returns, how would I accomplish this?

I also want the uninstall to be 100% silent, verbose logging, and to suppress ALL reboots.

Can you please tell me if this is possible?

Thanks again!