Why Doesn’t GetNumResults() Work?

The SCCM provider comes with some useful methods in particular for collections. You can view them using WBEMtest: We’ve already used one of these in a previous function. The add-SCCMcollectionrule that Michael Niehaus defined in one of his blog posts uses the addmembership method. Another use is in the add-dirUserCollectionRule defined in our last post…

2

More Powershell “Cmdlets”

Following on from our last post on Powershell for SCCM here are some more “cmdlets” (functions really). The Add-SCCMCollectionRule that Michael Niehaus provided can only add computer objects to a collection but one of my customers has been distributing software to users so we needed to be able to add users to collections: function Add-DirUserCollectionRule…

1