Skip to content

Create Profile

This function is used to create a new profile in the instance Management Point. The instance management point is selected with Set instance management point. The new profile is active, and its version is 1. To create a profile that is linked to a Business Unit, use Create Profile in Business Unit.

Public Function CreateProfile
(name As String, description As String, priority As Integer, changelogComment As String) As Boolean
Parameter Type Description
name String The name of the profile.
description String The description of the profile. Can be empty.
priority Integer The priority of the profile.
changelogComment String A comment that is added to the changelog entry of the profile.

Returns a boolean value. True if succeeded, false if not.

Set oCMS = CreateObject("CapaInstaller.SDK")
Wscript.echo oCMS.SetDatabaseSettings("ServerName", "CapaInstaller", False)
Wscript.echo oCMS.SetInstanceManagementPoint("2")
Wscript.echo oCMS.CreateProfile("Passcode", "Profile with passcode payloads", 400, "New profile from the sdk")