none
Trouble uninstalling Microsoft Office 2010 pro using Powershell 3.0 RRS feed

  • Question

  • Hi all,

    We are trying to uninstall Office 2010 pro using Microsoft Powershell 3.0. We are using the following code:

    Get-WmiObject -Class win32_product | where {$_.name -like "*Office*"}

    $Office = Get-WmiObject -Class win32_product | where {$_.name -like "*IdentifyingNumber*"}

    msiexec /uninstall $Office.LocalPackage /passive

    The issue that we have is in order to uninstall office correctly, we have to define each identifying number of Office which is tedious. Is there an easier way to install the entire package?

    Thanks

    Thursday, August 22, 2013 5:57 PM