()
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/