title: uninstalling Office 2007 with PowerShell
body: <p>I'm trying to write a script which uninstalls Microsoft Office 2007 Enterprise by grabbing the IdentifyingNumber using Get-WmiObject -Class Win32_Product.  I'm able to grab the IdentifyingNumber, but when I attempt to uninstall PowerShell outputs some information that I'm not sure what to do with.  Is this not a proper way to utilize Uninstall()?</p>
  
  <pre><code>$2k7 = Get-WmiObject -Class Win32_Product | Where-Object { $_.IdentifyingNumber -match "{90120000-0030-0000-0000-0000000FF1CE}" } 
  
  if ($2k7 -ne $null) {
    $2k7.Uninstall()
  }
  else {
    write-host "nothing to see here"
  }
  </code></pre>
  
  <p>Output...</p>
  
  <pre><code>__GENUS          : 2
  __CLASS          : __PARAMETERS
  __SUPERCLASS     : 
  __DYNASTY        : __PARAMETERS
  __RELPATH        : 
  __PROPERTY_COUNT : 1
  __DERIVATION     : {}
  __SERVER         : 
  __NAMESPACE      : 
  __PATH           : 
  ReturnValue      : 1603
  </code></pre>