If I try to use the method DownloadContents of the CCM_Application Class in the ClientSDK method i run in a issue. The goal of my application is to download content of a specific application, when the content is not in the local cache.
I receive always the following errors from the DCMAgent log:
CcmCISdkProvider::DownloadContents - Failed to invoke App Evaluation trough AppSdk(0x800706f4)
Method DownloadContents failed with error code 800706F4
My powershell code is:
$appClass = [WmiClass]("\\.\root\ccm\ClientSDK:CCM_Application") $inParams = $appClass.PSBase.GetMethodParameters("DownloadContents") $inParams.Id = "ScopeId_34890e74-af21-4e0b-a761-52b20d4ff64f/Application_8a35436d-1422-4be0-9dc2-74a21e182a69" $inParams.Revision = "1" $inParams.IsMachineTarget = $true $inParams.Priority = "Heigh" $outParams = $appClass.PSBase.InvokeMethod("DownloadContents", $inParams,$null)