It often happens that suddenly someone asks you for your WiFi password and you can't remember at that time. It seems to us that the password was very easy but cannot remember, then we think that the password of WiFi is saved in the computer but how to know it. So there are two solutions to this problem, one is to find out manually, and the other is from CMD.
Knowing WiFi Password from CMD in Windows 10 is easy, all we have to do is remember or copy-paste the two-line command
Let us know how to find the WiFi password on your Windows 10 computer with the help of CMD.
Step 1: Open CMD - Go to the start menu and type cmd so that the CMD icon will be visible, you have to open it as administrator by clicking
Step 2: Finding WiFi Username or SSID(Service Set Identifier) - type command netsh wlan show profile and press enter.
After entering this command, we will now get All the usernames or SSID of the Wifi that was once connected to our computer.
Step 3 : Get the password - type command netsh wlan show profile Queryflag.com key=clear and press enter button
So our output will appear in cmd after a few scrolls down here you can see that your password will appear with name key content. look into the following picture
NOTE: Here we are trying to get the wifi password of the username Querflag.com. in your case you need to replace it with your own wifi username for that you need a password
Command- netsh wlan show profile Wifi name key=clear
Limitation: Remember that in this method you can only get the password of WiFi that has been connected to your computer once