Backup and restore your wireless networks settings by using WirelessMigrator

5 ביוני 2008

9 תגובות

[This blog was migrated. You will not be able to comment here.
The new URL of this post is]

I had to reinstall my working notebook, so I begun to backup all it’s settings. I almost finished, when recognize, that Windows Vista has no tool for backup and restore wireless networks settings (tnx to Daniel Petri). You can manually add or remove it. You can even change the priorities, but you cannot backup or restore it.


What to do? How to save all my passwords for networks and all certificates. Digging a bit deeper I found a way to do it, by using command line prompt.

“netsh wlan show profiles” will show you all wireless network profiles in your system
”netsh wlan export profile name=”name” folder=”folder”” will export each profile to xml file (you can also run netsh wlan export profile” to export them all as bunch
”netsh wlan add profile filename=”name”” will restore each one of profiles and returns them into the system

For some reason, I cannot see my mother doing it… More then this, I cannot see myself remember all those command and doing it manually for each one of saved profiles (and I have a lot of them)

What’s the solution? Build handy tool! I’m developer after all and know to solve my and other’s problems by code.

Let me introduce you WirelessMigrator

What is WirelessMigrator? Wireless Migrator is a handy small program, that knows to backup and restore all wireless networks setting from your computer by one click. For some reason, there is no way to do it by using regular Windows Vista tools.
This feature is extremely useful, when you have to reinstall your computer or use the same settings of wireless networks for different machines. In order to use the program, all you have to do is to run it once. The program generate small file, can be handled and transferred in diskette. Later if you'll run this generated file, all settings of wireless networks will be restored on target machine.

Run “BackupWireless.exe” to backup


And “RestoreWireless.wnb” to restore


That’s all, folks. Now you can save and restore your settings for wireless networks for migration easily.

Download Wireless Migrator >>

At first run, the program will request elevation on Windows Vista, to assign backup archive extension with the program and be able to restore with one click. To completely remove all registry nodes, wrote by program, from the registry, use BackupWireless.exe /remove option. To reinstall the program, just run it for the first time. That’s what I’m calling SmartClient. This is not “real” installation it also not very “web” application.

WirelessMigrator has very advanced and smart user interface

Now a little bit about the user interface of this program. I though a lot about it and decided not to make any user interface for it. Theoretically, it was possible to make kind of “Funky-Vista-Glow” list of all available networks and three buttons “Backup”, “Restore” and “Cancel”. I even done it with half an hour in WPF. But wait a moment. Is it really necessary to have user interface for such program? It wont be more functional by having it. All it have to do, done automatically and you have nothing to do if something going wrong.

So, I build text-only progress bar and key switches to show progress (with will not take more, then 3 seconds), but that’s all. ‘m really interested to know what do you think about it?

Download Wireless Migrator >>

Your feedback is really important for me. Please take a moment and tell me what’s good and what’s bad with this program in order me to be able to continue it’s development. Full source of the program is available under MS-PL from CodePlex.

My other open source projects, you may be interested with

Have a nice day and be good people.

הוסף תגובה
facebook linkedin twitter email

כתיבת תגובה

האימייל לא יוצג באתר. שדות החובה מסומנים *

9 תגובות

  1. mikenchi13 ביוני 2008 ב 18:52

    I'm not sure but it appears that this only works on Vista, is that the case? I run it on my XP laptop and it crashes. Also the commands you have listed do not work on same XP laptop, I get an error:

    C:\WINDOWS>netsh wlan show profiles
    The following command was not found: wlan show profiles.

    Do you know of a way to do this on XP?

  2. Tamir Khason13 ביוני 2008 ב 19:05

    mikenchi, yes this version works only for Vista. I'm working for next version, that will work on XP too. Keep tuned.

  3. benster25 ביולי 2008 ב 3:12

    Like the idea, but crashes immediatly after running. Really want it to work! I ran it "As Administrator" should i be running it from the command prompt?

  4. Tamir Khason25 ביולי 2008 ב 9:50

    Benster, you, probably running it on Windows XP. This version is for Windows Vista only. Please wait for me to release XP version too (see on CodePlex)

  5. Benster25 ביולי 2008 ב 12:40

    Hi Tamir
    I'm running Vista, when I run it from the command prompt I get the folowing error. Sorry to mess you about, I know it is freeware 🙂
    As I said before, Great Idea!

    Please wait while saving wireless networks, found on your computer…
    [* ]
    Unhandled Exception: System.IO.FileNotFoundException: Could not find file 'C:\Us
    ers\Ben\Wireless Network Connection-Wireless 1.xml'.
    File name: 'C:\Users\Ben\Wireless Network Connection-Virus Deli.xml'
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, I
    nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions o
    ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
    FileShare share)
    at System.IO.File.ReadAllBytes(String path)
    at WirelessMigrator.Program.SaveOne(String name)
    at WirelessMigrator.Program.SaveThem(List`1 lans)
    at WirelessMigrator.Program.Main(String[] args)

  6. Jim M.26 באוגוסט 2008 ב 22:03

    You do not migrate the keys.
    You can backup and restore to the same machine, but cannot save the profile information including keys and passwords and then import all the information to another machine.

  7. Hans Engelmoer11 בנובמבר 2008 ב 4:34

    Dear sir,

    I try to run Wireless Backup. Just before I get the networkdata, the program stops. The last words are:….found on your computer…
    [ ] and then I get the message BackupWireless in not working anymore.
    What am I doiing wrong?
    Thanks for your help!
    PS I'm using Windows Vista