This is my frist post,can someone please help me with a vb script to remove machine from collection

i have found below link usefull but need a script to remove machine



thanks in advance

2 Comments   [ + ] Show Comments


  • Any script will need to know whether membership is direct or by query, since the object that needs manipulating is different.
  • Hi,
    membership is by query and below is the collection query to add a machine

    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.SystemGroupName = "GROUP name"

    please help ,as i am not good at vb script
Please log in to comment



This site might be a good start http://blog.danovich.com.au/2010/03/12/remove-computer-association-from-collection-after-sccm-task-sequence/

It also has some links to Microsoft Technet articles.


Answered 06/13/2013 by: dunnpy
Red Belt

  • Thanks Dunnpy,

    But i am trying to remove machine from a existing collection,each and evey application we have has a collection id for it and there are few machines in that collection and i want to remove one of this machine.

    Could you please help
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja