System Center Configuration Manager TechCenter >
System Center Configuration Manager Forums
>
Configuration Manager Setup/Deployment
>
Adding computers into a collection using a text file
Adding computers into a collection using a text file
- When adding computers into a certain collection using a text file do you just need the computer name or do you need the GUID and Mac Address as well?
(These are already computers which have been discovered within SCCM but I have 700 which need a certain app installed and currently they're not all in one collection or have anything in common to write a query)
Thanks
Answers
- There's no built-in mechanism that can add computers to a collection using input files. You could use SDK mechanisms to create direct membership rules or use the "list of values" (http://technet.microsoft.com/en-us/library/bb632498.aspx) to build a collection based on the computer name.
- Proposed As Answer byJason SandysMVPThursday, November 05, 2009 2:40 PM
- Marked As Answer byServer_Guy Friday, November 06, 2009 2:15 PM
- There is a set tools called the "Right-click Tools" (http://myitforum.com/cs2/blogs/rhouchins/archive/2008/04/09/sccm-right-click-tools.aspx) that will allow you to do this. These are not Microsoft supported in any way but many folks use them and will get the job done for you. You just need the name of the system as these tools create direct membership rules based on the system name -- if you happen to have duplicate names for reosource records, then they will both be added to the collection and I would recommend that you remediate this issue before going any further.
Jason | http://myitforum.com/cs2/blogs/jsandys | http://blogs.catapultsystems.com/jsandys/default.aspx | Twitter @JasonSandys- Proposed As Answer byJason SandysMVPThursday, November 05, 2009 2:40 PM
- Marked As Answer byServer_Guy Friday, November 06, 2009 2:15 PM
All Replies
- There's no built-in mechanism that can add computers to a collection using input files. You could use SDK mechanisms to create direct membership rules or use the "list of values" (http://technet.microsoft.com/en-us/library/bb632498.aspx) to build a collection based on the computer name.
- Proposed As Answer byJason SandysMVPThursday, November 05, 2009 2:40 PM
- Marked As Answer byServer_Guy Friday, November 06, 2009 2:15 PM
- There is a set tools called the "Right-click Tools" (http://myitforum.com/cs2/blogs/rhouchins/archive/2008/04/09/sccm-right-click-tools.aspx) that will allow you to do this. These are not Microsoft supported in any way but many folks use them and will get the job done for you. You just need the name of the system as these tools create direct membership rules based on the system name -- if you happen to have duplicate names for reosource records, then they will both be added to the collection and I would recommend that you remediate this issue before going any further.
Jason | http://myitforum.com/cs2/blogs/jsandys | http://blogs.catapultsystems.com/jsandys/default.aspx | Twitter @JasonSandys- Proposed As Answer byJason SandysMVPThursday, November 05, 2009 2:40 PM
- Marked As Answer byServer_Guy Friday, November 06, 2009 2:15 PM
- Thank you both, I'll have a look at your suggestions. I thought there was an in built way according to this example or does this just relate to adding pc's which aren't already register within sccm? thanks
- "Import computer information" just adds new records to the database in OSD scenarios (http://technet.microsoft.com/en-us/library/bb633291.aspx). It won't help in your case.

