Scripts Thread, Wireless Settings in Coding and Web Development; Is it possible to create a Wireless profile in windows via the registry or via scripting?
I would like to ...
10th September 2010, 03:28 PM #1
Is it possible to create a Wireless profile in windows via the registry or via scripting?
I would like to create a profile with SSID, Authentication method etc, that can just run on visitors laptops.
11th September 2010, 10:16 PM #2
Hi, check this thread. http://www.edugeek.net/forums/scripts/34952-script-joining-wireless-networks.html
I find zwlancfg to be really helpful.
I have it run called from a login script, this makes networkwide password changes easy to deal with.
Thanks to box_l from:
somabc (12th September 2010)
11th September 2010, 11:54 PM #3
Under Vista, 7 and XP SP3 you can use netsh and an xml config file, just tried it on my laptop and it seems to work alright:
Simple Method to Export Wireless Network Profile – Windows Vista
You could put the appropriate command in a batch file or CMD file on a usb key along with the XML and they would just need to double click it.
or use this:
Last edited by SYNACK; 12th September 2010 at 12:02 AM.
Thanks to SYNACK from:
somabc (12th September 2010)
13th September 2010, 04:24 PM #4
It's working well with the Symantec software! Cheers.
Method 1 - Windows 7 / Vista
You can create and deploy Wireless Profiles with the netsh command. First you need a Laptop that has the profiles already created (manually), then you can gather the profile.
List all the profiles with
netsh wlan show profiles
Then create an XML configuration file
netsh wlan export profile name="profile" folder="c:\profiles"
Note: The folder must already exist.
Now you can add the profile by copying the XML file to another machine via USB / CD and running
netsh wlan add profile filename="profile.xml" user=all
You can use the above command in a .cmd file for ease of use.
Method 2 - Windows XP
You can use Symantec's WLAN.exe command to capture and deploy profiles.
First Enumerate Interfaces
Intel(R) PRO/Wireless 3945ABG Network Connection - Teefer2 Miniport
Command "ei" completed successfully.
Get Profile List
wlan gpl 89762a5d-bc6b-4ac6-8cf3-b0462b2bafef
Get Profile (profile name is case sensitive)
wlan gp 89762a5d-bc6b-4ac6-8cf3-b0462b2bafef Imperial-WPA
Copy WLAN and your XML file to the new laptop and get the GUID
Finally Deploy the Profile
wlan.exe sp <GUID> profile.xml
You can use the following Script to automatically capture the GUID and deploy the profile. Name the .bat file the same as the .xml file. eg. profile.bat
echo Grabbing WLAN Interface...
For /F "skip=2 tokens=1,2" %%A IN ('wlan.exe ei') Do If "%%A"=="GUID:" set Interface=%%B
echo Adding wlan SSID %~n0
wlan.exe sp %Interface% %~n0.xml
set Interface =
echo SSID: %~n0 has been configured!
Last edited by somabc; 14th September 2010 at 12:55 PM.
By cookie_monster in forum Windows
Last Post: 4th June 2010, 10:46 AM
Last Post: 22nd October 2009, 10:07 AM
By FN-GM in forum Windows
Last Post: 10th September 2009, 03:29 AM
By nephilim in forum How do you do....it?
Last Post: 9th July 2009, 04:18 PM
Last Post: 16th May 2008, 05:04 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)