/build/static/layout/Breadcrumb_cap_w.png

Script to remove machine from collection

Hi,

 

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

http://www.itninja.com/question/configmgr-collection-vbscript

 

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. - anonymous_9363 10 years ago
  • 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 - Afzalali 10 years ago

Answers (1)

Posted by: dunnpy 10 years ago
Red Belt
0

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.

Dunnpy


Comments:
  • 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 - Afzalali 10 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ