()

We are always on the lookout for geeky ways to impress our friends, and recently we came across a way to connect to our wireless network from the command prompt, so today we’ll show you how to do it as well.
我們一直在尋找令人印象深刻的方式來打動我們的朋友,最近,我們遇到了一種從命令提示符連接到我們的無線網絡的方式,因此今天我們還將向您展示如何做到這一點。
如何從命令行瀏覽和連接到無線網絡 (How to Browse and Connect to Wireless Networks From the Command Line)
Browsing available wireless networks from the command prompt requires only a single command:
從命令提示符瀏覽可用的無線網絡只需要一個命令:
netsh wlan show networks
netsh wlan顯示網絡

Unfortunately in order to connect to a network, you need to have a network profile for it. This means that you need to have connected to it at least once before. To see what profiles you have available on your machine, use the following command:
不幸的是,要連接到網絡,您需要具有網絡配置文件。 這意味著您至少需要連接一次。 要查看計算機上可用的配置文件,請使用以下命令:
netsh wlan show profiles
netsh wlan顯示資料

Once you have made sure you have a profile for the network you want to connect to, you can easily connect to it using the network profile name:
確定要連接的網絡的配置文件后,可以使用網絡配置文件名稱輕松連接到該配置文件:
netsh wlan connect name=”w1r3l3$$”
netsh wlan connect name =” w1r3l3 $$”

That’s all there is to it.
這里的所有都是它的。
翻譯自: https://www.howtogeek.com/132072/stupid-geek-tricks-how-to-browse-and-connect-to-wireless-networks-from-the-command-line/