Tricks of the Microsoft Office Gurus
The sheer wealth of data stored in one place makes the Registry convenient, but it also makes it very precious. If your Registry went missing somehow, or if it got corrupted, Windows XP simply would not work. With that scary thought in mind, let's take a moment to run through several protective measures. The techniques in this section should ensure that Windows XP never goes down for the count because you made a mistake while editing the Registry. Backing Up the Registry
Windows XP maintains what is known as the system state: the crucial system files that Windows XP requires to operate properly. Included in the system state are the files used during system startup, the Windows XP protected system files, and, naturally, the Registry files. The Backup utility has a feature that enables you to easily back up the current system state, so it's probably the most straightforward way to create a backup copy of the Registry should anything go wrong. Here are the steps to follow to back up the system state:
Saving the Current Registry State with System Restore
Another easy way to save the current Registry configuration is to use Windows XP's System Restore utility. This program takes a snapshot of your system's current state, including the Registry. Then, if anything should go wrong with your system, the program enables you to restore a previous configuration. It's a good idea to set a system restore point before doing any work on the Registry:
Protecting Keys by Exporting Them to Disk
If you're just making a small change to the Registry, backing up all of its files may seem like overkill. Another approach is to back up only the part of the Registry that you're working on. For example, if you're about to make changes within the HKEY_CURRENT_USER key, you could back up just that key, or even a subkey within HKCU. You do that by exporting the key's data to a hive file, which is a binary file (meaning you can't edit it). That way, if the change causes a problem, you can import the hive file back into the Registry to restore things the way they were. Exporting a Key to a Hive File
Here are the steps to follow to export a key to a hive file:
Importing a Hive File
If you need to restore the key that you backed up to a hive file, follow these steps:
|