Solved

netsh wlan

Posted on 2014-02-06
4
378 Views
Last Modified: 2014-02-13
Hi
I was able to export ALL my wireless profiles from my old Windows 7 computer (into a folder with numerous .xml files).  I need to import them into my new computer and do not want to do it one at a time.

Is there a command to do this?
0
Comment
Question by:PAMurillo
  • 2
  • 2
4 Comments
 
LVL 25

Expert Comment

by:Zephyr ICT
ID: 39841160
You could put the commands to import into a batch file?
Example:

@echo off
echo This will import your saved wifi profiles 

netsh wlan add profile filename="your-filename1.xml"
netsh wlan add profile filename="your-filename2.xml"
netsh wlan add profile filename="your-filename3.xml"

echo DONE! Press a key to exit.
pause

Open in new window


You can omit the pause if needed...
0
 

Author Comment

by:PAMurillo
ID: 39843550
Sorry, I thought my previous comment was posted.
I have about 700 wireless profiles so entering each as a line in a batch file would be similar to importing them one at a time.
Isn't there a way to import all of them at one time?

I know I did this when I set up my previous computer but the command is eluding me.
0
 
LVL 25

Accepted Solution

by:
Zephyr ICT earned 500 total points
ID: 39844213
I'm not sure about a command line... Though you could use a simple Powershell function like the one shown under, it will just import all WLAN profiles from a folder.

$path="C:\WirelessProfiles"
$pathready=$null

function import_wifi_profiles{
 #check default path.
 do {
 $pathready = Test-Path $path
 if ($pathready -eq $false){
 $path=Read-Host "Default import path not found"
 }
 } until ($pathready -eq $true)

$path | Get-ChildItem | ForEach-Object{
$filepath=$_.FullName
netsh wlan add profile filename=$filepath user=all
}
}

Open in new window

0
 

Author Closing Comment

by:PAMurillo
ID: 39857210
Thank you for your help.  I know there is another way to import the profiles using a single line because I did it before.  Anyway the PowerShell function worked. thank you
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
laptop problem 21 93
Limited admins with shutdown and restart rights 3 56
Malware Exploit 5 72
Cisco 1811W VLAN configuration problem 3 0
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
DECT technology has become a popular standard for wireless voice communication. DECT devices are not likely to be affected by other electronic devices and signals because they operate in a separate frequency-band.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

929 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

10 Experts available now in Live!

Get 1:1 Help Now