If you have forgotten your Wi-fi password or have gained access to a Windows machine and want to extract known Wi-Fi keys, here is how…
You will need administrator rights to the machine before actioning.
Run CMD as an administrator and run:
netsh wlan show profile
You will then see a bunch of user profiles:
If you add the profile name and ‘key=clear’ to the same command, you will be able to identify the key:
netsh wlan show profile [Profile name] key=clear