Windows Legacy OS forum

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
You are posting a reply to: Command Line Wireless Network Help Needed
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: 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.

In reply to: Command Line Wireless Network Help Needed

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

In reply to: How to figure this out.

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.

In reply to: Doesn't Work

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.

Popular Forums

Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Sublime suburban chariot

High on style and technology, the 2019 Volvo XC90 is an incredibly satisfying everyday crossover.