Microsoft Windows - La base del registro Microsoft Windows - Registros do sistema Microsoft Windows - Inhaltsverzeichnis Microsoft Windows - La base de registres Microsoft Windows - El registro

What is the registry?

In version 3.1 of Microsoft Windows, applications that had been installed were configured in Windows with configuration files (which had the extension .ini). There were also two configuration files for Windows itself:

  • win.ini: for defining user settings (like language, colours, and wallpaper)
  • system.ini: for configuring Windows' use of the machine itself (like the sound card and screen resolution)
Finally, one file (reg.dat) was used for associating files with programs (defining which program would be used to open a file with a given extension).

Since then, Microsoft has decided to gather all information into two files (called the "registry"). The files are:

  • "user.dat" - containing user settings
  • "system.dat" - containing system settings
Microsoft kept the "system.ini" and "win.ini" files to ensure compatibility with programs that worked in Windows 3.1.

Advantages and disadvantages

This registry is meant to group all configuration information together, in order to both give it a semblance of organisation and limit the number of configuration files on the hard drive.
The registry is a file containing a tree structure in which settings are grouped by criteria. Each criterion corresponds to a branch which may then be subdivided into other branches (hence, a "tree"). Each configuration element is located at the very end of a branch in what is called "a key".

The biggest problem with this registry is that, after a program is installed, it creates several keys in various places in the registry, and when it is uninstalled, the keys are erased (in a best-case scenario) but the branches of the tree remain. When you install program after program and later erase them, little by little the system slows down. Eventually, you may have to reinstall Windows.

Editing the registry

This colossal edifice can be edited, but it must be done with caution (the registry is the heart of Windows — no registry, no Windows).

  • The first thing that must be done is making a copy of the registry. This will let you restore your initial settings if a problem arises.
  • Then, you must disable the attributes of the files system.dat and user.dat
  • Finally, run the program "c:\windows\regedit.exe"
All that's left is modifying the keys that you want to edit.

Description of the branches

In the registry editor (regedit.exe) you will see six main branches:

  • HKEY_CLASSES_ROOT (called HKCR): Contains all file associations; the names of the first keys listed within it correspond to the file extensions in question.
    Shown lower down on the tree are keys which correspond to the names of file types, and their attributes:
    • The default icon (DefaultIcon)
    • The associated action (shell): open, run, etc.
  • HKEY_CURRENT_USER (called HKCU): Defines settings for the current user, and is divided into six sub-categories:
    • control panel: for the control panel
    • software: for software that has been installed
    • AppEvents: for system sounds (the beep or boop when you click on something)
    • keyboard layout: for keyboard settings
    • Remote Access: for remote access over a network
    • Network: Network configuration
  • HKEY_LOCAL_MACHINE (called HKLM): Contains all information related to your machine:
    • hardware: for the processor and motherboard
    • enum: for hardware (peripheral devices, etc.)
    • network: for networking and the Internet
    • software: for software configurations shared by all users
  • HKEY_USERS (called HKU): Contains separate settings for each user
  • HKEY_CURRENT_CONFIG (called HKCC): This is a shortcut to the configuration currently being used in HKLM\Config. It contains settings for the current configuration of the computer.
  • HKEY_DYN_DATA (called HKDD): This is a shortcut to the components currently being used only in RAM in HKLM\Config (volatile information: exists only temporarily, until the system is reinitialised).


Last update on Thursday October 16, 2008 02:43:14 PM.This document entitled « Microsoft Windows - The registry » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.
Best answers for « Microsoft Windows The registry » in :
Download WinMend Registry Cleaner Show Description The application is designed by WinMend.com. WinMend Registry Cleaner is a tool that secures registry cleaning and optimizes application. Simple and easy to use, the application has been awarded from various popular places. Offering an...
How to open Registry Show How to open Registry The registry is a directory path that stores option and settings for windows operating system. The registry allows you to access difficult file to track in the background. All changes that are made in the control panel are...
The main registry keys ShowThe main registry keys Intro Accessing the Registry Note Intro The Windows Registry is a database which stores settings and options for Microsoft OS It contains information and settings for hardware, operating system software,...
Create a shortcut to activate or deactivate the screen saver ShowCreate a shortcut to activate or deactivate the screen saver The screensaver may sometimes disrupt or halt certain applications on your computer, such as burning a CD, viewing a video, etc.. To avoid a manual activation or deactivation...
Windows Update – Detection Frequency Configuration ShowWindows Update – Detection Frequency Configuration By the registry On the Control Panel Vista XP You can change the Update detection frequency on windows because windows does automatically searches for updates! By the registry Save...
File sharing in Windows XP ShowAdvantages File sharing involves making the content of one or more directories available through the network. All Windows systems have standard devices making it easy to share the content of a directory. However, file sharing may lead to security...
User management in Windows NT ShowThe notion of a user Windows NT is an operating system which manages sessions, meaning that when the system is started, it is necessary to log in with a user name and password. When Windows NT is installed, the administrator account is created by...
Windows networking ShowNetworking in Windows 2000/XP To configure each computer, simply go to the control panel, then double-click "network connections" and right-click "local area connection", then choose properties! The local area connection window displays the...