General discussion

Command Line Wireless Network Help Needed

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

Discussion is locked

Reply to: Command Line Wireless Network Help Needed
PLEASE NOTE: Do not post advertisements, offensive materials, profanity, or personal attacks. Please remember to be considerate of other members. If you are new to the CNET Forums, please read our CNET Forums FAQ. All submitted content is subject to our Terms of Use.
Reporting: Command Line Wireless Network Help Needed
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
- Collapse -
How to figure this out.

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.

- Collapse -
Doesn't Work

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.

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

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

CNET Forums

Forum Info