Windows 7 在「網路和共用中心」提供「管理無線網路」圖形介面,Windows 8/8.1 移除此介面,改由命令列工具 netsh wlan 管理。
| 用途 | 指令 | 說明 |
|---|---|---|
| 列出所有已儲存的無線網路設定檔 | netsh wlan show profiles | 顯示設定檔名稱、類型、SSID 等資訊 |
| 查看特定設定檔詳細資訊 (含明文密碼) | netsh wlan show profile name="設定檔名稱" key=clear | Key Content 欄位即為 Wi-Fi 密碼 |
| 刪除特定無線網路設定檔 | netsh wlan delete profile name="設定檔名稱" | 執行後該網路不會自動連線,需重新輸入密碼 |
> netsh wlan show profiles
介面 Wi-Fi 上的設定檔:
群組原則設定檔 (唯讀)
---------------------------------
無
使用者設定檔
-------------
所有使用者設定檔 : HomeWiFi
所有使用者設定檔 : Office_Guest
所有使用者設定檔 : CoffeeShop
> netsh wlan show profile name="HomeWiFi" key=clear
...
安全性設定
-------------
驗證 : WPA2-個人
加密 : CCMP
認證 : WPA2-個人
安全性金鑰 : 12345678 <-- 這裡是明文密碼
> netsh wlan delete profile name="CoffeeShop"
設定檔 "CoffeeShop" 已從介面 "Wi-Fi" 刪除。