Page tree
Skip to end of metadata
Go to start of metadata


This function is used to add a new Enforce Passcode payload or edit an existing payload in the specified profile.


Public Function AddEditEnforcePasscodeAndroid(ProfileId As Integer, Passcode As String, ChangelogComment As String) As Boolean


ProfileId (Integer)

The id of the Profile you wish to edit.

(Use Get Profiles to get more information on existing Profiles)

Passcode (String)

        The passcode to enforce

ChangelogComment  (String)

Comment you wish to be added to the changelog on the Device Application

Return value

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


Set oCMS = CreateObject("CapaInstaller.SDK") 
Wscript.echo oCMS.SetDefaultManagementPoint("2") 

Dim iProfileId                  : iProfileId = 184
Dim sPasscode                    : sPasscode = "918273"
Dim sChangelogComment           : sChangelogComment = "Changed passcode on profile with sdk"
Wscript.echo "Changed passcode: " & oCMS.AddEditEnforcePasscodeAndroid(iProfileId, sPasscode, sChangelogComment)