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

網管必備:Win7 WLAN netsh 指令完整參考與虛擬 WiFi 設定

編輯:Windows 7 系統介紹

netsh(Network Shell)是 Windows 內建強大命令列網路配置工具,支援本機與遠端腳本化管理。Vista/Win7/Server 2008 R2 新增 wlan 內容,提供 802.11 無線連線、安全性、虛擬 WiFi 完整管理能力。

常用 WLAN 指令速查

  • 顯示介面卡: netsh wlan show interfaces
  • 掃描可用網路: netsh wlan show networks
  • 連線至設定檔: netsh wlan connect name="ProfileName"
  • 匯出/匯入設定檔(XML): netsh wlan export profile folder="C:\Backup" / netsh wlan add profile filename="Profile.xml"
  • 刪除設定檔: netsh wlan delete profile name="ProfileName"
  • 顯示驅動資訊: netsh wlan show drivers

虛擬 WiFi(託管網路)專用指令

netsh wlan set hostednetwork mode=allow ssid="YourSSID" key="YourPassword" keyUsage=persistent|temporary
netsh wlan start hostednetwork
netsh wlan stop hostednetwork
netsh wlan show hostednetwork
netsh wlan export hostednetworkprofile folder="C:\Path" name="ProfileName"

參數說明:

  • mode=allow|disallow:啟用/停用虛擬網卡。
  • ssid:廣播名稱。
  • key:WPA2-PSK 密碼(8-63 字元)。
  • keyUsage=persistent:永久儲存密碼(預設);temporary:僅本次工作階段。
注意:無線網卡驅動必須通過 Win7 認證並支援虛擬 WiFi,否則指令會回報「不支援託管網路」。設定檔為唯讀,需透過匯出/匯入修改。
Copyright © Windows教程網 All Rights Reserved