Tip & How-To about Computers & Internet

How can you backup and restore the Registry?

Maintaining the Registry

Windows 95
Microsoft included a utility on the Windows 95 CD-ROM that lets you create backups of the Registry on your computer. The Microsoft Configuration Backup program, CFGBACK.EXE, can be found in the \Other\Misc\Cfgback directory on the Windows 95 CD-ROM. This utility lets you create up to nine different backup copies of the Registry, which it stores, with the extension RBK, in your \Windows directory. If your system is set up for multiple users, CFGBACK.EXE won't back up the USER.DAT file.

After you have backed up your Registry, you can copy the RBK file onto a floppy disk for safekeeping. However, to restore from a backup, the RBK file must reside in the \Windows directory. Windows 95 stores the backups in compressed form, which you can then restore only by using the CFGBACK.EXE utility.

Windows 98
Microsoft Windows 98 automatically creates a backup copy of the registry every time Windows starts, in addition to this you can manually create a backup using the Registry Checker utility by running SCANREGW.EXE from Start | Run menu.

What to do if you get a Corrupted Registry
Windows 95, 98 and NT all have a simple registry backup mechanism that is quite reliable, although you should never simply rely on it, remember to always make a backup first!

Windows 95
In the Windows directory there are several hidden files, four of these will be SYSTEM.DAT & USER.DAT, your current registry, and SYSTEM.DA0 & USER.DA0, a backup of your registry. Windows 9x has a nice reature in that every time it appears to start successfully it will copy the registry over these backup files, so just in case something goes wrong can can restore it to a known good state. To restore the registry follow these instruction:
[list=1]
* Click the Start button, and then click Shut Down.

* Click Restart The Computer In MS-DOS Mode, then click Yes.

* Change to your Windows directory. For example, if your Windows directory is c:\windows, you would type the following:

cd c:\windows

* Type the following commands, pressing ENTER after each one. (Note that SYSTEM.DA0 and USER.DA0 contain the number zero.)

attrib -h -r -s system.dat
attrib -h -r -s system.da0
copy system.da0 system.dat
attrib -h -r -s user.dat
attrib -h -r -s user.da0
copy user.da0 user.dat

* Restart your computer.

Following this procedure will restore your registry to its state when you last successfully started your computer.

If all else fails, there is a file on your hard disk named SYSTEM.1ST that was created when Windows 95 was first successfully installed. If necessary you could also change the file attributes of this file from read-only and hidden to archive to copy the file to C:\WINDOWS\SYSTEM.DAT.

Windows NT
On Windows NT you can use either the "Last Known Good" option or RDISK to restore to registry to a stable working configuration.

How can I clean out old data from the Registry?
Although it's possible to manually go through the Registry and delete unwanted entries, Microsoft provides a tool to automate the process, the program is called RegClean. RegClean analyzes Windows Registry keys stored in a common location in the Windows Registry. It finds keys that contain erroneous values, it removes them from the Windows Registry after having recording those entries in the Undo.Reg file.

Posted by on

Computers & Internet Logo

Related Topics:

Related Questions:

0helpful
1answer

how do i reformat my pc?


Hi,

This is a pretty drastic process and takes several hours. If you have system slow downs and ongoing bugs you may be able to repair with software tools (see here), however that said, on with the show.

The procedure will decimate the data on your C: drive, so it's crucial that you back up all the data you don't want to lose.

Don't forget items like e-mail data and address books (see: How to backup e-mail.). Back up all your documents including your "My Documents" folder and all the data you've stored on your Windows Desktop which you'll find in c:\Windows\Desktop or c:\Windows\Profiles\<yourname>\desktop, where <yourname> is your Windows log-on.

Don't worry about backing up programs that you can reinstall later, unless you want a complete backup of your C: drive in the event of a problem.

Now, create a boot disk. Creating a Windows 98 boot disk is easy. If Windows 98 came factory-installed with your machine then one may have been supplied with your documentation. If not, you can create one through the Control Panel. In Windows, go to Add/Remove Programs and click the "StartUp Disk" tab and click the "Create Disk" button. It will create a boot disk on a blank floppy for you with CD-ROM support.

This is important, as you'll need access to your CD-ROM drive to do a new Windows98 install.

Once the boot disk is created, test it to see if you can access your CD-ROM drive. To do this reboot the machine with the floppy disk in the floppy drive and when the machine restarts choose "Start with CD-ROM support".

At the prompt type d: and hit the Enter key. If the machine responds with D:\> you are in business.

Next type "format c:" without the quotes (and hit ENTER).

The C: drive (main hard drive) will then be wiped clean.

Once the reformat is finished put your Windows CD-ROM disk in the CD-ROM drive, and type "D:\setup" at the prompt.

Once Windows is finished installing, reinstall your backup software and restore your data to the hard drive.

Good luck!
And Thanks.
0helpful
2answers

***** problem? it wont be recognized by compute, why oh why??? can you please help

try to change ur jumper setting of ur cd rom drive,set into master mode or slave mode! and try to change ur cd rom cable also.. check ur bios if ur cd rom drive is enable.
0helpful
1answer

Have a Dell 667Mhz 64mbit ram pc w/windows 98 on

use this tool to reset the cd in the registry
after you run the file - reboot the computer -

http://www.dougknox.com/xp/utils/XP_CD-DVD-Fix.zip
Not finding what you are looking for?

378 views

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

Brad Brown

Level 3 Expert

19187 Answers

Cindy Wells

Level 3 Expert

6688 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Loading...