Something like this, for example:
$packageIDs = @("CMM001DB", "CMM001D7")
$distributionPointGroup = Get-WmiObject -computername $siteServer
-namespace "root\sms\site_$siteCode" -query "SELECT * from
SMS_DistributionPointGroup WHERE Name='GroupName'"
$distributionPointGroup.RemovePackages($packageIDs, $true)
On Fri, Sep 13, 2013 at 2:00 PM, Ryan <[email protected]> wrote:
> I don't have time to write the code, but I saw a method that might do what
> you want...\
>
> http://msdn.microsoft.com/en-us/library/hh948234.aspx
>
> RemovePackages on the SMS_DistributionPointGroup class
>
>
> --
> Andre Bocchini
> College of Applied Health Sciences
> University of Illinois at Chicago
>