# Get Profiles

> Gets all profiles from the instance Management Point.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/mdm-functions/get-profiles/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Description

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](/capainstaller/sdk-capainstaller-software-development-kit-functions/container-functions/set-instance-management-point/) function

## Syntax

**VBScript**

```vb
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](/capainstaller/sdk-capainstaller-software-development-kit-functions/container-functions/set-splitter/).

- profile.ID
- profile.Name
- profile.Description
- profile.Priority
- profile.Version
- profile.CMPID
- profile.GUID

## Example

**VBScript**

```vb
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
```
