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

【完】

最后修改:2024 年 06 月 26 日
如果觉得我的文章对你有用,请随意赞赏