So lets start with the method-
1-First of all you have to open your command prompt by clicking on start and then type cmd there and open it as 'Run as administrator'.
2-Now you have to type "netsh wlan show profiles" and then press enter.
3-You will see the number of profiles of wifi networks.You have to choose one whose password you want to know.
4-Now type "netsh wlan show profile [name of the profile] key=clear" and then press enter.
5- The password of the wifi profile will be visible to you under the security settings.
So this was the easiest way to find wifi password using cmd.
Note- You don't have to put brackets before and after the profile name and you have to write the name of the wifi as it is written without any difference.
If you are feeling any difficulty then feel free to contact us.