There are multiple ways to view the Wi-Fi password, but using Settings is the easiest. The Netsh utility, accessible via Command Prompt, shows passwords for all the networks you've ever connected to.
When using a PC with Windows 11, you may encounter a problem where the Wi-Fi icon (fan-shaped mark) suddenly disappears from ...