Solved

Connect to Wireless networks via cprompt and or Script

Posted on 2008-10-24
5
1,692 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
Make the most of your online learning experience.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Suggested Courses
Course of the Month10 days, 4 hours left to enroll

623 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