以管理员身份打开cmd,在cmd中输入
netsh wlan show profile
继续输入
netsh wlan export profile folder=C:\ key=clear
可以在C盘查看xml文件,查看wifi密码
xml示例
<?xml version="1.0"?>
-<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
<name>Redmi K40</name>
-<SSIDConfig>
-<SSID>
<hex>5265646D69204B3430</hex>
<name>Redmi K40</name>
</SSID>
</SSIDConfig>
<connectionType>ESS</connectionType>
<connectionMode>auto</connectionMode>
-<MSM>
-<security>
-<authEncryption>
<authentication>WPA2PSK</authentication>
<encryption>AES</encryption>
<useOneX>false</useOneX>
</authEncryption>
-<sharedKey>
<keyType>passPhrase</keyType>
<protected>false</protected>
<keyMaterial>12345678</keyMaterial>//wifi密码
</sharedKey>
</security>
</MSM>
-<MacRandomization xmlns="http://www.microsoft.com/networking/WLAN/profile/v3">
<enableRandomization>false</enableRandomization>
</MacRandomization>
</WLANProfile>