emacintosh
Posts: 107
Score: 19 Joined: 11/19/2003 Status: offline
|
Under your AdminUI folder, create the following folder XmlStorage\Extensions\Actions\7ba8bf44-2344-4035-bdb4-16630291dcf6 Name your XML whatever you want and put it in there. That's for computers. For collections, create two more folders for the following GUIDs (One is for top-level collections and one is for subcollections) dbb315c3-1d8b-4e6a-a7b1-db8246890f59 fa922e1a-6add-477f-b70e-9a164f3b11a2 Once you create an XML for collections, drop it in both of those folders and you should be ready to go. Keep in mind, if you open your console and you don't see the right-click menus you created, then most likely you have a syntax error in your XML. Here is our collection XML right now (not heavily tested yet)
<ActionDescription Class="Group" DisplayName="SMS Tools" MnemonicDisplayName="SMS Tools" Description="SMS tools for collections" SqmDataPoint="53">
<ActionGroups>
<ActionDescription Class="Executable" DisplayName="Add Machines" MnemonicDisplayName="Add Machines" Description="Will add a list of machines to the collection">
<Executable>
<FilePath>mshta</FilePath>
<Parameters>c:\SMSADMIN\scripts\AddColl.hta /ss:##SUB:__SERVER## /sn:##SUB:__Namespace## /coll:##SUB:COLLECTIONID## /CollName:##SUB:Name##</Parameters>
</Executable>
</ActionDescription>
<ActionDescription Class="Executable" DisplayName="Copy Collection Name" MnemonicDisplayName="Copy Collection Name" Description="Puts the collection name on the clipboard">
<Executable>
<FilePath>wscript</FilePath>
<Parameters>"C:\smsadmin\Scripts\SMS - CopyName.vbs" "##SUB:Name##"</Parameters>
</Executable>
</ActionDescription>
<ActionDescription Class="Executable" DisplayName="Copy Collection ID" MnemonicDisplayName="Copy Collection ID" Description="Puts the collection ID on the clipboard">
<Executable>
<FilePath>wscript</FilePath>
<Parameters>"C:\smsadmin\Scripts\SMS - CopyName.vbs" ##SUB:CollectionID##</Parameters>
</Executable>
</ActionDescription>
<ActionDescription Class="Executable" DisplayName="OU Collection" MnemonicDisplayName="OU Collection" Description="Create a collection based on selected OU">
<Executable>
<FilePath>C:\smsadmin\tools\wkix32.exe</FilePath>
<Parameters>C:\smsadmin\scripts\OUCollection.kix $ParentName="##SUB:Name##" $ParentCollection=##SUB:CollectionID## $Server=##SUB:__Server## $NameSpace=##SUB:__NAMESPACE## /i</Parameters>
</Executable>
</ActionDescription>
<ActionDescription Class="Executable" DisplayName="A minus B" MnemonicDisplayName="A minus B" Description="Creates a collection based two other collections">
<Executable>
<FilePath>wscript</FilePath>
<Parameters>"C:\smsadmin\Scripts\SMS - A minus B.vbs" "##SUB:Name##" ##SUB:CollectionID## ##SUB:__Server## ##SUB:__NAMESPACE##</Parameters>
</Executable>
</ActionDescription>
<ActionDescription Class="Executable" DisplayName="A plus B" MnemonicDisplayName="A plus B" Description="Creates a collection based two other collections">
<Executable>
<FilePath>wscript</FilePath>
<Parameters>"C:\smsadmin\Scripts\SMS - A plus B.vbs" "##SUB:Name##" ##SUB:CollectionID## ##SUB:__Server## ##SUB:__NAMESPACE##</Parameters>
</Executable>
</ActionDescription>
</ActionGroups>
</ActionDescription>
I suggest you try to download the SCCM SDK if you can - it's all in there. Hope that helps
< Message edited by emacintosh -- 1/3/2008 8:11:18 AM >
|