Right Click Tools - Add Computer to Collection
Main Menu
>
Tools
>
Right Click Tools
Add Computer to Collection
This tools has two parts. It will allow you to add a computer to multiple collections or mulitple computers to a single collection. This will also give you the ability to right click on a computer in a query as well.
Download
Code
------------------addcomps.hta----------------------
Add computers to Collection
-------------------------------------- ------------------addtocollections.hta----------------------
Add computer to Collection(s)
--------------------------------------
Documentation
You will need to possible create the Extensions folder, Actions folder, as well as the guids. The folder path should look like the path below x:\Program Files\Microsoft Configuration Manager\AdminUI\XmlStorage\Extensions\ Actions\7ba8bf44-2344-4035-bdb4-16630291dcf6 Copy the 2 files: addcomps.hta addtocollections.hta To a programs folder somewhere and edit the file path in the xml documents. The program will give you two ways to add computers to a collection. 1. Right click a collection and add multiple computers 2. Right click a computer and it to multiple collections. Both scripts use a LIKE clause so you can type in adobe and find all the adobe collections. The applies for the computer name. Since our computers are based on numeric asset tags we can type in the last 4 or 5 digits and find the computer. -------------------------------- Configuring the application a. You will need to modify both HTA files and replace the following line set SWbemServices = SWbemLocator.ConnectServer("SMSserver","root\SMS\site_XXX") SMSserver - replace with your SCCM server name site_XXX - replace XXX your Site Code b. If this is running from a remote console then it might be necessary to pass a user name and password. Please refer to the documentation below. http://msdn.microsoft.com/en-us/library/aa393720(VS.85).aspx GUIDs ---------------------------- 7ba8bf44-2344-4035-bdb4-16630291dcf6 - Computer in a collection 716f8f86-5c3e-448d-baa2-8d2763fa8e7a - Computer in a query dbb315c3-1d8b-4e6a-a7b1-db8246890f59 - Collection fa922e1a-6add-477f-b70e-9a164f3b11a2 - Collection --Created by: Matthew Hudson