Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Command Line Wireless Network Help Needed

Dec 29, 2008 8:03AM PST

OS: Microsoft Windows XP SP2/SP3

Problem:
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...

Objective:
I would like a command line script that will add the following to a Windows XP Wireless Preffered Connections:

Example:
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...

Discussion is locked

- Collapse -
How to figure this out.
Dec 29, 2008 10:29AM PST

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.
Bob

- Collapse -
Doesn't Work
Dec 29, 2008 12:06PM PST

I already know the registry key that gets changed on the computer, however when I export the key and install it (even after a reboot) it still doesn't work... But thanks for trying to help.

- Collapse -
Then you need both file and registry monitoring.
Dec 29, 2008 10:46PM PST

I can only offer how I solved such an issue. You are now a reverse engineering programmer and would keep digging till you solved this issue.

You can also do this the hard way and export the entire registry and file lists from the hard disk and write an application to find what's changed from before and after.

Then again you could pay Microsoft for this or talk to and pay them for their knowledge at http://www.netswitcher.com/

The NetSwitcher folk have this nailed. They know the answer.
Bob