Export and import the Registry

Source: Internet
Author: User

Export and import the Registry

The Registry is stored in binary mode on the hard disk. When modifying the registry, we will inevitably cause some problems or even fatal faults. Therefore, it is of great significance to back up and restore the Registry file. In addition, you can save a primary key or subkey in the registry as a text file and print it out to study the Registry structure.

Export the Registry File
As a backup function, you can click the export registry file command under the registry menu in the Regedit editor and select "all" as the export range ", back up the Registry file on the hard disk. As a general backup job, Regedt32 can be completed, such as saving a root key or a primary key subkey ).

Save the data in the Registry in Registry Editor Regedt32. You can save the root key, primary key, or a subkey. Select the primary key or subkey to save, and then click the "Registry/save item" command,

The "Save items" dialog box is displayed. enter the name of the Registry file to be saved. Generally, REG is used for the extension,

As for some primary keys or subkeys, because they are used by different users, or the primary key or subkey is being used by the system, a warning will be prompted about access prohibition,

If you are a system administrator, you can grant permissions to some primary keys or subkeys. For example, you can set the printer modification permission for a user in registry editing. Click the "permission" command under the "Security" menu during operation,

The "permissions for registry items" dialog box appears. Select a user from the name and select an access type from the "access type" drop-down list,

There are three access types: "read", "full control", and "selective access ". After the selection is complete, click "OK.
To view the name of the owner who can modify a primary key or subkey, select the "owner" command under the "Security" menu. the dialog box shown in is displayed, if you have higher system permissions than this user, click "get ownership" to modify the primary key or subkey,

Otherwise, you can only view the owner and then click "close? .
You can also export the Registry file as a text file by clicking the "Registry/Save the subdirectory tree as" command and naming it a file with the extension TXT, click "save. In this way, we can use the Windwos tablet or notepad to view the information.

Import Registry File
There are two methods to introduce a registry file. One is to restore an existing primary key by using the previously backed up registry file or the Registry file obtained through other channels, to overwrite the existing primary key.

Click the "Restore" command under the "Registry" menu, in the "Restore items" window, select the Registry file to be restored. Note that the selected file is the same as the selected primary key.) then, click the "open" button,

A "warning" dialog box is displayed,

In the dialog box, check whether to overwrite the existing primary key. Note that this item is restored to the selected item. The two items must match.
Another method is to load the Configuration unit. Select a primary key with the mouse, and then select the "load configuration unit" command under the "Registry" menu, the primary key introduced by it may not exist in the registry. Note the difference between the two ),

Then, in the "load configuration unit" dialog box, select the Registry file to be loaded,

Click the OPEN button and the "load configuration unit" dialog box appears. In the "item name" text box of the dialog box, enter the name of the new primary key,

Click "OK", and a new primary key. NEWUSER appears under the current primary key ),

To uninstall the Configuration unit, note that the primary key is backed up before uninstallation.) Select the primary key and click the "Registry/uninstall Configuration unit" command,

The editor will prompt you whether to uninstall the program,

Click "Yes (Y)" to delete the primary key from the registry, but note that some important software and hardware information cannot be detached ).


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.