Retrieve application properties from SCCM using script during deployment

In our environment, we deploy some applications with Powershell in rare cases. For logging, we want the script to retrieve properties from SCCM during installation. The properties in question are the name, version, and provider. After doing some research, I realized that I was getting an instance of CCM_Application from the SCCM 2012 Client SDK:

Get-WmiObject -Namespace "Root\CCM\Clientsdk" -Class "CCM_Application" | Where {$_.EvaluationState -eq 12}

Searching for the value of EvaluationState 12, I find the application in the Software Center that is currently installed. This is great for applications deployed on devices. But; when working with applications deployed for users, it does not return anything. After some research, I found that CCM_Application is user-oriented, and the privileged service account running under the script does not have an application instance.

Is there a way to get the above code to work with applications deployed to users? Also; is there a better way to somehow get ccmexec properties at run time?

+4
source share
1 answer

, . , , , . , , .

, , , appenforce.log. , .

0

All Articles