web analytics

Blog

How to Initiate a One-time Membership Evaluation for a Collection

Posted by:

To Initiate a One-time Membership Evaluation

  1. Set up a connection to the SMS Provider.
  2. Get the specific collection instance by using the collection ID or Name.
  3. Refresh the collection membership using the RequestRefresh Method in Class SMS_Collection method.

Examples

Sample Output

You can download the code examples from here



About the Author:

Kaido Järvemets is a developer, consultant, trainer specializing in Microsoft System Center Configuration Manager and PowerShell Solutions at Coretech. Kaido frequently speaks at European conferences and had his US debut as speaker at MMS April 2013. Kaido is well-known in the Configuration Manager communities where he’s a key player in the PowerShell game. Kaido host one of the most complete Configuration Manager PowerShell library’s in the world with hundreds of free code samples ready to download and implement – www.cm12sdk.net. Kaido has been awarded Microsoft Most Valuable Professional (MVP) in Microsoft Enterprise Client Management for his work with Configuration Manager from 2011 – to present. Kaido is the founder of System Center User Group Estonia in 2011.

Discussion

  1. Tony  March 31, 2016

    Thank´s! I have search for this for a wile and this was the solution

    Tony

    (reply)
  2. Luka  June 27, 2016

    do yo know if there is any way to get feedback, when the evaluation finished?
    I want to write something like that, since the evaluation sometimes takes some tries until it does its job:

    do
    {
    RequestRefresh()
    Start-Wait 30
    }
    until
    {
    Computer in Collection
    }

    The Start-Wait is not optimal. Sometimes it takes longer, sometimes its faster..

    Thank you :)

    (reply)

Add a Comment