How to see wifi password in Windows

How to know/ how to see saved wi-fi password in the computer already connected to the wifi?.
If you forget the password and need the password for connecting other device.

Open Command line / Command prompt as Administrator.
Write the command :
netsh wlan show profile SSID/wifi-name key=clear 

For example, my SSID is kakara
the command : 

netsh wlan show profile kakara key=clear then hit Enter key.

You can see at the Security setting information. Key content is contain the saved wifi password.