Get Profiles
Description
This function is used to get all the profiles from the Default Managment Point. The default point is set using Set default management point function
Public Function GetProfiles()
Return value
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
Example
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.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