Windows 2000 Registry Backup and Recovery

  

Windows 2000 stores its configuration information in a database called the registry that contains configuration files for each computer user, as well as information about system hardware, installed programs, and property settings, and Windows 2000 is running Always refer to this information throughout the process. The registry is stored on the hard disk in binary form, and incorrectly editing the registry can severely damage the system. Therefore, it is highly recommended to back up the registry information before changing the registry. In order to prevent fatal errors when modifying the registry, it is necessary to understand the backup and recovery methods of the registry files. In addition, in order to study the structure of the registry, you can also save a primary key or subkey in the registry as a text file, or print it out. This work also needs to know how to import and export the registry file.

First, full backup /recovery registry

If you want to completely back up the registry, you can click in the registry editor Regedit.exe “ Registry & rdquo; menu under “ Export the registry file ” command, and select the export scope is "all", save the registry file (*.reg) on ​​the hard disk. To completely restore the registry, the method is the same as above, just click the "Import Registry File" command under the "Registry" menu, and then select the corresponding backup registry file on the hard disk. By the way, the main reason that Regedit.exe (16-bit registry editor) is included in Windows 2000 is that its search function is relatively strong. Users can also use Regedit.exe to change the registry, but its function is not comprehensive enough (such as Setting permissions for registry keys) may not be able to view or edit individual data types correctly. Therefore, it is recommended to use Regedit.exe only for search and full backup of the registry. When you need to edit the registry, use Regedt32.exe in the system32 directory (it is a 32-bit registry editor that provides some advanced features. Multi-window format displays each predefined item, which is convenient to view).

Second, partial backup registry

If you only need to save a root key or a primary key (sub-key) and other general backup, it can be done more conveniently in Regedt32. First select the primary key or subkey to be saved, and then click the “Save” item under the “Registry” menu. In the pop-up “Save Item” dialog box, enter the registry file to be saved. File name, extension is recommended to use “reg” for future search.

When saving some primary keys or subkeys, because the user they are using is different, or the primary key or subkey is being used by the system, there is a warning that access is forbidden: <; insufficient permissions to save the item ”. At this time, the system administrator can use the “Security” command under the “Security” menu to give the users of these primary keys or sub-keys the “Full Control” permission (for details, see the 15th issue of Computer Newspaper). In the software world, "Windows 2000 Registry Express (on)", and then you can save the item.

Save the registry primary key or subkey as a <quo;item” file, can't be straight? The text editor opens the view, so if you want to study the structure of the registry, you can export the registry file as a text file. The method of operation is to select the “Save as a subdirectory tree as a file” under the “Registry” menu, and name it as a file with the extension TXT, and then click the “Save” button. In the future, we can use Windows WordPad or Notepad to view this text file. If necessary, you can also use the “Print Subtree Tree” command under the same menu to print.

Third, partial recovery /import registry

Partial recovery /import registry has two ways, the first is to restore "item", that is, use the previously backed up registry file Or other registry files to overwrite existing primary keys. First in the Regedt32 registry editor, move the cursor to the primary key to be restored, then select the “restore" command under the “registry" menu, and select to restore in the “restore item" window The registry file, click the "Open" button to confirm the overwriting of the existing primary key, you can restore the item to the currently selected item. Note: The file selected for restore must match the content of the primary key selected in the Registry Editor, that is, the previously saved registry <; Item" can only be restored to the original location.

Another way is to load a hive. “Load hive” and “Uninstall hive”. These two commands are only valid in the two predefined items window [HKEY_USERS] or [HKEY_LOCAL_MACHINE]. After the hive is loaded into the registry, the hive becomes a child of one of the items. The specific method is to use the mouse to select one of the two predefined items in the Regedt32 registry editor, and then select the "loading the configuration unit" command under the “ Registry" menu, and then load in “ In the configuration unit, select the registry file to be loaded in the dialog box, click the “Open” button, and the “Load Unit Configuration” dialog box appears. Enter the new box in the “Item Name” box of the dialog box. The name of the primary key, such as “.ChenNai”, click the “OK” button, and you will see a new primary key (.ChenNai) appearing below the current primary key. If you want to uninstall the hive, it is also very simple. After selecting the primary key, select the “Registry" menu"Uninstall Hive" command.

The difference between the above two methods is that "the loading of the configuration unit" can introduce the primary key that is not in the registry.


Last, the location of the registry file in Windows 2000 is the same as that of Windows 9X. The Windows 2000 registry is also divided into two parts, but includes multiple files, among which users The configuration file is saved in the directory under the root directory "Documents and Settings", including two hidden files: NTUSER.DAT, NTUSER.INI, and ntuser.dat.LOG. The system configuration file is located in the Windows 2000 system directory, "SYSTEM32\\CONFIG", including DEFAULT, SOFTWARE, SYSTEM, AppEvent.Evt, SecEvent.Evt, SysEvent.Evt and other hidden files and their corresponding .LOG (log) Files and .SAV files. These registry files cannot be opened with other tools while Windows 2000 is running, unlike system.dat and user.dat under Windows 9X.

Copyright © Windows knowledge All Rights Reserved