查看 Windows 已保存的 Wi-Fi 密码

用 netsh wlan show profile key=clear 显示电脑连过的 Wi-Fi 网络的明文密码。

WindowsWLAN密码命令提示符Wi-Fi中风险
运行 `netsh wlan show profile name="网络名" key=clear`,在输出的 Key Content 一行就能看到明文密码。

01命令

命令
$ netsh wlan show profile name="HomeWiFi" key=clear

02作用说明

Windows 会保存连接过的每个网络的密码。key=clear 参数让 netsh 直接以明文显示保存的密码,而不是打码。在输出里找到 Key Content 一行即可。此方法只对这台电脑连接过的网络有效。

03风险

风险中风险
使用条件The network must be a saved profile on this PC. Reading the key may require an administrator terminal on some setups.
!注意: 密码会以明文显示在屏幕上,请只在自己的电脑上使用,也不要把输出截图或粘贴到聊天里。

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • netsh
    Microsoft Learn · vendor-doc · 2026-09-17
    依据: Documents netsh WLAN commands including `netsh wlan show profile name=... key=clear` and `netsh wlan delete profile name=...`.
  • Netsh commands - Windows CMD
    SS64 · technical · 2026-09-17
    依据: Reference for netsh context commands such as wlan delete profile and winhttp proxy.

最后验证: 2026-09-18 · 分类: 网络

06相关方案