If it happens that you forgot your wifi network password and still be able to reconnect automatically from your pc ( windows). You can easily view that password using the steps shown bellow.
On Windows 10,
1. select the Start button
2. Settings
3. Network & Internet
4. Status
5 Network and Sharing Center
6. Connections > Select wifi name
7. Select Wireless Properties.
8. select the Security tab, then select the Show characters check box.