You might at some time find it necessary to restore backed up versions of Registry hives. This might occur, for example, when a new computer is to replace an old one, when a disk controller or hard disk has gone bad, or when an electrical failure erased large parts of a disk. This section describes how to back up and restore Registry hives.
How this restoration is done depends on what hardware is available and what file system is in use. You can, of course, only restore what you have backed up.
Important
Make frequent and consistent backup sets of all important files, including system files.
Your regular backup routine should include using the Configuration Save command in Disk Administrator to maintain an up-to-date Emergency Repair disk for restoring the Windows NT system. For details, see Chapter 18, "Disk Administrator" in the Windows NT System Guide.
You might make a Registry hive backup in one of four ways:
To do this, for each direct subkey of HKEY_LOCAL_MACHINE and HKEY_USERS, you must choose the Save Key command from the Registry menu, specifying filenames that match the key names. For example, save the SYSTEM key to \BACKDIR\SYSTEM. On the FAT file system, the filename should not have an extension.
Don't use Save Key with the Hardware hive, which is volatile. You won't get any data, because Save Key cannot save volatile keys to disk.
If you have a good set of backup files, which you update regularly, you can restore Registry hives that are damaged or missing.
But you cannot use Registry Editor to fully restore hives, because active parts of the Registry require use of the ReplaceKey operation for restoration, which Registry Editor cannot perform.
To restore a damaged system, you must first restore the basic operating system installation. You might do this by using the Emergency Repair disk to restore your system to what it looked like just after installation, or simply run Windows NT Setup again. Such a restoration results in a system that starts the computer (which is good) but that lacks changes made since you first set it up (which isn't good). Most of those changes are recovered by copying files from backups by using the Windows NT Backup program for tape backups or by copying from disk backups.
However, you cannot merely copy the backups of Registry hive files, because those files are protected while Windows NT is running. So, after the system and all of the additional files such as device drivers are restored, you must restore the Registry. You might do this in one of the following ways, depending on which backup mechanism you used: