none
Export ALL wireless network profiles for new installation windows 7

    Question

  • Hello,

    i want to backup my wireless network-profiles(more than 100) to restore them om my clean installation.

    I know the "net sh wlan" command to backup 1 profile. What is the command to backup ALL wireless-profiles?

    Thanks

    Thursday, March 15, 2012 1:02 PM

Answers

All replies

  • Hi,

    The following commands will export all profiles:

    netsh wlan export profile
    netsh wlan export profile key=clear

    key=clear allow you to export them with the password visible so when you import them the computer doesn't ask for the password


    Revue du Geek | Déployer Windows 7 avec MDT 2010

    Thursday, March 15, 2012 2:41 PM
  • Where does it export them to?? How do I save to a usb and reimport on another image?
    Monday, December 02, 2013 5:08 PM
  • 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.
    Wednesday, February 12, 2014 12:38 AM
  • Thank you.
    Friday, April 18, 2014 3:23 PM
  • 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

    • Edited by WH_HSN Saturday, July 19, 2014 10:42 AM
    • Proposed as answer by pas_sr Saturday, July 26, 2014 2:56 PM
    Saturday, July 19, 2014 10:22 AM
  • 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!

    Saturday, July 26, 2014 2:56 PM
  • Dude you rock!!!   Been looking for something like this for an hour!  Thank you!!!
    Monday, September 22, 2014 2:19 AM
  • Or cd to the Folder with the Configuration Files, and then execute the batch by it's absolute path, e.g. C:\Users\Test\Documents\AddWiFiConfigs.bat
    Friday, September 18, 2015 11:55 AM
  • Here!!! Here!!! Absolute Genius

    Lorenzo Smith

    Friday, September 18, 2015 9:35 PM