How to use CMD to find passwords for previously connected WiFi

1 Press Win + R to bring up Run window

Win + R, Run window
Win + R, Run window

2 Enter cmd and Press enter key

3 Enter “netsh wlan show profile” command and press enter key to show previously connected WiFi networks

CMD window, command line window
CMD window, command line window

4 Enter following command to show password of selected WiFi profile

netsh wlan show profile name="profilename" key=clear
Results of  netsh wlan show profile name="profilename" key=clear
Results of netsh wlan show profile name=”profilename” key=clear

Your WiFi password will be displayed under “Security settings” section with Key Content row.