Would you like to learn how to connect to a wireless network using the command line? In this tutorial, we are going to show you how to use the NETSH command to connect a wireless network on a computer running Windows.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
• Windows 7
Equipment list
The following section presents the list of equipment used to create this tutorial.
As an Amazon Associate, I earn from qualifying purchases.
Related tutorial – PowerShell
On this page, we offer quick access to a list of tutorials related to PowerShell.
Tutorial Windows – Connect to a wireless network using the command-line
As an Administrator, start an elevated Powershell command-line.
List all wireless networks visible to the system.
Here is the command output.
Create a new wireless configuration.
Create a new XML configuration file.
Here is the content of our configuration file.
Add a new wireless profile to the system.
Connect to the wireless network using the command line.
Display the wireless network connected to the interface.
Here is the command output.
In our example, we connected the computer to the wireless network named TST2 using the command line.