Skip to content

Get Device Applications

This function is used to get all the Device Applications from the Default Managment Point. The default point is set using Set default management point function

Public Function GetDeviceApplications()

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
  • DeviceApplications.GUID

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
Set aList = CreateObject("System.Collections.ArrayList")
Wscript.echo oCMS.SetDatabaseSettings("ServerName", "CapaInstaller", False)
Wscript.echo oCMS.SetDefaultManagementPoint("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