windows查看连接过wifi的密码

@echo off & setlocal EnableDelayedExpansion
title 查看所有wifi和密码
for /f "usebackq delims=:  tokens=1-2" %%a in (`netsh wlan show profiles ^| findstr "用户配置文件"`) do (
    for /f "usebackq delims=:  tokens=1-2" %%m in (`netsh wlan show profile name^=%%b key^=clear`) do (
        echo "%%m" | findstr "关键内容" >nul && echo 账号:【%%b】密码:【%%n】
    )
)
pause

将上述代码复制到bat文件中运行即可

posted @ 2020-08-24 10:53  雨中遐想  阅读(134)  评论(0编辑  收藏  举报