Link to home
Start Free TrialLog in
Avatar of prlit
prlit

asked on

Connect to Wireless networks via cprompt and or Script

Hello everyone, might have an easy question for you. Is there a command I can use either at command prompt or in a script to automatically connect to a Wireless network? This would be for an XP machine. I was thinking the netsh command, but was getting lost quickly.

Some info about the network im trying to connect with: SSID is not broadcasted, WPA2, dhcp.

Thanks for any help!
Avatar of graye
graye
Flag of United States of America image

I haven't tried this, but this article says: http://www.chicagotech.net/netsh.htm
To configure an defined wireless network, use this command: netsh wlan connect ssid=mySSID name=WLAN-Profil1 
To show your current wireless settings, use this command: netsh wlan show settings
To add an already exported wireless network profile, use this command: netsh wlan add profile filename="Wireless Network Connection-BOW.xml"
ASKER CERTIFIED SOLUTION
Avatar of prlit
prlit

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Dang, you're right...  
Avatar of prlit
prlit

ASKER

Lol, ya :( I'll try to give the whole scope of whats going on. There is a private and a public network at a hospital. We thought about using Multi-Network manager to switch between both networks (i think theyre both statics ips). The Public network is of course broadcasted, while the private is not. When we set the profile up in m-n-m, it says it's connected to the Private Network, while in reality it just connects to the public. If we remove the public profile from the program, it wont connect to anything. I double checked to make sure that Service pack 3 was allowing connections to non broadcasted networks, which is enabled.

I guess if anyone happens to know of another program that will work well, that'd be awesome. The end user I believe has little knowledge about computers, so the end result has to be something as easy as right clicking an icon, and selecting a profile to connect to.

Thanks!
You *might* be able to achieve what you want with a vendor-supplied utilitiy.  For example, if you had a Intel wireless device, you can install the Intel wireless utility that completely takes over the built-in version in WinXP.  It might have multiple profiles and might support some sort of scripting.
... hey, what the heck.