19th. We will teach you how to back up and restore the Windows 2000 registry.

Source: Internet
Author: User


19th. We will teach you how to back up and restore the Windows 2000 registry.

Windows 2000 stores its configuration information in the registry database, which contains the configuration files of each computer user, as well as information about system hardware, installed programs, and attribute settings, windows 2000 always references this information during running. The Registry is stored in binary format on the hard disk. incorrectly editing the registry may seriously damage the system. Therefore, we strongly recommend that you back up the registry information before changing the registry. To prevent fatal errors when modifying the registry, it is necessary to understand the backup and recovery methods of the Registry file. To study the Registry structure, you can save a primary key or subkey in the registry as a text file or print it out, to do this, you also need to know how to import and export registry files.

1. Full backup/registry recovery

To fully register the table, click the export registry file command under the registry menu in regedit.exe, and select "all" to save the Registry file (. reg) on the hard disk. To completely restore the registry, you only need to click the "Import Registry File" command under the "Registry" menu, and then select the corresponding backup registry file on the hard disk. By default, regedit.exe (a 16-bit Registry Editor) is included in Windows because its search function is relatively strong. You can use regedit.exe to change the registry in the same way. However, regedit.exe is not fully functional (for example, you cannot set Registry Key Permissions) and may not view or. Therefore, we recommend that you only use Regedit.exe for search and full backup of the Registry. When you need to edit the registry, use Regedt32.exe In the system32 directory (which is a 32-bit Registry Editor and provides some advanced functions, use the multi-window format to display the pre-defined items, which is easier to view ).

Ii. Partial backup Registry

If you only need to save a common backup such as a root key or a primary key (subkey), you can easily complete it in Regedt32. Select the primary key or subkey to save, and then click the "Save item" command under the "Registry" menu, in the pop-up "Save items" dialog box, enter the name of the Registry file to be saved. The extension "reg" is recommended for future search.

When saving some primary keys or subkeys, because they are used by different users, or the primary key or subkey is being used by the system, the following warning is displayed: "The permission is insufficient, unable to save the item ". In this case, the system administrator can use the "permission" command under the "Security" menu to grant "Full Control" permissions to users of these primary keys or subkeys, and then save the item.

If you want to study the Registry structure, you can export the Registry file as a text file, the operation is to select the "Save subdirectory tree as" command under the "Registry" menu, name it a file with the extension TXT, and then click "save. In the future, we will be able to use the Windows tablet or notepad to view this text file. If necessary, you can also use the "Print subdirectory Tree" command under the same menu to print.

Iii. partially restore/import the Registry

There are two methods to partially recover/import the registry. The first method is to restore the "item", that is, to overwrite the existing primary key by using the previously backed up registry file or other registry files. First, in the Regedt32 Registry Editor, move the cursor to the primary key to be restored, and then select the "Restore" command under the "Registry" menu, in the "Restore items" window, select the Registry file to be restored, and click the "open" button to confirm that the existing primary key is overwritten. Then, the item can be restored to the selected item. Note: The file to be restored must match the primary key selected in the Registry Editor. That is, the "key" of the previously saved Registry can only be restored to the original location.

Another method is to load the Configuration unit. "Load configuration units" and "Uninstall configuration units ". These two commands are valid only in the [HKEY_USERS] or [HKEY_LOCAL_MACHINE] pre-definition windows. After the Configuration unit is loaded into the registry, the configuration unit becomes a subitem of one of the items. In the Registry Editor of Regedt32, first select a primary key in the two pre-meanings and then select the "load configuration unit" command under the "Registry" menu, in the "load configuration unit" dialog box, select the Registry file to be loaded and click "open". The "load configuration unit" dialog box appears, enter the name of the new primary key in the "item name" text box of the dialog box, such as ". eNet, and then click OK. In this way, a new primary key (. eNet ). If you want to uninstall the Configuration unit, you can easily select the primary key and select the "Uninstall Configuration unit" command under the "Registry" menu.

The difference between the two methods is that the primary key introduced by "loading configuration units" can be the content that is not previously in the registry.

Finally, the location of the Registry File in Windows 2000 is the same as that in Windows 9X. The Registry in Windows 2000 is divided into two parts, but multiple files are included, the user configuration file is saved in the user name directory under the root directory "Documents and Settings", which contains two hidden files: NTUSER. DAT, NTUSER. INI and ntuser. dat. LOG File. The SYSTEM configuration file is located in "SYSTEM32 \ CONFIG" in the Windows 2000 SYSTEM directory, including DEFAULT, SOFTWARE, SYSTEM, and AppEvent. evt, SecEvent. evt, SysEvent. multiple hidden files such as Evt and their corresponding. LOG Files and. SAV file. These registry files cannot be opened using other tools when running Windows 2000, which is different from system. dat and user. dat in Windows 9X.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.