Is it possible to transfer wifi settings from an android device to windows?

user2813274

I have the information from a few wifi networks saved on an android device, is there any way to move this data over to windows 8.1? I have exported the .txt file from android that contains the configuration (plain-text passwords and all), but I am not sure where to put it in windows, and what format it would need to be in.

edit: sample of the wifi configuration file (located at /data/misc/wifi/wpa_supplicant.conf) from an android device:

network={
    ssid="Network1"
    psk="xxx"
    key_mgmt=WPA-PSK
    priority=30
}

network={
    ssid="Network2"
    scan_ssid=1
    key_mgmt=WPA-EAP IEEE8021X
    eap=PEAP
    identity="uname"
    password="pword"
    phase2="auth=MSCHAPV2"
    priority=32
    proactive_key_caching=1
}

Ideally some way to copy over many of these networks would be preferred, however a manual one-by-one solution would also be acceptable.

update: it seems like the wifi properties in windows are saved as an xml file under: C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces{InterfaceID}{something}.xml

Any info as to a schema or mapping for this xml file would be appreciated.

harrymc

It is possible to import a wireless network as an xml file, but this has to pass through the netsh command.

Here is for example the file defining a wireless connection using WPA2-PSK AES and specifying the pass-phrase as unencrypted plain text:

<?xml version="1.0"?>
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
    <name>SSID-NAME</name>
    <SSIDConfig>
        <SSID>
            <hex>SSID-NAME-in-hex</hex>
            <name>SSID-NAME</name>
        </SSID>
    </SSIDConfig>
    <connectionType>ESS</connectionType>
    <connectionMode>auto</connectionMode>
    <MSM>
        <security>
            <authEncryption>
                <authentication>WPA2PSK</authentication>
                <encryption>AES</encryption>
                <useOneX>false</useOneX>
            </authEncryption>
            <sharedKey>
                <keyType>passPhrase</keyType>
                <protected>false</protected>
                <keyMaterial>UNENCRYPTED-PASS-PHRASE</keyMaterial>
            </sharedKey>
        </security>
    </MSM>
</WLANProfile>

The description of all the above xml elements can be found in the Microsoft documentation at:
WLAN_profile Schema Elements.

This xml file can be imported into Windows via the command :

netsh wlan add profile filename="PATH_AND_FILENAME.xml"

Please note that while the pass-phrase can be unencrypted in the imported file, Windows will encrypt it when it places the profile contents in the configuration file, which as you already found is stored in :

C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces\{GUID}\{GUID}.xml

Here each wireless device is represented by a randomly assigned GUID interface name of the form {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.

Further reading :

Importing and Exporting Windows Network Settings
Exposing the WiFi Password Secrets
Two ways to push WLAN profiles to your Windows devices

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Can you pass WiFi settings from an iOS device to an ExternalAccessory object?

How to transfer all emails from an Android device?

Is it possible to transfer Wifi adapter drivers from one OS to another?

Is it possible to install Windows 10 on an Android device?

Windows 10 update removed the Wifi adapter from device manager

Transfer files from iOS device to Windows PC via USB

Is it possible to remote android phone from a Bluetooth device?

Android Things How to call WiFi settings from app

How to transfer files from/to an Android device with ADB via GUI?

Access Android Device Filter from Build Settings via code

Transfer IntelliJ settings to to Android Studio

Is possible to call the GPS settings from a Windows Phone 8.1 App in WinJS?

Is possible to boot on PXE over a WiFi device?

Is it possible to get the devtype of a USB wifi device?

Is it possible to boot into another device from Windows? (skipping the BIOS boot menu)

Cucumber: Is it possible to read .feature files from a folder on the android device?

Is it possible to send HDMI CEC commands from an Android Device.

Is it possible to register android device from third party java server?

How do I transfer brave bookmarks, settings and passwords from one windows computer to another

Android app fails to install from transfer to new device after Android Studio update

Choosing WiFi network from app on Android Things device (Raspberry Pi 3)

How to print PDF, image and HTML documents from android device to a printer on wifi?

Can I receive more bytes in one transfer from this c# to android device?

How to open Wifi settings inside from a BroadcastReceiver

Connect Android device to Macbook hotspot (via Wifi)

Android Wifi ADB can not connect device

Android - Connecting to device with adb over wifi

Promlem with pairing device using wifi in android studio

Using scp to transfer files to an android device