Skip to content

Edit WiFi Payload

This function is used to Edit an existing WiFi payload in the specified profile.

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 Boolean

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

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
Wscript.echo oCMS.SetDefaultManagementPoint("2")
Dim iProfileId : iProfileId = 28
Dim sCurrentNetworkName : sCurrentNetworkName = "Prod"
Dim sNetworkName : sNetworkName = "Prod"
Dim bHiddenNetwork : bHiddenNetwork = True
Dim bAutoJoin : bAutoJoin = True
Dim 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)