If you forgot your Wi-Fi password, you can find it using the following method:
Open the command prompt by typing cmd in Windows search and clicking Run as administrator under the results.
In the command prompt window, enter:
etsh wlan show profiles
This way you will know the name of the Wi-Fi profile you are trying to find the password for.
now enter the following:
etsh wlan show profile name= WiFi Profile Name key=clear
Don’t forget to replace WiFi Profile Name with your profile name that you found in paragraph 2.
The password of your Wi-Fi network will appear in the Key Content.