Add/edit Enforce Passcode (Android)
Description
Section titled “Description”This function is used to add a new Enforce Passcode payload or edit an existing payload in the specified profile.
Syntax
Section titled “Syntax”Public Function AddEditEnforcePasscodeAndroid(ProfileId As Integer, Passcode As String, 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”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")Wscript.echo oCMS.SetDefaultManagementPoint("2")
Dim iProfileId : iProfileId = 184Dim sPasscode : sPasscode = "918273"Dim sChangelogComment : sChangelogComment = "Changed passcode on profile with sdk"Wscript.echo "Changed passcode: " & oCMS.AddEditEnforcePasscodeAndroid(iProfileId, sPasscode, sChangelogComment)