| Learn how
to back up your Windows 95/98/NT/2000/XP Registry
As you may know, the Registry is the heart and
soul of the Windows 9x/NT/2000 operating system. If anything bad were to happen to the
Registry, the operating system would be reduced to a pile of bits and bytes that won't
boot or do anything else for that matter. I suppose that it could spit out a few error
messages, but not much else. Considering this simple fact, it's imperative that you back
up the Registry on a regular basis.
There are numerous ways that you can back up
the Registry: You can simply back up the files that make up the Registry; you can use a
built in tool; and, of course, you can use your third-party backup program to back up the
Registry.
Warning
Using the Windows Registry Editor incorrectly can cause serious problems that could require you to reinstall your operating system or cause data loss. I will not support problems that arise from your editing the registry. Use the Registry Editor and the following directions at your own risk.
Also, let me say that the methods demonstrated here are no substitutes for a full system backup. I recommend always performing a full system backup before making registry changes. This method is to be used only in situations in which a full system backup is impossible or impractical.
Backing up specific registry keys
Not all registry keys are created equally. Some keys have the potential to make your Windows installation unbootable, while others are relatively harmless.
Windows 95 Registry
Windows 95 comes with a tool called the Configuration Backup Utility that is designed to
back up and restore the Registry. This utility is not installed during the Windows 95
installation procedure and must be manually installed.
Unfortunately, the Configuration Backup Utility never really caught on due to various
problems with its restore operation. (For more info on the Configuration Backup Utility's
problems, see these Microsoft Knowledge Base articles Q135120, Q135121, and Q142572.)
However, not everyone who uses the Configuration Backup Utility has had problems with it
and in fact many die-hard Windows 95 users still swear by it. (If you want to experiment
with the Configuration Backup Utility, you can find it on the Windows 95 CD in the
\Other\Misc\Cfgback folder.) As an alternative, I recommend that you manually back up the
Windows 95 Registry. To do so, boot to a DOS prompt and copy the Registry files System.dat
and User.dat, which you'll find in the C:\Windows folder, to a floppy disk, Zip disk, or
to another folder on your hard drive. If you need to restore the Registry, just boot to a
DOS prompt and copy the two files back to the C:\Windows folder.
==========================
Win98
If the Registry becomes really mangled and you can't even start Windows 98, you'll need to
manually restore from the backup using the DOS version of the Registry Checker. To use the
DOS version, boot your system to DOS prompt and then use the command Scanreg/restore. When
the DOS version launches, you'll see a list box that contains each backup, the date each
was created, as well as information that tells you whether the backup has been used to
successfully start the operating system. All you need to do is select a backup and press
[Enter].
==========================
Windows NT Registry
To back up the Windows NT 4.0 Registry you can use the Windows NT Backup utility. You'll
find the Backup utility on the Administrative Tools menu. When you launch the Backup
utility, you will need to select at least one file in the Drives window. Then, select
Backup from the Operations menu and make sure that you select the Backup Local Registry
check box.
To restore the Registry from the Backup utility, select the tape you want to restore from
in the Tapes window and again select at least one file. Then, choose Restore from the
Operations menu and select the Restore Local Registry check box.
Wizard Tip: If you have the Windows NT Server 4.0 Resource Kit, you can also use a set of
command line tools called Regback.exe and Regrest.exe. With these programs, you can easily
back up and restore all or part of the Registry to tape, floppy disk, or just another
folder on your hard drive.
|
More
Details
The basics of backing up the Windows registry
It's always a good idea to make a full system backup before tampering with the registry, but sometimes doing so is impossible or impractical. After all, do you really want to spend the time or the resources to back up a test workstation that has 15 GB of junk on the hard disk? But by following these steps, you can back up the Windows registry without having to back up the entire hard drive.
==========================
When working with one of the more harmless registry keys, I’ll often back up just that key. Doing this saves me from having to write down the original value and also reduces the chances that I’ll make a mistake.
To back up an individual registry key or a specific registry section, open the Registry Editor and navigate to the location of the registry that you intend to modify. Select the key that contains the value or values you intend to modify. Finally, select the Export Registry File command from the Registry Editor’s Registry menu. The name of the command and its location differs among the versions of Windows. For example, in Windows 2000, the command is Export Registry File and the command exists on the Registry menu. However, in Windows XP, the command has been abbreviated to Export and is on the Registry Editor’s File menu. So you may have to do a bit of hunting for the command depending on what version of Windows you’re using.
You can quickly back up the entire Windows registry, a single key, or a series of keys using the Registry Editor's export function. Just remember to give your backup file a descriptive name so you can identify it later.
Once you have selected the Export command, the Export Registry File dialog box will appear. Enter a filename that reflects the nature of the key you’re backing up and select the correct path. Check the Export Range options, located at the bottom of the dialog box. These options allow you to back up either the entire registry or just a specific part of the registry. Since in this instance you only want to back up a portion of the registry, the Selected Branch option should be selected. You'll also want to verify that the correct registry entry is located in the text box beneath the Selected Branch option. Click Save and that’s all there is to it. The registry key you specified and all its subkeys have been backed up.
If you need to restore the registry keys, simply open the Registry Editor, and use the Import Registry File function. As I mentioned, the exact name and location of this command will differ depending on which version of Windows you have. However, it should be located with the Export Registry File command.
Backing up the entire registry
The technique you use to back up the entire registry varies depending on which version of Windows you’re using. If you’re using Windows 98 or Windows Me, you need only enter the SCANREGW command at the Run prompt. The SCANREGW prompt will appear, and it will ask if you want to back up the registry. Just click Yes.
When you back up the registry using this method, Windows will create a file called RBOX.CAB, where X is a number ranging from 1 to 5. You can make up to five different backups. When you make the sixth backup, the oldest backup file will be overwritten. The backup files are placed into the \Windows\SYSBCKUP folder.
Each backup file is actually a CAB file that contains several critical files. These files include USER.DAT, SYSTEM.DAT, SYSTEM.INI, and WIN.INI. If you need to restore the registry, simply use the EXTRACT file contained on your Windows installation CD to extract the various files from the CAB file, and then use these files to replace the originals. It’s very important that you replace all of the files, not just one, because the files are partially dependent on each other and need to stay in sync.
A Windows 2000 or Windows XP registry backup is a little bit different. Rather than using a utility to create a CAB file, you must use the BACKUP program located on the System Tools menu. Although there’s no explicit option for backing up the registry, there is an option for backing up the system state. The system state includes the registry and the other critical files that must be backed up alongside of it.
==========================
Note:
Again, an easier way to restore the registry in Win98 is to shut down to DOS and type SCANREG /RESTORE at the C prompt. This will present the date and time of the last 5 backups. If the most recent one doesn't work you can repeat the process for later versions until you get to a working machine.
For NT/2000/XP try:
ERUNT - The Emergency Recovery Utility / Located here

|