Hi nealgs, If I add comma and run the script, it got following issue. At C:\Users\sithu\Desktop\MerakiPSKTool.ps1:47 char:28 + "encryptionMode" = "wpa", + ~~~~~ The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such as a variable or a property. At C:\Users\sithu\Desktop\MerakiPSKTool.ps1:48 char:9 + "authMode" = "psk", + ~~~~~~~~~~ The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such as a variable or a property. At C:\Users\sithu\Desktop\MerakiPSKTool.ps1:48 char:22 + "authMode" = "psk", + ~~~~~ The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such as a variable or a property. At C:\Users\sithu\Desktop\MerakiPSKTool.ps1:49 char:3 + "psk" = $newpassword + ~~~~~ The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such as a variable or a property. + CategoryInfo : ParserError: (:) [], ParseException + FullyQualifiedErrorId : InvalidLeftHandSide If I don't add this two parameters "encryptionMode=wpa, authMode=psk", I got following issue when I run the script with "change" switch. Invoke-WebRequest : The remote server returned an error: (400) Bad Request. At C:\Users\sithu\Desktop\MerakiPSKTool.ps1:56 char:7 + $r = Invoke-WebRequest $request_uri -Method:Put -Headers $header_ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand Thank you.
... View more