Command to show WiFi password saved on Windows and Ubuntu

Run Command Prompt as Administrator

Run the following command to show all your wifi profile


netsh wlan show profile

Run the following command to show details about the profile


netsh wlan show profile [PROFILENAME] key=clear

Command to show WiFi profile on Ubuntu

Run the following command to show WiFi profiles

$ ls /etc/NetworkManager/system-connections
...
$ sudo cat [PROFILENAME]