Sometimes you might need to disconnect from a Wi-Fi network, remove the network settings from the computer using the Forget Network option. It is recommended to write down the current password for that specific Wi-Fi connection when the computer is already connected to it. The following steps will guide you to retrieve the password for connected networks.
1. To get to the properties window for the Wi-Fi network, right-click the Wi-Fi icon in the system tray beside the clock and select Open Network and Sharing Center (see screenshot below).
2. In the Control Panel desktop app, click the network you’re connected to. It should appear as a link next to the Connections field (see screenshot below).
3. The Wi-Fi Status window for that network will open. Under the Connection section, click the Wireless Properties button to get to the wireless network properties. Go to the Security tab and click on Show characters to view the password (see screenshot below).
Bonus: To force Windows 10 to forget a Wi-Fi network, in the Wi-Fi tab in the Network & Internet group of settings, scroll down and click Manage Wi-Fi settings. Scroll down to where networks are listed under Manage known networks and click the network you want to forget. You will see a share button and a Forget button. The forget button will purge the network from your list of known networks and Windows will no longer connect to it automatically.