Categories
Registry Fix

Know the Basic Windows Registry and How to Access the Windows Registry?

By Dian Afrial

Imagine? The first time you try a registry cleaner program, then get the fact that tens or even hundreds of registry is in trouble.

You may be amazed at the amount of relief, because it can clean the registry with Registry Cleaner. But, whether it has occurred in your mind, that so easily fill the registry changes and problems, without you feel tweak it.

Registry plays an important role in the Windows operating system. Unfortunately, more often change the registry is another program (i.e. malware), it makes you as the owner of the computer like a guest in your own home, you just let go when the registry revamped all-out. But do not worry, let’s tweak the Windows Registry and understanding, and beware of harmful registry modifications.

For those of you who ever open the registry with a registry editor program (such as Regedit), Maybe, hierarchical structure is displayed to remind you that the structure of directories on disk, as shown in Windows Explorer. Though of course, you will not be inspired to name the folders on the hard drive with a name such as HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER or HKEY_CLASSES_ROOT.

The main part of the registry are :

1.HKEY_CLASSES_ROOT or abbreviated as HKCR, storing configuration information and applications, such as file associations.

2.HKEY_CURRENT_USER or abbreviated to HKCU, storing user login information.

3.HKEY_LOCAL_MACHINE or abbreviated to HKLM, storing the configuration of computer software and hardware concerns.

4.HKEY_USERS or abbreviated as HKU, storing information related to HKCU.

5.HKEY_CURRENT_CONFIG or shortened by the HKCC. Storing the information collected at runtime.

Mentioned above registry you can see through Regedit (you can run it via Start – Run, type regedit, and hit enter)

There are 5 main hive can be expand display (sub) hive or key, the right pane displays the contents / value. To create a key, right click and select New Key. Meanwhile, to make the Value, right click and select Value is divided by type of data, string, binary, DWORD, multi-string, expandable-string.

In addition, HKEY_PERFORMANCE_DATA hive that are not shown in regedit, but it can be accessed through the registry functions in Windows API. On windows 95/98/ME operating system, there HKEY_DYN_DATA hive that stores dynamic information, including a plug and play information and network statistics.

The letter “H” which is the first letter of each part, stands for Hive. The main use registry to store configuration is related to hardware and software, including components such as the kernel, drivers, services, SAM (Security Accounts Manager), user interface and applications using 3rd party registry. Registry is corrupted or intentionally modified to cause the windows operating system is not functioning properly.

How do I create a new key with its value?

The contents of the registry might be changed in various ways. Simple example, consider the registry key HKEY_CURRENT_USERControl PanelInternational, which stores the configuration of regional/international, such as the State code, format currency, date-time, and so on.

Some ways to change the registry configuration is:

1.Through the Control Panel – Regional and Language Options. Options you choose and change, will automatically modify the registry value.

2.Through the REG file which contains registry values. When run with a double click, the REG File will automatically import the contents of the registry in accordance with the format specified.

3.Using the REG command which is the Console Registry tool that allows you to change the registry via the command prompt.

4.Through the INF file with a specific format that contains the registry value.

5.Through programming using the API functions provided by Windows, and is located in the advapi32.dll file (advanced windows 32 API Library).

Seeing so many ways (relatively easy) to access the registry, make changes, or even a registry value, it is not surprising if the registry becomes vulnerable.

The following example shows easily add, modify, and delete keys and values using REG command through the command prompt.

To create a new key, for example, is as follows (just type in the command prompt) :

REG ADD HKLMSOFTWAREMY_KEY

This command will create a new key with the name MY_KEY at the hive HKLMSOFTWARE. To fill in values, type the following command:

REG ADD HKLMSOFTWAREMY_KEY/v Data /d 007

It will create a value named data with the contents of 007, by default is the string data type. This value can be modified with the following command:

REG ADD HKLMSOFTWAREMY_KEY/v Data /d 008

it will display a confirmation dialog whether you want to overwrite the old data. Then the contents will change to 008. Parameters /v means defining the value, the parameter /d means defining the data. For more parameters, can be seen if you type REG ADD /?

After quite a waste, how to delete keys that have been made previously with the command below:

REG DELETE HKLMSOFTWAREMY_KEY

All subkey (if any) and the value in HKLMSOFTWAREMY_KEY will be deleted. For more parameters, can be seen if you type REG DELETE /?

About the Author: For More Details about this information visit the page Know more about windows registry (Regedit) : Introducing Windows Registry and visit the homepage Top Freeware,Photoshop Tricks,PC tricks & tips,Internet Tips & Tricks

Source: www.isnare.com

Permanent Link: http://www.isnare.com/?aid=502079&ca=Computers+and+Technology

Originally posted here: Know the Basic Windows Registry and How to Access the Windows Registry?