If you, like me, installed new Windows and only after you remember about putty sessions, you can still import them, if you have old Windows hard drive or at least your old "home" directory backed up (C:\Users\<user_name>
).
In this directory there should be NTUSER.DAT
file. It is hidden by default, so you should enable hidden files in your Windows explorer or use another file browser. This file contains the HKEY_CURRENT_USER
branch of your old Windows registry.
To use it, you need to open regedit
on your new Windows, and select HKEY_USERS
key.
Then select File
-> Load Hive...
and find your old "home" directory of your old Windows installation. In this directory there should be NTUSER.DAT
file. It is hidden by default, so, if you didn't enable to show hidden files in your Windows explorer properties, then you can just manually enter file name into File name
input box of "Load Hive" dialog and press Enter. Then in the next dialog window enter some key name to load old registry into it. e.g. tmp
.
Your old registry's HKEY_CURRENT_USER
branch now should be accessible under HKEY_USERS\tmp
branch of your current registry.
Now export HKEY_USERS\tmp\Software\SimonTatham
branch into putty.reg
file, open this file in your favorite text editor and find-and-replace all HKEY_USERS\tmp
string with HKEY_CURRENT_USER
. Now save the .reg
file.
You can import now this file into your current Windows registry by double-clicking it. See m0nhawk's answer how to do this.
In the end, select HKEY_USERS\tmp
branch in the registry editor and then select File
-> Unload Hive...
and confirm this operation.