Computing Center

  1. Home
  2. Electronics & Gadgets
  3. Computing Center

Care and Feeding of the Windows Registry

Stan Miastkowski

The Registry is the essential part of Windows--a big, complex database that stores all the configuration settings for your software and hardware in a hierarchical form like file folders. You don't often need to deal with the Registry, because Windows' built-in tools work in the background to make sure it stays in tip-top shape. But because the Registry is so huge and complicated, it can develop troubles that cause strange problems or even bring your PC to a grinding halt.

To most of us, the Windows Registry is a dark and mysterious place. This month, we cover some basic housekeeping chores you can do to keep the Registry happy, and we review some Windows tips and tweaks that involve directly editing the Registry. If you're the adventurous sort (and are conscientious about doing backups), editing the Registry is the ultimate way to customize many Windows settings to your personal preferences.

Stan Miastkowski is a contributing Editor for PC World.

 

A: Back Up the Registry

All versions of Windows automatically create a backup copy of the Registry each time you start your PC, but keeping an additional backup provides extra insurance. Of course, you can't restore changes you haven't backed up, which means you should make backups frequently. Fortunately, there are several ways to back up the Registry.

1. Use System Restore. Windows Me and XP users can create System Restore points, which back up all data (including the Registry) so you can restore your system to that precise state. You should run System Restore manually before you make major hardware or software changes or try to work with the Registry. Click Start, Programs ( All Programs, in XP), Accessories, System Tools, System Restore, choose Create a restore point, click Next, and follow the directions.

2. Use the Registry Editor. The export capability in Windows' Registry Editor can back up parts of the Registry, or create a full backup. In Windows 2000, this is your best option. Click Start, Run, type regedit, and press Enter. Select My Computer in the folder tree, select File, Export, and fill in a file name and destination. For added peace of mind, save the file on a CD-RW disc or other removable media.

3. Copy the Registry files manually. In Windows 95 and 98, the Registry resides in System.dat and User.dat in the \Windows directory. In Windows Me, copy Classes.dat too. To see hidden and system files, youll need to set Windows Explorer to show them. In Explorer, choose View (95 and 98) or Tools (Me and XP); then select Folder Options, open the View tab, and pick Show All Files (95 and 98) or Show hidden files and folders (Me and XP). Once you can see them, copy the files.

4. Use backup software. Check your backup utility for an option to back up the Registry along with the other files on your hard drive. Some backup utilities do this automatically; others require you to specify Registry backup.

5. Run Windows' Registry Checker. For Win 98 and Me only--see section B.

B: Use Windows' Built-In Registry Tool

Windows 98 and Me include a background utility called Registry Checker. When you boot your PC, Registry Checker scans for problems; if it can't fix them, it restores the most recent Registry backup.

If you keep your PC running all the time, it's a good practice to reboot the computer daily so Registry Checker can do its work. You can also run Registry Checker manually (especially before and after making system changes that don't require a restart). To do this, click Start, Programs, Accessories, System Tool, System Information, open the Tools menu, and click Registry Checker.

C: Clean the Registry

The longer you use Windows, the more cluttered the Registry can grow, especially if you regularly install and uninstall software. That's because some applications don't remove all traces of themselves when you uninstall them. Orphan Registry entries can cause problems such as sluggish performance or even system lockups, but the more common result is a bloated Registry that takes longer to load. Registry Checker (discussed in section B) doesn't clean out invalid entries.

If you still use Windows 95 as your operating system, you have a built-in Registry cleaning tool. To access it, click Start, Run, type regclean, and press Enter.

In versions after Windows 95, Microsoft didn't include RegClean, so you'll have to use third-party utilities. Two free ones are available from Downloads: EasyCleaner and RegClean. Neither works with Windows XP, but XP's Registry structure doesn't develop as many problems.

For the most comprehensive Registry checking, cleaning, and optimizing, however, you'll need to purchase a utility suite such as Norton SystemWorks ($70) or Ontrack SystemSuite ($60). For more information, see Tools for Trouble-Free Computing. Both utility suites have comprehensive features that fully check, optimize, and maintain the Registry, going far beyond Windows' built-in Registry tools or the free add-ons. Both work with all versions of Windows from 98 through XP.

D: Tweak the Registry

With a bit of surfing on the Web, you can discover numerous Registry tips and tweaks for customizing various Windows features by editing the Registry. One of the largest selections is located at the Windows Registry Guide.

If you have a broadband (cable or DSL) Internet connection, you'll find that tweaking the Windows Registry is almost always necessary for getting maximum data speed. Two helpful sites to check for Windows Registry information are DSL Reports (select RWIN in the 'Jump to topic' drop-down list box) and Speed Guide.

The easiest way to make changes to the Registry is with a.reg file; such files are downloadable from some of the sites mentioned above. Double-clicking a.reg file immediately incorporates the changes into your existing Registry. (Make sure you have a backup first.)

To input other changes, you'll need to use RegEdit, a feature that's available on all versions of Windows. The example that we illustrate here turns off the AutoRun feature of your CD-ROM drive. So if you'd prefer not to have a music CD automatically start to play or have a program CD automatically start up, this Registry tweak will solve your problem. Some versions of Windows permit you to make the same change from the CD-ROM Properties box. In Windows XP, you can perform many (but not all) system tweaks from menus, without having to edit the Registry.

WARNING: Editing the Registry can cause problems-an incorrect entry can "break" your PC. Follow the directions carefully, and make absolutely sure that you have a current Registry backup before you begin.

1. Start RegEdit. Choose Start, Run, type regedit, and press Enter to run the program.

2. Find the key. The key for changing the Windows CD-ROM AutoRun feature is at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cdbcdrom.

To find the key, you can navigate through the hierarchical menus or you can press Ctrl-F, type cdbcdrom, and press Enter. RegEdit will stop at the desired key. The name of this key may vary-if your Registry doesn't contain cdbcdrom, try searching for cdrom with the Services folder highlighted in the tree listed above.

3. Change the key value. Double-click the AutoRun entry in the right-hand window. In the Edit DWORD Value box that pops up, change the '1' in the 'Value data' box to 0 and click OK.

You will need to exit RegEdit and reboot your PC to bring the change into effect.

Explore Computing Center

About.com Special Features

Essential Laptop Accessories

If you're traveling with your laptop, these 12 items are indispensible. More >

How to Buy a BlackBerry

Sleek and trim or loaded with extras? Select the right smartphone for your lifestyle. More >

Computing Center

  1. Home
  2. Electronics & Gadgets
  3. Computing Center
  4. PCW
  5. Products
  6. Consumer Advice
  7. Tips & Troubleshooting
  8. Windows Tips
  9. Actions
  10. Maintenance/Management
  11. Care and Feeding of the Windows Registry

©2009 About.com, a part of The New York Times Company.

All rights reserved.