Answered by:
Export ALL wireless network profiles for new installation windows 7
Question
Answers
-
Hi,
The following commands will export all profiles:
netsh wlan export profile
netsh wlan export profile key=clearkey=clear allow you to export them with the password visible so when you import them the computer doesn't ask for the password
- Proposed as answer by Niki HanModerator Monday, March 19, 2012 3:19 AM
- Marked as answer by Niki HanModerator Thursday, March 22, 2012 2:37 AM
All replies
-
Hi,
The following commands will export all profiles:
netsh wlan export profile
netsh wlan export profile key=clearkey=clear allow you to export them with the password visible so when you import them the computer doesn't ask for the password
- Proposed as answer by Niki HanModerator Monday, March 19, 2012 3:19 AM
- Marked as answer by Niki HanModerator Thursday, March 22, 2012 2:37 AM
-
-
It exports the files to whatever directory the cmd prompt is in. They are all XML files. The easiest way I've found is to create a new folder and open the command prompt from there. i.e. E:\WLANs. Then run "netsh wlan export profile key=clear". Once you have all the XML files you can pretty easily create a batch file that runs "netsh wlan add profile FILENAME1.xml" "netsh wlan add profile FILENAME2.xml" etc. Running the batch file would import them all into the new system. There might be a cleaner way to do it but this worked for me.
-
-
Thanks for your tip.
To loop through all profiles just use the forfile command:
FORFILES /M *.xml /C "cmd /c netsh wlan add profile @path
or make a batch to give a Y/N option :)
@echo off
ECHO We are going to import all the profiles in this folder!
SET /P ANSWER=Do you want to continue (Y/N)?
if /i {%ANSWER%}=={y} (goto :yes)
if /i {%ANSWER%}=={yes} (goto :yes)
goto :no
:yes
FORFILES /M *.xml /C "cmd /c netsh wlan add profile @path
Pause
exit /b 0
:no
echo Bye!
Pause
exit /b 1 -
You are BRILLIANT!!!
I just bought a new Asus Transformer T300 to replace my ancient and dying Sony Vaio that I use in my IT support business. I have over 160 wireless networks saved from my client offices and had figured out how to export all of them. But having to manually go thru the netsh add command for each one was going to be a real pain. Your batch coding was a life saver. Thank you so much.
One detail for other users, save the batch file in the same folder as the exported profile XML files. Then at the command prompt, CD to that folder and run the batch. Works like a charm!
Thanks!
-
-
-