Warning: Undefined array key "aiosp_show_noindex" in /home/hfpouvik/miniservernation.com/public_html/wp-content/plugins/fv-all-in-one-seo-pack/fv_simpler_seo.class.php on line 3392

Warning: Undefined array key "aiosp_show_noindex" in /home/hfpouvik/miniservernation.com/public_html/wp-content/plugins/fv-all-in-one-seo-pack/fv_simpler_seo.class.php on line 3392

Warning: Undefined array key "aiosp_show_noindex" in /home/hfpouvik/miniservernation.com/public_html/wp-content/plugins/fv-all-in-one-seo-pack/fv_simpler_seo.class.php on line 3392

Warning: Undefined array key "aiosp_show_noindex" in /home/hfpouvik/miniservernation.com/public_html/wp-content/plugins/fv-all-in-one-seo-pack/fv_simpler_seo.class.php on line 3392

Putty: Import settings from old HDD or crashed system


Warning: Undefined array key "aiosp_show_noindex" in /home/hfpouvik/miniservernation.com/public_html/wp-content/plugins/fv-all-in-one-seo-pack/fv_simpler_seo.class.php on line 3392

I have had a few times my system crashed on me and I had to re-install Windows. One of the software that I use a lot is Putty. However, migration of configuration information is a PITA in Putty because the data is stored in Windows registry. The problem is worst when you are unable to boot up from your old windows to access the registry. There are a few alternative for this such as Putty manager and Putty mods that store the config in a file. However, I still find myself falling back to using original Putty due to me being accustomed to it. So here is a simple tutorial on how to extract your Putty configuration from an old Windows.

Pre-requisites:

  • your registry file must still be accessible (located in user profiles)

Steps on restoring putty configurations:

  1. On your new Windows run putty once. Then create a dummy configuration server. This is make Putty create a new configuration entry in registry.
  2. Close putty.
  3. Use windows run command (Windows Key + r) to run “regedit“.
  4. Once in registry editor, highlight “HKEY_LOCAL_MACHINE
  5. Then click File -> Load Hive…
  6. A dialog box will ask for the registry file to open. Explore to your old user profile folder. For eg, “C:\Windows.old\Users\myusername\NTUSER.DAT
  7. You will be prompted a name for this key name. Just put anything you like. In this example, we use “old-registry“.
  8. You can now expand HKEY_LOCAL_MACHINE and you will see the key file you just opened under the label  you put in step 7.
  9. Expand as such, HKEY_LOCAL_MACHINE\old-registry\Software\SimonTatham
  10. Now highlight SimonTatham on your left hand side of regedit and right-click then choose export.
  11. Export this registry entry to a file name and location of your choice. I put it in desktop and call it “putty-config“. This file will have the extension of .reg. But those who didn’t enable view extensions will not see it. That is fine.
  12. Now you can unload old-registry from your hive. Make sure “old-registry” is highlighted. Select File -> Unload Hive…
  13. Once you have unload the hive, close regedit.
  14. Use notepad to open up the registry file you just saved. For me, it’s “putty-config“.
  15. Use replace “HKEY_LOCAL_MACHINE\old-registry” with “HKEY_CURRENT_USER“. Click Replace All.
  16. Now save the file and close notepad.
  17. Right click on the “putty-config” file and select “Merge“. This will merge the registry into your new registry.
  18. Open up Putty and voila!!! Your old configurations are all back in Putty including all the session keys.

5 Comments

  • Reply Andrew |

    My old user directory does not have an NTUSER.DAT, and the one in Users/Default gives an error loading hive on NTUSER.DAT.LOG. Any other ideas?

    • Reply abubin |

      That file must be somewhere in your user profiles. That file could be in hidden status. Try searching harder.

    • Reply George |

      Uncheck Hide Protected Operating System files in folder options, had the same problem

  • Reply Greg Alexander |

    I got to say I could hug you right now… awesome guide! The only thing that was different for me, when i opened it into notepad, it apparently changes the .reg file to open with notepad from then on, so when I right clicked it, there was no merge option… I had to change it back to open with regeditor and then double clicked it and followed the prompt to merge the file..

    Anyway, Thanks so much for posting this guide, I know it has been awhile but you saved me hours of time!

    Greg

So, what do you think ?