CCM_Application client WMI class: available software is missing

Marc 11 Reputation points
2020-11-20T13:22:30.423+00:00

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://video2.skills-academy.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..

Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
467 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AllenLiu-MSFT 42,511 Reputation points Microsoft Vendor
    2020-11-23T06:16:30.747+00:00

    @Marc
    Thank you for posting in Microsoft Q&A forum.
    It seems you are referring to below script, this should work if the application is deployed to device collection. But it won't work if your deployments target user collections
    https://gallery.technet.microsoft.com/scriptcenter/Function-to-Installuninstal-175cd712#content


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.