Tuesday, 7 August 2018

windows 7 - netsh wlan add profile not importing encrypted passphrase


I exported a wireless network connection profile from a Windows 7 machine correctly connected to a WiFi network with a WPA-TKIP passphrase. The exported xml file shows the correct settings and a keyMaterial node which I can only guess is the encrypted passphrase.


When I take the xml to another Windows 7 computer and import it using netsh wlan add profile filename="WiFi.xml", it correctly adds the profile's SSID and encryption type, but a balloon pops up saying that I need to enter the passphrase.


Is there a way to import the passphrase along with all other settings or am I missing something about adding profiles?


Here is the exported xml with personal information removed:




[removed]


[removed]
[removed]

false

ESS
auto
false



WPAPSK
TKIP
false


passPhrase
true
[removed]





Any help or advice is appreciated. Thanks.


Update: It seems if I export the settings using key=clear, the passphrase is stored in the file unprotected and I can import the file on another computer without issue. I've updated my question to reflect my findings.



Answer



Just use the key=clear parameter when exporting the profiles.


netsh wlan export profile key=clear

Now the passphrase/key will be stored in the XML file(s) in the clear. When you import the profile (as above), you will not be prompted for a passphrase.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...