Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Connect to Wireless networks via cprompt and or Script

Posted on 2008-10-24
5
Medium Priority
?
1,705 Views
Last Modified: 2013-11-12
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!
0
Comment
Question by:prlit
  • 3
  • 2
5 Comments
 
LVL 41

Expert Comment

by:graye
ID: 22798161
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"
0
 
LVL 1

Accepted Solution

by:
prlit earned 0 total points
ID: 22798555
SP3 does not seem to include the wlan switch/command. Anyway to get that? I know vista has it, but I try my best to stay away from it.
0
 
LVL 41

Expert Comment

by:graye
ID: 22799035
Dang, you're right...  
0
 
LVL 1

Author Comment

by:prlit
ID: 22799355
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!
0
 
LVL 41

Expert Comment

by:graye
ID: 22816574
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.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re involved with your company’s wide area network (WAN), you’ve probably heard about SD-WANs. They’re the “boy wonder” of networking, ostensibly allowing companies to replace expensive MPLS lines with low-cost Internet access. But, are they …
Tech spooks aren't just for those who are tech savvy, it also happens to those of us running a business. Check out the top tech spooks for business owners.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question