I use the following:
(Get-WmiObject-ClassWin32_Product-Filter"Name = 'Microsoft Office Professional Plus 2013'").Uninstall()
To uninstall Office Pro 2013...but it's not uninstalling. It sets the installstate to "5", whatever that is. I have tried a reboot, and still no go. I have tried many script variations, all yielding the same. When the command executes, it returns:
__GENUS : 2
__CLASS : __PARAMETERS
__SUPERCLASS :
__DYNASTY : __PARAMETERS
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
ReturnValue : 1603
PSComputerName :
But when I look in control panel, the office is still there, and a get-wmiobject still shows it as well.
What is going on here?
mpleaf