Skip to content

Create Profile in Business Unit

This function is used to create a new profile in the Default Managment Point, and link it to a Business Unit. A default point is selected with Set default management point

Public Function CreateProfileInBusinessUnit
(name As String, description As String, priority As Integer, changelogComment As String, businessUnitId As Integer) As Boolean

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

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
oCMS.SetDatabaseSettings("ServerName", "CapaInstaller", False)
Wscript.echo oCMS.SetDefaultManagementPoint("2")
Wscript.echo oCMS.CreateProfileInBusinessUnit("Exchange BU1", "", 350, "New profile from the sdk", 1)