Add WiFi Payload to Profile
Description
Section titled “Description”This function is used to add a new WiFi payload to the specified profile.
Syntax
Section titled “Syntax”Public Function AddWifiPayloadToProfile(profileId As Integer, 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 succeeded, false if not.
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")Wscript.echo oCMS.SetDefaultManagementPoint("2")
Dim iProfileId : iProfileId = 28Dim sNetworkName : sNetworkName = "Prod"Dim bHiddenNetwork : bHiddenNetwork = FalseDim bAutoJoin : bAutoJoin = TrueDim sSecurityType : sSecurityType = "WPA"Dim sPassword : sPassword = "1234"Dim sProxyType : sProxyType = "None"Dim sProxyServer : sProxyServer = ""Dim sProxyPort : sProxyPort = ""Dim sProxyAuthentication : sProxyAuthentication = ""Dim sProxyPassword : sProxyPassword = ""Dim sProxyServerConfigURL : sProxyServerConfigURL = ""Dim sChangelogComment : sChangelogComment = "Added wifi with sdk"
Wscript.echo "Added Prod wifi: " & oCMS.AddWifiPayloadToProfile(iProfileId, sNetworkName, bHiddenNetwork, bAutoJoin, sSecurityType, sPassword, sProxyType, sProxyServer, sProxyPort, sProxyAuthentication, sProxyPassword, sProxyServerConfigURL, sChangelogComment)
iProfileId = 29sNetworkName = "Public"bHiddenNetwork = TruebAutoJoin = TruesSecurityType = "WEP"sPassword = "4321"sProxyType = "Automatic"sProxyServer = ""sProxyPort = ""sProxyAuthentication = ""sProxyPassword = ""sProxyServerConfigURL = "http://192.168.0.10:8080/proxy.pac"sChangelogComment = "Added public wifi with sdk"
Wscript.echo "Added Public wifi: " & oCMS.AddWifiPayloadToProfile(iProfileId, sNetworkName, bHiddenNetwork, bAutoJoin, sSecurityType, sPassword, sProxyType, sProxyServer, sProxyPort, sProxyAuthentication, sProxyPassword, sProxyServerConfigURL, sChangelogComment)