Skip to content

Get Device Applications

This function is used to get all the Device Applications from the instance Management Point. The instance management point is set using Set instance management point function.

Public Function GetDeviceApplications() As ArrayList

None

The function returns an array of Device Applications. Each Device Application in the array is a joined line with the character defined with Set splitter.

  • DeviceApplications.ID
  • DeviceApplications.Name
  • DeviceApplications.Description
  • DeviceApplications.Priority
  • DeviceApplications.Version
  • DeviceApplications.CMPID (the Id of the Management Point)
  • DeviceApplications.GUID
Set oCMS = CreateObject("CapaInstaller.SDK")
Set aList = CreateObject("System.Collections.ArrayList")
Wscript.echo oCMS.SetDatabaseSettings("ServerName", "CapaInstaller", False)
Wscript.echo oCMS.SetInstanceManagementPoint("2")
Set aList = oCMS.GetDeviceApplications()
For Each item In aList
arr=Split(item,"|")
Wscript.echo "Device Application: ID: " & arr(0) & ". Name: " & arr(1) & ". Description: " & arr(2) & ". Priority: " & arr(3) & ". Version: " & arr(4) & ". CMPID: " & arr(5) & ". GUID: " & arr(6)
Next