My Windows NT account name was changed, and when starting PuTTY it now appears that my saved session information has been lost.

The FAQ suggests that PuTTY sessions should be stored in HKEY_CURRENT_USER\Software\SimonTatham\PuTTY.

Wikipedia explains that HKCU maps to NTUSER.DAT and USRCLASS.DAT under the current user's Desktop and Settings folder.

I still have these files for my old account name, but I'm guessing there is no easy way to extract data from these files?

link|improve this question

80% accept rate
feedback

2 Answers

up vote 4 down vote accepted

As described by this Microsoft TechNet article you can load a .dat file into an existing registry:

To load a hive into the registry

  1. Open Registry Editor.
  2. In the registry tree (on the left), click either the HKEY_USERS or HKEY_LOCAL_MACHINE keys.
  3. On the File menu, click Load Hive.
  4. In Look in, click the drive, folder, or network computer and folder that contains the hive you want to load.
  5. Click Open.
  6. In Key Name, type the name that you want to assign to the hive, and then click OK.

You can then browse the tree and export the PuTTY configuration from

HKCU or HKLM\Entered Key Name\Software\SimonTatham\PuTTY
link|improve this answer
Excellent thanks. – toolkit Feb 16 '10 at 15:50
1  
And just FYI, you will need to Unload the hive in order to get it out of the registry after loading it. Just click on the loaded hive then select File -> Unload Hive. That one took me a second to figure out as the error message when you try to delete the loaded hive root key is not very useful. – heavyd Feb 16 '10 at 15:52
Aha - and an extra point for the Unload Hive tip :-) – toolkit Feb 16 '10 at 15:57
feedback

Open your registry files with Direct Registry Browser (freeware), browse your old registry and retrieve your needed keys.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.