Solved

Connect to Wireless networks via cprompt and or Script

Posted on 2008-10-24
5
1,633 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
Comment Utility
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
Comment Utility
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
Comment Utility
Dang, you're right...  
0
 
LVL 1

Author Comment

by:prlit
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now