Windows.Devices.WiFi.WiFiAdapter.ConnectAsync returns networkNotAvailable instead of connecting
We are hoping to have a powershell or .net script to automatically connect the user to our wifi network. The wifi profile is populated using netsh wlan add profile filename=”ourWIFI.xml”.
The following code works fine with wpa2 personal at home. it just requires a password and ssid at home. At the office we require a username/password to join the wifi. No matter what i try it returns ConnectionStatus: NetworkNotAvailable. Clicking on the available networks and manually entering Username and Password it connects fine. The following is saved as a ps1 file. If someone has a suggestion i would love to hear from you.
Thanks in advance to everyone who is smarter than me