How to modify registry keys and values ​​in Windows

Trouble-free tutorial to use REGEDIT Registry Editor. how you create, edit and export Registry keys and values, how to use the scripts and REG files, precautions to follow. Create registry backup and bring back them. The keys mainly edited by applications, end users and computer viruses.


What is the Windows Registry and Regedit?

The Windows Registry is a central catalog that stores settings and all operating system information.
Windows registry contains data pertaining to all hardware, software, user configurations, and preferences stored on the computer.
The Registry Editor, known as REGEDIT is a tool that includes Windows to manually edit the keys and values contained in the registry.
With Regedit it is possible to create, edit and export keys and values, it is also possible to create and restore a backup of the entire registry or save individual keys only.

How to open REGEDIT Registry Editor?

You can open the Registry Editor in several ways. 
  • Type in the Start box or the Run: REGEDIT tool and press the Enter key. 
  • In Windows 8 type in the start screen: Regedit and press Enter. 
  • Find the shortcut in: All Programs. 
  • Create a new shortcut on the desktop, with the path: "regedit.exe"
It is not advised to modify the registry of Windows by those who are not familiar with its handling, because the changes made can affect the stability of the operating system. 
In this site there are pages with many adjustments, modifications, hacks useful to make changes to the Registry, but it is advised to run very carefully. 
In all cases it is recommended to make a copy of the key to modify (Menu -> Export). 
Do not be afraid, editing the keys and values ​​of the registry is not difficult, nor is it just for experts, you just have to take the proper precaution and a little common sense. 

How to edit registry keys and values?

You can make modifications to the Registry in two ways: Manually by Regedit or by editing the REG files with Notepad or another text editor and adding them later.

Using Regedit

Regedit opens a window with the structure of a tree, somewhat similar to a browser with two panels. 
The left pane contains the structure and you can browse folders and subfolders. 
Similar to the browser you can use the context menu to create new keys, delete them, rename them, export them, etc. 
The following example image exports the key: "Services", which contains all the values ​​of the services manually modified by the user, using the Services tool. 


The contents of keys and values ​​are displayed in the right pane. 
Any value is edited by giving two clicks on it. 
The following image shows how to change the value of: DisablePagingExecutive in the Memory Management key to disable the pagination of the kernel in Windows, Thus optimize the memory and obtain more performance. 


Using REG Files

REG only files that are saved with the .REG extension, instead of the default .TXT 
They can be easily edited with any editor, for example Windows Notepad. 
To give two clicks on it, the information contained in the registry is added. 
You can also create a REG file by exporting a key in Regedit. 
Its structure is as follows in the following diagram:
Windows Registry Editor Version 5.00 

[HKEY_CLASSES_ROOT \ Directory \ shell \ command]
They consist of: 
  • The header that is always: Windows Registry Editor Version 5.00 
  • A blank line (it is essential) 
  • The key with its corresponding value

Rules to create scripts or REG files

When creating a file to add to the registry it is necessary to keep in mind the following rules

The first line in XP, Vista and Windows 7 operating systems should be:
Windows Registry Editor Version 5.00
then be left a blank line.

Operating systems in Win98, ME, or NT 4.0 will be:
REGEDIT4
the same way after leaving a blank line.

To create a key an example would be:
[HKEY_CURRENT_USER \ Software \ MyProgram]

A content in the previous key value:
[HKEY_CURRENT_USER \ Software \ MyProgram]
"mi_valor" = "as"

to delete a key prepends a minus sign:
[-HKEY_CURRENT_USER \ software \ MyProgram]
to delete a value:
[HKEY_CURRENT_USER \ software \ MyProgram]
"value to remove"

= - When creating any value, it is assumed to be a string, to create a DWORD value it is necessary to specify it, for example:
[HKEY_CURRENT_USER \ Software \ MyProgram]
"my_value" = dword: 000001

If the semicolon character (; In front of any line this will be ignored and considered as a comment, for example:
[HKEY_CURRENT_USER \ Software \ MyProgram]
; This line is a comment [HKEY_CURRENT_USER \ Software \ MyProgram] ; This line is a comment [HKEY_CURRENT_USER \ Software \ MyProgram] ; This line is a comment

Permissions to edit the registry

In order to make modifications to the Windows registry you must login as administrator, if you do not have the necessary permission, try the following option:
  • Go to the key to modify, right-click and select Permissions in the menu . 
  • Click Advanced> Owner , select your name and check the Replace owner on subcontainers and objects check box and press OK . 
  • Now in the previous window select your name and check the box Allow Full Control. 
  • Accept . That's it.

Location of most edited registry keys

Keys that are most often modified in the Registry either by the applications or programs we install, by the user to customize Windows or by computer viruses.


Registry Keys Modified and Added by Viruses Frequently

Whether in the branches:
"HKCU\Software\Microsoft\Windows\Currentversion\"or:
"HKLM\Software\Microsoft\Windows\Currentversion\"
The following keys are added:
Policies\Explorer\NoFolderOptions(So THAT no folder options are displayed)
Policies\System\DisableRegistryTools(in order to disable the Register)
Explorer\Advanced\ShowSuperHidden(not display system files)
in all "0" The value is null and "1" Set .
If you find them in your Registry you can set them to "0" or delete them without fear.
Another key is "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell"in which the value is to be only"explorer.exe"

Create your first script or REG file

Create your first script or REG file with the following code. It will enable the button on the context menu of the mouse, to access the Registry Editor. Just copy the code and paste it into Notepad. Saves the file with any name, but has the extension .REG It gives two clicks on the file created to add it. 
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT \ Directory \ Background \ shell \ Open REGEDIT]
@ = "Open Regedit"
"Icon" = "C: \\ Windows \\ regedit.exe"

[HKEY_CLASSES_ROOT \ Directory \ Background \ shell \ Open REGEDIT \ Command]

@ = "C: \\ Windows \\ regedit.exe"

Creates a system icon on the desktop to access the Registry Editor

You can download in the link below a registry key that gives you two clicks and combine it into your Registry.
You will create a system icon on your desktop to access Regedit.

This icon is a link to a CLSID (Class Identifier) ​​folder and has the feature that is impossible to remove, which is an advantage so that it can not be accidentally deleted. In the tablet is also the key needed to delete the icon when you want.

Post a Comment

0 Comments