title: WMI Generic Failure when attempting to remove software updates from a SCCM deployment package
body: <p>I'm using SCCM 2007 and Powershell to automate some mundane tasks in my environment.  One of these tasks is to remove all expired or superseded updates in all of my deployment packages.  I've went over the Microsoft documentation for the SMS_SoftwareUpdatesPackage WMI class and the RemoveContent method you're supposed to use for this function but keep hitting a wall.</p>
  
  <p>Here's the code I'm currently using.</p>
  
  <pre><code>$x = gwmi SMS_SoftwareUpdatesPackage -computer sccm -namespace root\sms\site_unh -filter "PackageID = 'UNH00277'"
  $array = @()
  $array += 34827
  $x.RemoveContent($array,$true)
  </code></pre>
  
  <p>Pretty simple, right?  I've tried so many different combinations of syntax I'm going crazy.  The only lead I've been tracking is that maybe my array datatype isn't right.  According to the documentation, it's supposed to be a UInt32 Array but that's just a hunch.</p>