How to map a WiFi via CMD?

How to map a WiFi via CMD?

To connect a Windows computer to a WiFi network using the command-prompt, you can use the netsh command.

Open the Command Prompt and type the following command to view the available wireless networks:

Locate the network you want to connect to, and note its SSID, authentication and encryption methods. You may need ask for the password.

Copy the network.xml file in a text editor (e.g. Notepad) , enter the SSID name (replace %my_wifi_network_name%), authentication (replace %Authentication_type%), encryption (replace %Encryption_type%) and keyMaterial (replace %my_wifi_password%). Save it as a .xml file.

Type the following command to add the network profile:

To connect to your newly added profile type the command:

If all went well you should now be connected. Open your network browser and check if you can reach your favorite website.