Skip to content

Get Profiles

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

Public Function GetProfiles()

The function returns an array of profiles. Each profile in the array is a joined line with the character defined with Set splitter.

  • profile.ID
  • profile.Name
  • profile.Description
  • profile.Priority
  • profile.Version
  • profile.CMPID
  • profile.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.GetProfiles()
For Each item In aList
arr=Split(item,"|")
Wscript.echo "Profile: ID: " & arr(0) & ". Name: " & arr(1) & ". Description: " & arr(2) & ". Priority: " & arr(3) & ". Version: " & arr(4) & ". CMPID: " & arr(5) & ". GUID: " & arr(6)
Next