Assistance with building Collections in Config Mgr Console.I just started on the SCCM team for our company and need some assistance with building collections.  I don't know the best practice, but I figured I'd build it close to our AD structure so we can divide things up by division and department.<br/><br/>When I go under Computer Management &gt; Collections, I see some pre-built collections and one that the consultant built that has our whole domain in it.  I want to go under that and add all computers in the next group.  I don't know how to word all this, but I'll give an example.<br/><br/>In AD, the structure would break down like this:  INT &gt; HS &gt; Town &gt; Hospital &gt; Department<br/><br/>I want to be able to go to each folder/OU (HS, Town, Hos) and see all of the computers that are in it's sub folders.  The problem is that there are no computers in the &quot;Hospital&quot; area, only sub-folders for the departments, but I'd like to see all of those computers for the whole Hospital and then when I look in the department collection, I want to only see what is in the department and not above it.<br/><br/>I apologize if this is horribly worded.© 2009 Microsoft Corporation. All rights reserved.Mon, 06 Jul 2009 20:24:46 Z711d3d60-2896-4a14-8b17-b826b85f3edbhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#711d3d60-2896-4a14-8b17-b826b85f3edbhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#711d3d60-2896-4a14-8b17-b826b85f3edbboydgrossiihttp://social.technet.microsoft.com/Profile/en-US/?user=boydgrossiiAssistance with building Collections in Config Mgr Console.I just started on the SCCM team for our company and need some assistance with building collections.  I don't know the best practice, but I figured I'd build it close to our AD structure so we can divide things up by division and department.<br/><br/>When I go under Computer Management &gt; Collections, I see some pre-built collections and one that the consultant built that has our whole domain in it.  I want to go under that and add all computers in the next group.  I don't know how to word all this, but I'll give an example.<br/><br/>In AD, the structure would break down like this:  INT &gt; HS &gt; Town &gt; Hospital &gt; Department<br/><br/>I want to be able to go to each folder/OU (HS, Town, Hos) and see all of the computers that are in it's sub folders.  The problem is that there are no computers in the &quot;Hospital&quot; area, only sub-folders for the departments, but I'd like to see all of those computers for the whole Hospital and then when I look in the department collection, I want to only see what is in the department and not above it.<br/><br/>I apologize if this is horribly worded.Thu, 25 Jun 2009 20:09:17 Z2009-06-25T20:09:17Zhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#89345d32-3662-457d-8df0-08bcd205581bhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#89345d32-3662-457d-8df0-08bcd205581bKent Agerlundhttp://social.technet.microsoft.com/Profile/en-US/?user=Kent%20AgerlundAssistance with building Collections in Config Mgr Console.<p>Hi,<br/><br/>When you create the collections you can base them on queries. In your case I think they query could be based on the OU structure or perhaps IP subnet. First you need to make sure you have discovered the ressources in Active Directory by running the Active Directory System Discovery and Active Directory System group discovery. Next create the collection structure.<br/><br/>Collection based on OU Example:<br/>select *  from  SMS_R_System where SMS_R_System.SystemOUName = &quot;domain/hospital&quot;<br/><br/>Collection based on IP subnet example:<br/>select *  from  SMS_R_System where SMS_R_System.IPSubnets = &quot;172.20.0.0&quot;<br/><br/>For more information about discovery - <a href="http://technet.microsoft.com/en-us/library/bb632733.aspx">http://technet.microsoft.com/en-us/library/bb632733.aspx</a><br/>For more information about Collections - <a href="http://technet.microsoft.com/en-us/library/bb632958.aspx">http://technet.microsoft.com/en-us/library/bb632958.aspx</a></p><hr class="sig">Kent Agerlund | http://agerlund.spaces.live.com/blog/Thu, 25 Jun 2009 20:20:18 Z2009-06-25T20:20:18Zhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#de866e29-dd98-43b5-9c0c-7989233c7ff1http://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#de866e29-dd98-43b5-9c0c-7989233c7ff1boydgrossiihttp://social.technet.microsoft.com/Profile/en-US/?user=boydgrossiiAssistance with building Collections in Config Mgr Console.Thank you Kent!  I will be trying this.  I'm a noob at this stuff.  Doing it by IP may be a little scary here, but I can try.<br/><br/>Now, in the collection statements, do I do that in the SCCM window when I'm creating them?Fri, 26 Jun 2009 14:23:15 Z2009-06-26T14:23:15Zhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#6e7f9c74-24ea-4f13-bd95-ecb2f7355d86http://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#6e7f9c74-24ea-4f13-bd95-ecb2f7355d86John Marcumhttp://social.technet.microsoft.com/Profile/en-US/?user=John%20MarcumAssistance with building Collections in Config Mgr Console.There's a script out on myitforum.com that will create collections that exactly mimic your OU structure. It's been a long time since I used it so I don't recall if it builds the queries for you as well or not. I can help you find it if you need it.<br/><br/>However, generally we use sites for delegating administrative duties not collections.<hr class="sig">John Marcum, Systems Management Consultant - www.TrueSec.comFri, 26 Jun 2009 14:45:45 Z2009-06-26T14:45:45Zhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#5b6fc297-994f-456f-8c99-2495ba5d6343http://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#5b6fc297-994f-456f-8c99-2495ba5d6343Sherry Kissingerhttp://social.technet.microsoft.com/Profile/en-US/?user=Sherry%20KissingerAssistance with building Collections in Config Mgr Console.In addition to Kent's links,       maybe this might help?    <a href="http://myitforum.com/cs2/blogs/bleary/archive/tags/SQL+Basics+for+SMS+Admins/default.aspx">http://myitforum.com/cs2/blogs/bleary/archive/tags/SQL+Basics+for+SMS+Admins/default.aspx</a><br/><br/>For some other good blogs about reporting or collections: #2 is often too geeky, but John (he's #1 to me!) is really good <a href="http://www.number2blog.com">http://www.number2blog.com</a>  and Garth's blog has lots of examples: <a href="http://smsug.ca/blogs/garth_jones/default.aspx">http://smsug.ca/blogs/garth_jones/default.aspx</a> (click on WQL on left to get tagged posts just about WQL -- which is the Collection query language)<br/><br/>Also, for the one by systemouname, you might want to use   where max(sms_r_system.systemouname) = &quot;domain/hospital&quot;  (I think that's the right syntax? or does MAX only work in reports?) <br/><br/><hr class="sig">Standardize. Simplify. Automate.Fri, 26 Jun 2009 14:52:11 Z2009-06-26T14:52:11Zhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#cf55fb01-f0e1-4b37-a5e9-5fbfa1ccf790http://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#cf55fb01-f0e1-4b37-a5e9-5fbfa1ccf790boydgrossiihttp://social.technet.microsoft.com/Profile/en-US/?user=boydgrossiiAssistance with building Collections in Config Mgr Console.How does that work though?  I mean, the group is actually deeper than just &quot;Domain\Hospital&quot;.  It's actually (according to AD):<br/><br/>INT<br/>  CNHS<br/>    Town<br/>       Hospital<br/><br/>I guess I just don't get how &quot;Domain\Hosptial&quot; gets sorted out because we have some where our &quot;CNHQ&quot; division has the same towns listed and I figure it will conflict.Fri, 26 Jun 2009 20:57:48 Z2009-06-26T20:57:48Zhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#ecd54d5e-e51a-4f5b-b6a2-b95c5eb32685http://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#ecd54d5e-e51a-4f5b-b6a2-b95c5eb32685Kent Agerlundhttp://social.technet.microsoft.com/Profile/en-US/?user=Kent%20AgerlundAssistance with building Collections in Config Mgr Console.Hi,<br/><br/>It's not going to be a problem, You can create child collections that can reflect your OU design.<hr class="sig">Kent Agerlund | http://agerlund.spaces.live.com/blog/Fri, 26 Jun 2009 22:11:37 Z2009-06-26T22:11:37Zhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#c5f7c4d5-e5d7-4c57-a5ab-4dd10e6828a3http://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#c5f7c4d5-e5d7-4c57-a5ab-4dd10e6828a3John Marcumhttp://social.technet.microsoft.com/Profile/en-US/?user=John%20MarcumAssistance with building Collections in Config Mgr Console.Found the script.<br/><br/><a href="http://myitforum.com/cs2/files/folders/vbscripts/entry120436.aspx">http://myitforum.com/cs2/files/folders/vbscripts/entry120436.aspx</a><br/><br/><br/><hr class="sig">John Marcum, Systems Management Consultant - www.TrueSec.comSat, 27 Jun 2009 21:05:07 Z2009-06-27T21:05:07Zhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#772aa994-60ca-4988-a7de-9a4ab8ce8856http://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/711d3d60-2896-4a14-8b17-b826b85f3edb#772aa994-60ca-4988-a7de-9a4ab8ce8856boydgrossiihttp://social.technet.microsoft.com/Profile/en-US/?user=boydgrossiiAssistance with building Collections in Config Mgr Console.I found part of my problem...I was making it difficult.  I can do all the script (which was using SQL), but it has a tool that I can use that looks in certain OU from AD.Thu, 02 Jul 2009 20:27:44 Z2009-07-02T20:27:44Z