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! 🙂

3 comments

  1. riro

    Some Package Status GUIDs

    • 5fb29b42-5d11-4642-a6c9-24881a7d317e – Software Distribution Packages
    • 7569f9d5-21b3-40d0-9439-f51060533fa2 – Software Distribution Packages via System Status
    • 9ecad643-9d9d-4101-9ffa-709844b40f34 – Boot Images
    • 60037b5a-f63e-43a9-bd3d-de1ffbb70693 – Operating System Image
    • f96194dd-092f-4e86-8399-b36e844b9c42 – Operating System Install Package
    • 933cc806-a4a9-4639-ba7d-560b83a23aaa – Driver Package Status
    • b65d5cfb-0523-40b3-9113-a5e7d32aa3ea – Software Update Deployment Package Status
  2. Pingback: SCCM Console Extensions - Find the GUID » snowland.se
  3. Pingback: SCCM Console Extensions - Parameters » snowland.se