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

问题

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

解决

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

  1. 打开windows命令行。按下windows + r快捷键,然后输入cmd回车就打开了
  2. 命令行输入netsh wlan show profiles 可以看到电脑已经配置了wifi。效果如下
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后面的内容就是密码
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
  • 5
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值