Is the wifi password stored somewhere in windows-7?

14

10

One of my friend connected me to the wifi in our area . Now my computer automatically connects to that wifi. I don't need to enter the password. I wanted to browse internet using my android phone. Since i don't know the password i can't connect to the wifi network. Is there any file/folder where the password for the wifi is saved on windows-7 pc ?

steve

Posted 2012-05-15T04:51:33.993

Reputation: 377

Question was closed 2014-10-19T20:24:48.170

not really, he wants to recover a unknown password from a system that has it. – Journeyman Geek – 2012-05-15T05:10:04.327

@JourneymanGeek The password can be found using the same process. – iglvzx – 2012-05-15T05:10:49.800

Answers

21

In the computer that can connect to the network, type Manage wireless networks into the start menu search. Right click on the properties for the network you want and click Properties. In the security tab you should see an option to Show characters.

This will reveal your WiFi password that computer remembers.

This is the same process as described in the answer for Change the password Windows 7 has stored for a wireless network. Thanks @iglvzx for pointing this out.

jay

Posted 2012-05-15T04:51:33.993

Reputation: 6 287

2This only works if you are currently connected to the network. If you need to access a password for a non-connected wifi, see other solutions like the one suggested by elvin aslanov – Bruce Barnett – 2015-01-23T16:04:02.420

15

You can retrieve a hex encoded version (which works if you input it into the usual places) with Nirsoft's Wireless Key View. The documentation for this states that the keys are stored either in the registry or the filesystem as follows

Windows XP: The wireless keys are stored in the Registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces[Interface Guid].

Windows Vista: The wireless keys are stored in the file system, under c:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces[Interface Guid]. The encrypted keys are stored in .xml file

The location for 7 and vista should be the same.

Journeyman Geek

Posted 2012-05-15T04:51:33.993

Reputation: 119 122

1How we decrypt that password?? – Usman – 2015-01-16T12:02:52.833

You don't need to. It works just like the 'decrypted' password – Journeyman Geek – 2015-01-16T12:24:41.213

2Here's the actual way to get it. On an elevated (run as administrator) command prompt type this: netsh wlan show profile name="<NETWORK SSID>" key=clear. That gives you the decrypted password. – Gabriel Magana – 2016-02-01T17:58:59.720

i don't know if this is impossible but @GabrielMagana , there's one profile that i can't see the pwd... i tried that on cmd and says that the profile isn't found on the system but is listed when i enter show profiles – newbieguy – 2017-10-10T13:22:24.750

+1 Nice! Ought to script something to extract these whenever I reformat. – jay – 2012-05-15T05:13:35.977

that is nice !. – steve – 2012-05-15T05:15:41.140

under which tag is the password stored in this xml file ? – steve – 2012-05-15T05:19:54.537

1Well, its supposedly encrypted, but the one you have highlighted should work. Personally, since that tool will get the password, comparing it with the xml file should work out where exactly it is – Journeyman Geek – 2012-05-15T05:45:56.890

13

you can also export and store it in your own interface configuration file

netsh wlan export profile interface=wi-fi key=clear folder=c:\

it will generate an .xml file (named in a interface-essid format) in the folder specified (c:\) with the plaintext password (clear) inside of its keymaterial tag

then you can also easily import (netsh wlan add profile interface=filename=c:\interface-essid.xml) the configuration file where the essid and key are stored

it works on windows 8.1 as the interface is called wi-fi there (ncpa.cpl)

in windows 7 its name is wireless network interface

Alternatively you can export the profile of all profiles without knowing their name by using the wildcard * as interface name:

netsh wlan export profile interface=* key=clear folder=c:\

A different .xml file will be generated for each interface

user373230

Posted 2012-05-15T04:51:33.993

Reputation:

1This worked perfectly, as long as you can open a shell as administrator. It also gets all of the passwords for all of the remembered wifi accounts, and not just the one that you are currently connected to. – Bruce Barnett – 2015-01-23T16:02:11.827

2This should be the accepted answer right here, nice job. Shows the clear-text password for every wi-fi connection on the PC. – Speednet – 2015-09-23T13:25:39.260