windows 通過cmd命令(netsh wlan命令)連接wifi


1. windows電腦網口歷史連接信息

1)顯示本機保存的profiles,配置文件是以wifi的ssid命名的。
netsh wlan show profiles
2)可以用netsh wlan connect name=xxxxx連接其中一個profile
3)斷開連接 netsh wlan disconnect

2. 幫助信息

netsh wlan help

3. 其他

其它常用的命令:
Netsh WLAN delete profile name="Profile_Name"
Netsh WLAN set profileparameter name="Profile_Name" connectionmode=manual
Netsh WLAN set profileparameter name=" Profile_Name" connectionmode=auto
列出配置文件:netsh wlan show profile
導出配置文件:netsh wlan export profile key=clear
刪除配置文件:netsh wlan delete profile name=""
添加配置文件:netsh wlan add profile filename=""
連接指定熱點:netsh wlan connect name="wifi name"
列出無線接口:netsh wlan show interface
開啟無線接口:netsh interface set interface "Interface Name" enabled

查看特定wifi密碼

C:\Users\xxx> netsh wlan show profiles
確定profiles名字,然后
netsh wlan show profiles 填ssid名稱 key=clear

枚舉所有連接過的wifi:
for /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do @echo %j | findstr -i -v echo | netsh wlan show profiles %j key=clear
【完】


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM