Right-click on Command Prompt and select Run As Administrator.
Type the following command line and hit Enter:
NETSH WLAN SHOW PROFILE
Type the following command and replace “WIFI” with the network name.
NETSH WLAN SHOW PROFILE WIFI KEY=CLEAR
Reference: