netsh wlan show profiles
The list may look like below.
Profiles on interface Wi-Fi: Group policy profiles (read only) --------------------------------- <None> User profiles ------------- All User Profile : My Home All User Profile : Guest
netsh wlan show profiles "My Home" key=clear
In the output, you will see a section of Security settings. The Key Content value is the password in clear text.
Security settings
-----------------
Authentication : WPA2-Personal
Cipher : CCMP
Authentication : WPA2-Personal
Cipher : GCMP
Security key : Present
Key Content : MyWiFiPassword
As you can see, it's very easy to get the password. When guests coming to your house and asking for your WiFi password, don't think that the guests won't know the password if you type it in yourself on their devices.