somabc Posted September 10, 2010 Posted September 10, 2010 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.
box_l Posted September 11, 2010 Posted September 11, 2010 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. regards BoX 1
SYNACK Posted September 11, 2010 Posted September 11, 2010 (edited) 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: http://www.symantec.com/connect/articles/how-capture-and-deploy-wlan-profiles Edited September 11, 2010 by SYNACK 1
somabc Posted September 13, 2010 Author Posted September 13, 2010 (edited) 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 wlan ei Interface 0: GUID: 89762a5d-bc6b-4ac6-8cf3-b0462b2bafef Intel® PRO/Wireless 3945ABG Network Connection - Teefer2 Miniport State: "disconnected" 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 wlan ei Finally Deploy the Profile wlan.exe sp profile.xml Automating Deployment 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 off 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. echo SSID: %~n0 has been configured! pause Edited September 14, 2010 by somabc
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now