Run this command as administrator.
netsh wlan show profile name=labnol key=clear
NOTE: Replace labnol with the name of the Wireless SSID.
netsh wlan show profile name=labnol key=clear | findstr Key
NOTE: If you do not see the password, probably you have not opened the command prompt window as administrator.
If you are using this technique to retrieve the WiFi password on a Windows computer but getting an error that says – “The Wireless AutoConfig Service (wlansvc) is not running” – here’s a simple fix: