Solved

Connect to Wireless networks via cprompt and or Script

Posted on 2008-10-24
5
1,676 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

Now Available: Firebox Cloud for AWS and FireboxV

Firebox Cloud brings the protection of WatchGuard’s leading Firebox UTM appliances to public cloud environments. It enables organizations to extend their security perimeter to protect business-critical assets in Amazon Web Services (AWS).

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IR 1023 Scanning 4 51
VLAN Issue 4 71
GPS For Commercial Vehicles 10 23
Websites pages will not open in any browser 7 25
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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…
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.

749 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