Legal Information
PC Knowledge Base - Windows Operating System Backup, Edit, and Restore the Registry in Windows 2000

Good Knowledge Is Good2Use

IMPORTANT: This contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs.

SUMMARY

This step-by-step article describes how to back up, edit, and restore the registry in Windows 2000. Microsoft recommends that before you edit the registry, you back up the registry and understand how to restore it if a problem occurs.

How to Back Up the Registry

Before you edit the registry, export the keys in the registry that you plan to edit, or back up the whole registry. If a problem occurs, you can then follow the steps in the How to Restore the Registry section of this article to restore the registry to its previous state.

How to Export Registry Keys

You can follow these steps to export a registry key before you edit it:
NOTE: Do not follow these steps to export a whole registry hive (for example, HKEY_CURRENT_USER). If you must back up whole registry hives, back up the whole registry instead.

  1. Click Start, and then click Run.
  2. In the Open box, type regedt32, and then click OK.
  3. Locate and then click the key that contains the values that you want to edit.
  4. On the Registry menu, click Save Key.
  5. In the Save inbox, select a location in which to save the .reg file, type a file name in the File name box, and then click Save.

How to Back Up the Whole Registry

To back up the whole registry, use the Backup utility to create an Emergency Repair Disk (ERD), or back up the System State (which includes the registry, the COM+ Class Registration database, and your boot files).

For additional information about using the Backup utility to create an ERD, click the article number below to view the article in the Microsoft Knowledge Base: 231777 How to Create an Emergency Repair Disk in Windows 2000

For additional information about using the Backup utility to back up the System State, click here.

How to Edit the Registry

To edit the registry, Microsoft recommends that you follow the steps in the Microsoft documentation only. If possible, use the Windows user interface instead of directly editing the registry.
Using Registry Editor incorrectly can cause serious problems that may require that you reinstall your operating system. Microsoft does not guarantee that problems that result from incorrectly using Registry Editor can be solved. Use Registry Editor at your own risk.

For more information about editing the registry, follow these steps in Registry Editor:

How to Use Regedit.exe to Rename Keys

IMPORTANT: The following contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs.

SUMMARY

This describes how you can use Regedit.exe to rename a registry key on a remote or local computer when it is loaded with Regedt32.exe.

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

Local computer

  1. Start Registry Editor (Regedit.exe).
  2. Click the key to be renamed. On the Edit menu, click Rename, type the new name for the key, and then press ENTER.
  3. Quit Registry Editor.

Remore computer

  1. Start Registry Editor (Regedit.exe).
  2. Click Connect Network Registry on the Registry menu, type the name of the remote computer, and then click OK.
  3. Click the key to be renamed. On the Edit menu, click Rename, type the new name for the key, and then press ENTER.
  4. .After you make the changes to the remote computer's registry, click Disconnect Network Registry on the Registry menu, click the remote computer name, and then click OK.
  5. Quit Registry Editor.
Note: For Windows 2000 you need to change the permissions in the Winreg registry key to allow access by any user not in the Administrators or the Backup Operators group. For additional information, click the article number below to view the article in the Microsoft Knowledge Base: 153183 How to Restrict Access to NT Registry from a Remote Computer [winnt] How to Restore Registry Keys

To restore registry keys that you exported, follow these steps:

  1. Click Start, and then click Run.
  2. Type regedt32, and then click OK.
  3. On the Registry menu, click Restore.
  4. Select the file that you saved, and then click Open.
  5. Click Yes to continue.

How to Restore the Whole Registry

To restore the whole registry, restore the System State from a backup. For additional information about using the Backup utility to restore the System State, click the article number below to view the article in the Microsoft Knowledge Base: 240363 HOW TO: Use the Backup Program to Back Up and Restore the System State in Windows 2000 Note that if you use the option to back up the registry when you create an ERD, Backup also creates updated copies of the registry files in the %SystemRoot%\Repair\Regback folder.
If you cannot start Windows 2000 after you edit the registry, you can manually replace the registry files in the %SystemRoot%\System32\Config folder with the copies in the %SystemRoot%\Repair\Regback folder by using Recovery Console.

The information in this article applies to:



Search Knowledge Base Feedback
If you like our web site refer a friend.
Your friends name.
Your friends email address.
Your Name
Your Email Address


© Copyright 1998-1999 GOOD2USE