The Windows Registry replaces .ini files. It is a place where programs store the data they need to run. Eg, configuration settings.
Some key facts to remember.
Root Keys
[P] – primary key
[A] – alias to some other key in the registry
[A]HKEY_CLASSES_ROOT(HKCR)- On Windows 2000 and above, HKCR is a compilation of user-based
HKCU\Software\Classesand machine-basedHKLM\Software\Classes. If a given value exists in both of the subkeys above, the one inHKCU\Software\Classestakes precedence.
- On Windows 2000 and above, HKCR is a compilation of user-based
[A]HKEY_CURRENT_USER(HKCU)- a link to the subkey of
HKEY_USERSthat corresponds to the user; the same information is accessible in both locations
- a link to the subkey of
[P]HKEY_LOCAL_MACHINE(HKLM)[P]HKEY_USERS(HKU)[A]HKEY_CURRENT_CONFIG(HKCC)- It is a handle (alias) to the key
"HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current"(only exists in Windows 9x/Me and NT-based versions of Windows)
- It is a handle (alias) to the key
HKEY_PERFORMANCE_DATA(only in NT-based versions of Windows, but invisible in the Windows Registry Editor)HKEY_DYN_DATA(only in Windows 9x/Me, and visible in the Windows Registry Editor)
hive file locations
The Registry is stored in hive files.
Note:
%SystemRoot%is usuallyc:\windows%UserProfile%is usually- w2k w2003 wxp
c:\Documents and Settings\[USERNAME]- Vista w7 w8
c:\users\[USERNAME]
HKEY_LOCAL_MACHINE\SAM%SystemRoot%\System32\Config\SAM- (
SAMstands for “Security Accounts Manager”)
- (
HKEY_LOCAL_MACHINE\SECURITY%SystemRoot%\System32\Config\SECURITYHKEY_LOCAL_MACHINE\SOFTWARE%SystemRoot%\System32\Config\SOFTWAREHKEY_LOCAL_MACHINE\SYSTEM%SystemRoot%\System32\Config\SYSTEMHKEY_USERS\.DEFAULT%SystemRoot%\System32\Config\DEFAULTHKEY_USERS\[User SID](HKEY_CURRENT_USER)%UserProfile%\NTUSER.DATHKEY_USERS\[User SID]_Classes(HKEY_CURRENT_USER\Software\Classes) (part ofHKEY_CLASSES_ROOT)-
- w2k w2003 wxp
%UserProfile%\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat(path is localized)- Vista w7 w8
%UserProfile%\AppData\Local\Microsoft\Windows\UsrClass.dat(path is not localized)