Command line options for Software Center

In SCCM CB 1706 there is a new feature that allows you to direct link an application to Software Center by pasting a link into your browser. This can be achieved by clicking the “Share” icon when you have choose the application you want to link to.

image

This will create a link like this:

softwarecenter:SoftwareID=ScopeId_6DBD4E39-1B15-4F1D-9264-E3BAFE97B0A3/Application_337e2afd-0ec2-4494-bb9e-d8787d7fc627

This link can then be used on a webpage or pasted directly into the address bar.

image

When you do this and the SCCM client with the new Software Center is installed it will trigger the following commandline:

"C:\WINDOWS\CCM\ClientUX\SCClient.exe" softwarecenter:SoftwareID=ScopeId_6DBD4E39-1B15-4F1D-9264-E3BAFE97B0A3/Application_337e2afd-0ec2-4494-bb9e-d8787d7fc627

But there are some other undocumented command line options that can be used and that was already present in earlier versions of SCCM, I have confirmed them to work with CB 1702 but they might work on even earlier versions.

The first option is Page and it can be used with the following values:

  • AvailableSoftware
  • Updates
  • OSD
  • InstallationStatus
  • Compliance
  • Options

For example, the following syntax would start Sotware Center with the Applications tab open:

"C:\WINDOWS\CCM\ClientUX\SCClient.exe" softwarecenter:Page=AvailableSoftware
image

To control the layout of the different tabs you can also add the two values FilterType and SortType. Depending on which tab you choose only certain of the values work, you will have to try which options works where.

FilterType:

0=All
1=AllMandatory
2=AllApplicationApps
3=MandatoryAppApplications
4=AllUpdates
5=MandatoryUpdates
6=AllHighImpactTS
7=MandatoryHighImpactTS
8=ACSApplications

SortType:

0=SortByNameDescending
1=SortByNameAscending
2=SortByDateDescending
3=SortByDateAscending
4=SortByPublisherDescending
5=SortByPublisherAscending
6=SortByStatus

The syntax for using FilterType and SortType is:

"C:\WINDOWS\CCM\ClientUX\SCClient.exe" softwarecenter:Page=InstallationStatus FilterType=2 SortType=6

Thanks to “Erik DK” on the configmanager uservoice for pointing me in the right direction.

Update: Thanks to Mark Silvey @configmgrdev for pointing out that you should be very careful if using the path to SCClient.exe since that might change in the future. Where possible just use the "softwarecenter:" prefix. If you need to find out where the softwarecenter protocol is pointing to create a dynamic path its stored in HKLM\SOFTWARE\Classes\softwarecenter\shell\open\command registry path.

Hope this helps!

/Matt

Twitter: @matbg

About the author

Mattias Benninge

4.6 5 votes
Article Rating
Subscribe
Notify of
guest
9 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Oleg Proscurchin
Oleg Proscurchin
2 years ago

Hi Mattias,

Is there a way to run something similar to this ""C:\WINDOWS\CCM\ClientUX\SCClient.exe" softwarecenter:SoftwareID=ScopeId_6DBD4E39-1B15-4F1D-9264-E3BAFE97B0A3/Application_337e2afd-0ec2-4494-bb9e-d8787d7fc627" but for package not application? I basically use a Toast Notification solution, which works great for Applications but not for packages.

Johan Arwidmark
Admin
2 years ago

Hi Oleg,
Don't know about that, I have been using PowerShell to launch available packages when needed. Here is an example: https://github.com/DeploymentResearch/DRFiles/blob/master/Scripts/Invoke-AvailablePackagesDeployment.ps1

/ Johan

Oleg Proscurchin
Oleg Proscurchin
6 months ago

Thanks 👍

Guy Lotowicz
Guy Lotowicz
2 years ago

Hello, I enjoyed this post. I am trying to execute the application to install it automatically. Is there a way to be able to click on install? And can this be suppressed so we don't see it? Lastly, can it report back that is was done successfully or not? Thank you. Guy

Paul Blackman
Paul Blackman
3 years ago

Hi, is there anyway to suppress the "this page is trying to open" box that appears? users are warned about clicking links they dont know about so might panic when they see this.

Susan Williams
Susan Williams
4 years ago

Hi Mattias, are you aware of any way to use these parameters to open to a particular search. For example, suppose we want to point users to all of the Adobe products available in the Software Center. Can I create a link with parameters that will open Software Center with the search term 'Adobe' that runs the search and returns all software with 'Adobe' in its name?


>