Occasionally I need to find the password for a wifi connection that I have previously connected to. Navigating the maze of dialogs to find it is never easy, especially when the path to those dialogs changes frequently in Windows 10.
One way to do it is to find the network via the Windows Control Panel (Control Panel -> Network and Internet -> Network and Sharing Centre). Once found, clicking on the connection properties will open the Wi-Fi Status panel:
Clicking on the Wireless Properties button and then selecting the Security tab will show the wifi password:
This method works, but involves a lot of clicking through screens. Also, it requires starting at the legacy Control Panel, which is gradually being replaced with the new Settings app. Instead, all of this information and more can be accessed via the command line using the
To get the password for a wifi network, run the command:
You can also use this command to see the list of every saved network that your device has connected to: