Edit WiFi Payload
Description
Section titled “Description”This function is used to Edit an existing WiFi payload in the specified profile.
Syntax
Section titled “Syntax”Public Function EditWifiPayload(profileId As Integer, currentNetworkName As String, networkName As String, hiddenNetwork As Boolean,autoJoin As Boolean, securityType As String, password As String, proxyType As String, proxyServer As String, proxyPort As String,proxyAuthentication As String, proxyPassword As String, proxyServerConfigURL As String, changelogComment As String) As BooleanParameters
Section titled “Parameters”Return value
Section titled “Return value”Returns a boolean value. True if succeded, false if not.
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")Wscript.echo oCMS.SetDefaultManagementPoint("2")
Dim iProfileId : iProfileId = 28Dim sCurrentNetworkName : sCurrentNetworkName = "Prod"Dim sNetworkName : sNetworkName = "Prod"Dim bHiddenNetwork : bHiddenNetwork = TrueDim bAutoJoin : bAutoJoin = TrueDim sSecurityType : sSecurityType = "WPA"Dim sPassword : sPassword = "123456789"Dim sProxyType : sProxyType = "None"Dim sProxyServer : sProxyServer = ""Dim sProxyPort : sProxyPort = ""Dim sProxyAuthentication : sProxyAuthentication = ""Dim sProxyPassword : sProxyPassword = ""Dim sProxyServerConfigURL : sProxyServerConfigURL = ""Dim sChangelogComment : sChangelogComment = "Changed wifi password with sdk"
Wscript.echo "Changed Prod wifi: " & oCMS.EditWifiPayload(iProfileId, sCurrentNetworkName, sNetworkName, bHiddenNetwork, bAutoJoin, sSecurityType, sPassword, sProxyType, sProxyServer, sProxyPort, sProxyAuthentication, sProxyPassword, sProxyServerConfigURL, sChangelogComment)