How Windows can modify the registry one-click

Source: Internet
Author: User
Tags delete key

1. Copy one sentence Code Registry auto location

To avoid the hassle of localizing the registry branch, here's a way to automatically reach the target item of the registry by one click.

Create a new file with Notepad, and enter the code as shown in the diagram (for increased efficiency, you can download the copy code directly: http://pan.baidu.com/s/1nt2vjXf). When saving, select Save Type "All Files" and name the file name Regedit.vbs (Figure 1).

Small tip:

You can also save as a TXT file and then open the extension display from Windows Explorer and change the extension to VBS. Place the Regedit.vbs on the desktop or save the standby.

After the file is built, in practice, if you want to navigate to an item in the registry, for example, to navigate to the Hkey_local_machinesoftwaremicrosoftwindowscurrentversionexplorermycomputer , just copy the full path first, then double-click the previously established Regedit.vbs file, and after the Windows Account Control verification, the Registry Editor opens automatically and automatically navigates to the above copied path (Figure 2).

In this way, the longer path positioning, all become a copy of the path and double-click the script file two simple operations. Both Time-saving and general, you should try it quickly!

2. Run code script to automatically import registry keys

There is also an automated way to modify the registry, which is to run the prepared reg registry script code directly. You can import the key values into the registry by writing the code directly into the bat batch file and then running the bat batch file directly. The bat batch code is formatted as follows:

REG ADD "Hkey_local_machinesoftwaremicrosoftmssqlserver"/V loginmode/t reg_dword/d 00000002/f/* Add key value * *

reg delete "Hkey_local_machinesoftwaremicrosoftmssqlserver"/V loginmode/* Delete key * *

Parameter description:

/v The name of the key value to add under the option

/t RegKey data types, such as REG_DWORD, REG_SZ

/d data for added registry key values

/f Force Overwrite existing registry key without prompting

Extended reading:

There are two more convenient ways to modify the registry, even if you have Group Policy modifications or system aids. However, because Group Policy or system aids contains a limited number of registry modification entries, they are just a collection of features extracted from the registry, not all registry modifications can be done with Group Policy or system tools. In the case of multiple modification methods, it is recommended that you use Group Policy Editor as a priority, and then consider the System Optimization tool to manually edit the registry only if you have to.

Related Article

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.