Tuesday, April 1, 2014

WiFi Configuration on Windows

On Windows the WiFi profile is an XML file. 
In short for managing the profiles on Windows, we may need to write a script file or a utility app that can accept the profile and add the profile 

Below given is some additional info. 

The console utility "netsh" is available in Windows 7 and above and lower windows versions say Windows XP the latest service packs are having this version (If the machine is not having the latest service pack) we need to update. 
The netsh utility allows user to export the wireless profile and import a wireless profile from an xml file. 
Netsh is dealing with the wlan profiles not the lan profiles 

Another approach to use the Wireless LAN API and create a utility that can export and important the wifi profile. 

Basic commands for exporting and importing the WiFi profile on windows are the ones below (using netsh)

Using the API and creating a 

netsh wlan show profiles => shows all the profiles
netsh wlan export profile folder="PATH_TO_FOLDER" name=PROFILENAME

netsh wlan add profile filename="PATH_AND_FILENAME.xml"

No comments:

Post a Comment