Solved

CMD Command to add preferred wireless networks

Posted on 2008-06-18
3
974 Views
Last Modified: 2008-12-23
Okay, so I'm trying to make my life a little easier for the future as I continue to receive and setup new laptops for my company.  I'm a big fan of batch files which do 98% of the work for me.  Thus I already have a batch that copies all the necessary install files onto the computer, installs them silently, uninstalls all the BS Dell software that comes standard silently, etc.  My next item I'd like to add to that new pc batch is some way to add preferred wireless networks, including the WEP key so that I don't have to manually go in and add them.  I like to do this so that when the laptop is handed out, I don't get a phone call saying 'how do i connect to the wireless?'.  Instead I like it when i've pre-added these wireless networks and the wireless connects automatically when in range.  So to sum it all up...I'm looking for the command that I would need to use to add preferred wireless networks.  Thanks in advance.
0
Comment
Question by:CMHowes
3 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 21815202
Seems to be possible if you have e profile file describing the WLAN interface, see http://technet2.microsoft.com/windowsserver2008/en/library/f435edbe-1d50-4774-bae2-0dda33eaeb2f1033.mspx?mfr=true ("Netsh Commands for Wireless Local Area Network (WLAN)"). Even though that's W2k8, that could work with XP also:
netsh add profile filename=C:\Users\WirelessUser\Documents\profile1.xml interface="Wireless Network Connection"

Open in new window

0
 
LVL 38

Accepted Solution

by:
Shift-3 earned 500 total points
ID: 21815550
Microsoft neglected to make most aspects of wireless networking scriptable in versions of Windows prior to Vista.  You're probably going to have to look into third-party tools for this on XP.
0
 
LVL 1

Author Comment

by:CMHowes
ID: 21846695
Is there a way to export a wireless profile from XP into an XML file like that so that I would be able to try to import it into another machine using the netsh command?  
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

In this article I will describe how to setup a Cisco WLC 5508 to work with Apple's Bonjour protocol across VLANs.  I will also discuss using screen mirroring and Airplay on an AppleTV v3.  This article covers the wireless network only and requires m…
This article is a step by step guide on how to create a basic PTP link using Ubiquiti airOS devices. This guide can be used on the following Ubiquiti AirMAX devices. Nanostation, Bullets, AirBridge, Nanobeam, NanoBridge to name a few. Please review …
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 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