Password of the connected network
To see the password of the network to which you are currently connected, press Win + R, enter ncpa.cpl. In the network connections window, go to the network security properties.
Password of any saved network
Run at the command line:
netsh wlan show profile name=desired_network_name key=clear
List the names of all saved networks:
netsh wlan show profile