Create Profile
Description
Section titled “Description”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 If the new profile should be linked to a Business Unit,you can specify a businessUnitId.
Syntax
Section titled “Syntax”Public Function CreateProfile(name As String, description As String, priority As Integer, changelogComment As String) As BooleanParameters
Section titled “Parameters”Return value
Section titled “Return value”Returns a boolean value. True if succeeded, false if not.
Example
Section titled “Example”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")