Aim:
Trigger installation of Softwarecenter package available to the user by script (not by the UI).
Used method:
Microsoft CCM_Application client WMI class by Powershell
Issue:
While querying the namespace root\ccm\clientsdk class ccm_application I've found that it contains objects for any triggered application installs and not all the applications that are available to the user via Softwarecenter.
Therefore applying methods of CCM_Application (install / un-install,..) is not possible for the required packages as these packages are new packages that are optional for the user to be installed.
I did not found this documented here:
https://learn.microsoft.com/en-us/mem/configmgr/develop/reference/core/clients/sdk/ccm_application-client-wmi-class
Example / How to reproduce:
Powershell:
PS C:\WINDOWS\system32> Get-CimInstance -ClassName CCM_Application -Namespace "root\ccm\clientSDK" | Where-Object {$_.Name -like "*Zulu*272*"}
Does not give a result, if the "Zulu UAT 272" package had not yet been installed manually via Softwarecenter. After triggering manually the install the object is shown and all methods of CCM_Application class can be used (install, uninstall, ..)
I hope somebody can help here..