Connect

Resources https://technet.microsoft.com/en-us/library/f435edbe-1d50-4774-bae2-0dda33eaeb2f?f=255&MSPPError=-2147217396#bkmk_wlanConn Connect Using WiFi Profile netsh wlan connect name=MY_WIFI_PROFILE_NAME If the WiFi adapter is already connected to a WiFi network it will automatically disconnect first. If you have more than 1 WiFi adapter you must specify an interface name to use: netsh wlan connect name=MY_WIFI_PROFILE_NAME interface="Wireless LAN Adapter"  

Read More

Add Profile

Resources https://technet.microsoft.com/en-us/library/f435edbe-1d50-4774-bae2-0dda33eaeb2f#bkmk_wlanAddProfile Add A New WiFi Profile Create the WiFi profile xml file and save it somewhere An example valid WPA2-PSK profile <?xml version="1.0"?> <WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1"> <name>MY_WIFI_PROFILE_NAME</name> <SSIDConfig> <SSID> <name>MY_WIFI_SSID</name> </SSID> <nonBroadcast>false</nonBroadcast> </SSIDConfig> <connectionType>ESS</connectionType> <connectionMode>auto</connectionMode> <MSM> <security> <authEncryption> <authentication>WPA2PSK</authentication> <encryption>AES</encryption> <useOneX>false</useOneX> </authEncryption> <sharedKey> <keyType>passPhrase</keyType> <protected>false</protected> <keyMaterial><MY_WIFI_PASSWORD</keyMaterial> </sharedKey> </security> </MSM> </WLANProfile> The command to add it […]

Read More

Delete Profiles

Delete All Existing WiFi profiles (Doesn't matter if one is in use or if there are none, just use this command: netsh wlan delete profile name=* interface=*  

Read More