如何查看电脑连接的wifi的密码

问题

很多时候我们电脑连上wifi之后就把密码忘记了,这个时候如果同事问自己密码是多少,如果作为程序员说不知道是不是感觉有点不好意思,哈哈......

解决

我使用的是windows电脑,就以windows为例说明下自己是如何查看的。

  1. 打开windows命令行。按下windows + r快捷键,然后输入cmd回车就打开了
  2. 命令行输入netsh wlan show profiles 可以看到电脑已经配置了wifi。效果如下
shell 复制代码
C:\Users\username>netsh wlan show profiles

Profiles on interface WLAN:

Group policy profiles (read only)
---------------------------------
    <None>

User profiles
-------------
    All User Profile     : test-5G
  1. 然后输入netsh wlan show profiles name="profileName" key=clear就可以看到密码了。效果如下。Security settings中的Key Content后面的内容就是密码
shell 复制代码
C:\Users\username>netsh wlan show profiles name="test-5G" key=clear

Profile gc on interface WLAN:
=======================================================================

Applied: All User Profile

Profile information
-------------------
    Version                : 1
    Type                   : Wireless LAN
    Name                   : gc
    Control options        :
        Connection mode    : Connect automatically
        Network broadcast  : Connect only if this network is broadcasting
        AutoSwitch         : Do not switch to other networks
        MAC Randomization  : Disabled

Connectivity settings
---------------------
    Number of SSIDs        : 1
    SSID name              : "test-5G"
    Network type           : Infrastructure
    Radio type             : [ Any Radio Type ]
    Vendor extension          : Not present

Security settings
-----------------
    Authentication         : WPA2-Personal
    Cipher                 : CCMP
    Authentication         : WPA2-Personal
    Cipher                 : GCMP
    Security key           : Present
    Key Content            : aa123456

Cost settings
-------------
    Cost                   : Unrestricted
    Congested              : No
    Approaching Data Limit : No
    Over Data Limit        : No
    Roaming                : No
    Cost Source            : Default
相关推荐
DONG9997 小时前
Win10系统笔记本电脑设置合上盖子自动锁屏
电脑
飞行增长手记15 小时前
IPv6怎么开启?图文详解你的电脑和路由器设置方法
电脑
悟能不能悟18 小时前
电脑没法ping通某个网段的ip
网络协议·tcp/ip·电脑
电手20 小时前
微软宣布删除“另存为”选项,今后文件将默认保存到云盘
windows·microsoft·电脑·onedrive·windows11·windows10
wan5555cn1 天前
国产电脑操作系统与硬盘兼容性现状分析:挑战与前景评估
人工智能·笔记·深度学习·机器学习·电脑·生活
AORO20252 天前
2025全新三防平板科普:5G-A+卫星通信+国产化
网络·5g·智能手机·电脑·制造·信息与通信
东风西巷2 天前
MyLanViewer(局域网IP扫描软件)
前端·网络·网络协议·tcp/ip·电脑·软件需求
两水先木示2 天前
联想笔记本电脑Y7000P更换电池后引发CPU锁0.78GHz问题修复记录
电脑
飞鹰@四海3 天前
(解决)重装系统电脑账户进不去被停用,PIN无法验证,提示0xc0000234
电脑
Chess_Chen3 天前
打印机驱动错误要怎么办?打印机驱动网能帮到我么?
电脑