Use the Regedit command to control the Registry

Source: Internet
Author: User
1. Regedit command

Regedit [parameter]

Import the. reg file to the registry using filename.
/S import the. reg file to the Registry (Quiet Mode)
/E export the Registry File

Example:Regedit/e filename. Reg HKEY_LOCAL_MACHINE // System

/L: system specifies system. dat

/R: User specifies user. dat

/C compression [file name] (Windows 98)

Some other parameters are also available, such as/a, but I found that the function is nothing more than the above! In addition, it is very dangerous to test parameters, which may result in a huge registry.

For batch processing, save the preceding command as a bat file.

 

2. Run the batch file to automatically export the run configuration item in the registry.

Batch file. Bat content:

 

Md c:/REG
Regedit/e c:/REG/reg1.txt "HKEY_LOCAL_MACHINE/software/Microsoft/Windows/CurrentVersion/run"
Regedit/e c:/REG/reg2.txt "HKEY_LOCAL_MACHINE/software/Microsoft/Windows/CurrentVersion/runonce"
Regedit/e c:/REG/reg3.txt "HKEY_LOCAL_MACHINE/software/Microsoft/Windows/CurrentVersion/runonceex"
Regedit/e c:/REG/reg4.txt "HKEY_LOCAL_MACHINE/software/Microsoft/Windows/CurrentVersion/runservices"

Regedit/e c:/REG/reg5.txt "HKEY_CURRENT_USER/software/Microsoft/Windows/CurrentVersion/run"
Regedit/e c:/REG/reg6.txt "HKEY_CURRENT_USER/software/Microsoft/Windows/CurrentVersion/runonce"

 

3. Cancel the ban on modifying the Regedit File on the IE homepage

. Bat content:

Regedit4

[HKEY_LOCAL_MACHINE/software/Microsoft/Windows/CurrentVersion/policies/system]
"Disableregistrytools" = DWORD: 00000000

[HKEY_CURRENT_USER/software/Microsoft/Windows/CurrentVersion/policies/system]
"Disableregistrytools" = DWORD: 00000000

[HKEY_CURRENT_USER/software/policies/Microsoft/Internet Explorer/Control Panel]
"Homepage" =-

 

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.