You are here:   Research
  |  Login

Welcome to my blog, quickest way to find articles is usually to search for them.

Minimize
Search in All Title Contents
 
     

Command line options for Software Center

Sep 07 2017

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








Happy deployment, and thanks for reading!


What our lawyers makes us say:

This information is provided "AS IS" with no warranties, confers no rights and is not supported by the authors or Deployment Artist.

Copyright © 2017 by Deployment Artist (the company behind deployment research). All rights reserved. No part of the information on this web site may be reproduced or posted in any form or by any means without the prior written permission of the publisher.

Shorthand: Don't pass off our work as yours, it's not nice.

Blog Archive

Minimize