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
Answers (1)
Please log in to answer
Posted by:
dunnpy
11 years ago
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 11 years ago
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 11 years ago