如何查看电脑连接的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
相关推荐
ACP广源盛139246256733 小时前
IX8024与科学大模型的碰撞@ACP#筑牢科研 AI 算力高速枢纽分享
运维·服务器·网络·数据库·人工智能·嵌入式硬件·电脑
humors2217 小时前
不同厂商电脑检测工具汇总
电脑·硬件·笔记本·检测·二手·正品·原件
舟遥遥娓飘飘9 小时前
Nexus4CC 手机电脑同步claude code对话部署教程(基于linux系统)
linux·智能手机·电脑
开开心心就好12 小时前
近200个工具的电脑故障修复合集
安全·智能手机·pdf·电脑·consul·memcache·1024程序员节
humors2211 天前
电脑厂商旧机处理网址合集(不定期更新)
电脑·笔记本·处理·回收·以旧换新·二手·买卖
humors2211 天前
不同品牌电脑进入 BIOS 及启动菜单的快捷键
电脑·快捷键·启动·笔记本
zB6822HbX1 天前
Ledger设备连接不上电脑?秘语盾排查指南
电脑
humors2211 天前
家庭电脑从选购、安装、维护到回收全流程
电脑·安装·笔记本·回收·维护·选购·购买
humors2212 天前
硬件(处理器/显卡)大比拼(不定期更新)
电脑·cpu·gpu·显卡·笔记本·处理器·比较
软件富二代2 天前
迷你关机小工具,让windows锦上添花
电脑·软件需求·软件