Look up the two utilities called REGMON and FILEMON. With these monitoring, manually add the connection. Stop monitoring and look at the log files.
Now write code in the language you write in to copy files and create/change the registry keys and then call Windows to reboot when done.
Works every time here. This is not an offer to write your application but to share how I got it done.
OS: Microsoft Windows XP SP2/SP3
Starting off what I need is strictly for professional use, and is not for any 'Hacking' or illegal activity. I have close to a hundred laptops I just recieved for my company, and I have six access points I have set up. The laptops connect to the domain through the access points... well, I have a lot of work to do. I have looked around the internet and the only way I was able to figure out how to simplify the connections was through windows wireless configuration with a directory on a jump drive with files like setupSNK.exe and WSETTINGS.WFC, however this isn't as easy as I would like it...
I would like a command line script that will add the following to a Windows XP Wireless Preffered Connections:
SSID: Network WEP: 12345
If this cannot be done in command then I have another thing that could solve my problem... For some reason the autorun script only works right with the autoplay feature with removable storage, it wouldn't work if I just simply double click setupSNK.exe. How might I force the autoplay feature on a directory with an autorun.inf file using command line, If I simply use the 'Start' or 'Call' feature in my .bat file it just opens the Autorun.inf file for editing, I would simply like to execute the autorun.
If any of this makes sence please help, Questions like this have been asked before, however never answered... so I am hoping its just my searching abilities...