You might have heard about windows registry.Many of us use registry without even knowing exactly how it works.In this article i will explain windows registry with the discussion being limited only to windows XP ,as i dont care about vista(i switched back you see) and 98 is dead.
- What is registry?
- Structure of Windows registry:
- Where is it stored?
- Branches:
I have listed all branches in accordance with the order they appear in XP registry.
- HKEY_CLASSES_ROOT:(HKCR)
Actually this information is a compilation of registration and file extension information stored under both the HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER keys. The HKCR key provides a view of the registry that merges the information from these two sources.
2.HKEY_CURRENT_USER:(HKCU)
As the name suggests this hive stores all the data related to the currently logged-in user. You can find this as "NTUSER.DAT" in "%SystemRoot%\Profiles\Username"
The information stored under this hive includes control panel settings, system events etc.
3.HKEY_LOCAL_MACHINE (HKLM)
This branch contains information about all of the hardware and software installed on your computer.
A list of all active hives can be found at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\hivelist
4.HKEY_USERS:(HKU)
This key contains the information related to all the users currently registered with the system.
5.HKEY_CURRENT_CONFIG:(HKCC)
This branch points to the part of HKEY_LOCAL_MACHINE appropriate for the current hardware configuration. It contains information about the hardware profile that is used by the local computer at system startup.
- Moving through the registry:
After this you'll see a window divided into two panes. The left side shows a tree with folders (see image for reference), and the right side shows the contents (values) of the currently selected folder (key).
To expand any branch, click on the little plus sign [+] to the left of any folder, or just double-click on the folder. To display the contents of a key (folder), just click the desired key, and look at the values listed on the right side
- Editing the registry:
- Manual editing:
2.Using Registration entries:(.reg files)
The registry can be edited by simply merging ".Reg" file in it. Again it can be done manually by double clicking or by using logon/logoff scripts. The examples for these can be found here and here.
- Exporting:
Just ope the Registry Editor, select a branch, and choose "Export" from the File menu. Then, specify a filename, and press OK. The file will be saved as ".Reg" file.By opening it in Notepad (right-click on it and select Edit) its contents can be viewed.To apply it to the registry just open it by double clicking.
PS:
If you like this article and are interested in learning .reg scripts then leave a comment i'll be happy to explain in next article.