Question : Where are wireless network connections stored - and can I addone by script

I'm trying to add a new Wireless Network Connection via a script - currently it doesn't matter about security etc.

The reason for this is I'm trying to get users to connect to a device I've built and I want to script it for them - because I'm nice. There is no standard OS setup so I guess XP and Vista.

Any thoughts?
I've kind of looked at regedit and netsh but can't find anything to add a new wireless connection.

For example I want to add a new connection with the following details so it apears in the users "Choose a wireless connection" list and when they click on the listed link, it will connect them:
SSID=Tomas
PSK=RichardHarold

Answer : Where are wireless network connections stored - and can I addone by script

XP SP3 and later - http://msdn.microsoft.com/en-us/library/ms706275(VS.85).aspx (Profile XML Schema)
XP SP2 - Structs - http://msdn.microsoft.com/en-us/library/ms706600(VS.85).aspx

For scripting, the net shell will probably work for you...
netsh commands for WLAN - http://technet.microsoft.com/en-us/library/cc755301.aspx
you should be able to do a 'dump' from a configured machine then use that file to configure others.
Random Solutions  
 
programming4us programming4us