SCCM Console Extensions
Some small notes and short (but powerful) example about SCCM Console Extensions…
Some good-to-have GUIDs
You find them all in adminconsole.xml
- fa922e1a-6add-477f-b70e-9a164f3b11a2 – First-level collections
- dbb315c3-1d8b-4e6a-a7b1-db8246890f59 – Subcollections
- 7ba8bf44-2344-4035-bdb4-16630291dcf6 – Resource in collection
- de41d5d8-3845-4e67-9657-0121f06f5e27 – Programs
- a1ad0705-ce2d-4981-96f5-8f0faad47396 – Advertisments
- 49696c48-9c3a-4d4a-bb38-473394700d43 – Site Systems
Some of the SUBs
You find them all in adminconsole.xml
- ##SUB:__Server##
- ##SUB:__Namespace##
- ##SUB:Name##
- ##SUB:PackageID##
- ##SUB:ProgramName##
- ##SUB:SiteCode##
- ##SUB:SiteName##
- ##SUB:NetworkOSPath##
- ##SUB:AddressType##
- ##SUB:Order##
- ##SUB:value##
- ##SUB:ItemName##
Example XML-file:
(Put it to “SCCM\AdminUI\XmlStorage\Extensions\Actions\fa922e1a-6add-477f-b70e-9a164f3b11a2\sccmExtensions.xml”)
<ActionDescription Class="Executable" DisplayName="Show Params" MnemonicDisplayName="Show Params" Description = "Show Params"> <Executable> <FilePath>C:\sccmExtenstions.vbs</FilePath> <Parameters>##SUB:__Server## ##SUB:__Namespace## ##SUB:Name## ##SUB:PackageID## ##SUB:ProgramName## ##SUB:SiteCode## ##SUB:SiteName## ##SUB:NetworkOSPath## ##SUB:AddressType## ##SUB:Order## ##SUB:value## ##SUB:ItemName##</Parameters> </Executable> </ActionDescription>
And the script to use
(Put this into C:\sccmExtensions.vbs)
sOut = "" For i = 0 to WScript.Arguments.Count-1 sOut = sOut & "Arg " & i+1 & " : " & Wscript.Arguments(i) & vbCrLf Next MsgBox sOut
Then, try to right-click a first level collection and select “Show Params”…
Tip
Greg Ramsy’s Console Extensions GUID Locator
www.google.com
Happy scripting!





2008-05-29 13:23
Some Package Status GUIDs
2009-05-06 13:41
[...] wrote some about this topic in a post a while ago… did some more scripting around this [...]
2009-05-06 14:01
[...] There are a few standard SUB’s (parameters) that you can use, some are listed in this post: http://www.snowland.se/2008/05/28/sccm-console-extensions/ [...]