admin管理员组

文章数量:1565829

方法一:简单粗暴
直接上脚本

@echo off

chcp 437 >nul

for /f "tokens=1* delims=:" %%i in ('netsh wlan show profiles ^| findstr /c:"All User Profile"') do (

    call :GetPass %%j

)

pause

goto :eof

:GetPass

echo WiFi : %*

for /f "delims=" %%a in ('netsh wlan show profile name^="%*" key^=clear ^| findstr /c:"Key Content"') do (

    echo %%a

)

goto :eof

搞成bat文件 直接运行
效果下图
wifi名 密码

方法二:繁琐命令

netsh wlan show profiles

输入命令可以直接看到所有连接过的wifi名称

输入命令查看一个wifi的密码和其他信息

netsh wlan show profiles name="上图wifi的名字" key=clear

本文标签: 批处理名字密码系统电脑