1. 程式人生 > 實用技巧 >如何從命令列瀏覽和連線到無線網路

如何從命令列瀏覽和連線到無線網路

image ()

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顯示網路

image

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顯示資料

image

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 $$”

image

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/