SCCM Console Extensions – Parameters
OK, so now you know the GUID for the right-click tool… but what about passing parameters?
There are a few standard SUB’s (parameters) that you can use, some are listed in this post: https://snowland.se/2008/05/28/sccm-console-extensions/
But if you take the example of GUID 5fb29b42-5d11-4642-a6c9-24881a7d317e that you can find under Software Distribution Packages / Packages / Some package / Package Status / Site Server / Right click on a distribution point
Say that you want to pass the server-name or the path to the package…
First off, open the E:\Program Files\Microsoft Configuration Manager\AdminUI\XmlStorage\ConsoleRoot\AdminConsole.xml in some editor.
Then search for the GUID and you will find something like this.
SMS_PackageStatusDetailSummarizer SELECT * FROM SMS_PackageStatusDistPointsSummarizer WHERE PackageID='##SUB:PackageID##' AND SiteCode='##SUB:SiteCode##' SMS_PackageStatusDistPointsSummarizer
A few lines below the GUID you find SELECT * FROM SMS_PackageStatusDistPointsSummarizer WHERE Packa… Copy that line and replace/clean it up so that it is a valid WMI-query.
Will look something like:
SELECT * FROM SMS_PackageStatusDistPointsSummarizer WHERE PackageID='XYZ00123' AND SiteCode='XYZ'
Next step is to start some WMI-browser and connect to root\SMS\site_XYZ and run the query and take a look at the columns.
(I like to use WMI Explorer)
In the query above you will have columns like ServerNALPath, SourceNALPath, SourceVersion this is what you are looking for. ![]()
Use them in your extensions like this:
myScript.vbs ##SUB:ServerNALPath## ##SUB:SourceNALPath## ##SUB:SourceVersion##


