2

The story in a nutshell:

  • I use PuTTY a lot
  • I back up my file system regularly
  • I got tired of Win 10 freezing on me every couple of minutes, so I decided to reset my PC to factory settings (Win 8.1)
  • I forgot to export my saved PuTTY sessions from the registry
  • I found this post, which kindly suggests to load an old, backed-up NTUSER.DAT file into the HKEY_LOCAL_MACHINE within the Registry Editor
  • The DAT file was last updated in the Win 10 installation I had before resetting to factory settings with Win 8.1
  • I get the following message from the regedit:

Cannot Load PATH\TO\MY\OLD\NTUSER.DAT: Error While loading hive.

I can only make an educated guess that it fails to load the hive from this file because the file was last written from Win 10.

I should note that an older NTUSER.DAT file, which roots from the older Win 8.1 installation (before the upgrade to Win 10), does go through hive loading successfully, but it doesn't contain what I need.

Am I doomed to pay for forgetting to export the settings from the Win 10 registry?

EDIT:

This doesn't seem to be a permission issue

2 Answers2

2

This happened to me even between two Windows 10 installs. I used NirSoft's RegFileExport to just dump the whole hive like so:

RegFileExport "path\to\exported\NTUSER.DAT" old-user.reg.txt

Definitely don't save it with a .reg extension because you don't want any chance of accidentally importing everything in it. Edit the file to keep only the header, the keys & values you need, and the blank lines between & after. Double-check it before saving it as a .reg file and importing it.

Walf
  • 491
2

I would expect that upgrading to Windows 10 made numerous modifications to the registry. Windows 10 might also use a different on-disk file format that Windows 8.1 simply doesn't understand. (Microsoft regularly make either superficial or actual changes to internal file formats between versions. Compare SQL Server, where you can't even take a backup from a more recent version and restore it onto an older version of the same product. Upgrading is a one-way path.)

Blindly overwriting HKLM in particular with a copy from a newer version of Windows is bound to cause issues. Remember that many of the values stored in the registry are not bound by any contract to have particular meanings, and the meaning of different values can change even with a simple update, let alone a whole operating system upgrade to a new release.

Just recreate your connections from within PuTTY instead. It will almost certainly be easier, less error-prone, and less risky than trying to overwrite the registry. Even if you do manage to import the old registry file, there is no telling what odd problems might crop up in the future due to unexpected or unsupported registry values.

user
  • 30,336