Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 7 無線網路 netsh wlan 指令大全:虛擬 AP、匯入匯出設定檔、連線管理

編輯:Win7 常見問題解答

netsh wlan 是 Win7/Vista/Server 2008 強大的無線網路命令列工具,支援腳本化部署多台電腦。本文整理核心指令分類速查:

虛擬 Wi-Fi 熱點指令

netsh wlan set hostednetwork mode=allow ssid=名稱 key=密碼 keyUsage=persistent
netsh wlan start hostednetwork
netsh wlan show hostednetwork
netsh wlan refresh hostednetwork
netsh wlan stop hostednetwork
netsh wlan export hostednetworkprofile folder=路徑 name=設定檔名

啟用後,於「網路連線」中右鍵連上網際網路的介面卡 →「共用」→ 選擇虛擬介面卡,即可共享上網。

顯示設定值指令

netsh wlan show createalluserprofile
netsh wlan show allowexplicitcreds
netsh wlan show onlyusegpprofilesforallowednetworks

其他實用指令

netsh wlan reportissues                    # 產生診斷報告 (C:\Windows\Tracing)
netsh wlan set allowexplicitcreds allow=yes|no
netsh wlan set blockperiod 分鐘數
netsh wlan set profiletype name=名稱 profiletype=all|current
netsh wlan show networks                     # 列出鄰近無線網路詳細資訊
netsh wlan connect ssid=名稱 name=設定檔 interface=介面名
netsh wlan export profile folder=路徑 name=設定檔 interface=介面名
netsh wlan add profile filename=路徑 interface=介面名 user=all|current

netsh wlan 指令說明
匯出設定檔範例

善用指令腳本,實現無線網路設定自動化部署與快速疑難排解。

Copyright © Windows教程網 All Rights Reserved