如何查看电脑连接的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
相关推荐
hgdlip5 小时前
如何快速切换电脑的ip地址
网络·tcp/ip·电脑
missmisslulu8 小时前
电容笔值得买吗?2024精选盘点推荐五大惊艳平替电容笔!
学习·ios·电脑·平板
GEEKVIP9 小时前
手机使用技巧:8 个 Android 锁屏移除工具 [解锁 Android]
android·macos·ios·智能手机·电脑·手机·iphone
GEEKVIP9 小时前
如何在 Windows 10 上恢复未保存/删除的 Word 文档
macos·ios·智能手机·电脑·word·笔记本电脑·iphone
奇客软件10 小时前
iPhone使用技巧:如何恢复变砖的 iPhone 或 iPad
数码相机·macos·ios·电脑·笔记本电脑·iphone·ipad
小白电脑技术18 小时前
USB 3.0?USB 3.1?USB 3.2?怎么区分?
电脑
哲伦贼稳妥1 天前
一天认识一个硬件之电源
运维·其他·电脑·硬件工程
奇客软件1 天前
如何从相机的记忆棒(存储卡)中恢复丢失照片
深度学习·数码相机·ios·智能手机·电脑·笔记本电脑·iphone
丶21361 天前
【网络】用网线连接两台电脑实现远程桌面
网络·电脑
超爱找事2 天前
iMazing只能苹果电脑吗 Win和Mac上的iMazing功能有区别吗
windows·macos·电脑·数据备份·苹果·imazing