Редактор реестра windows 10 что это

Зачем нужен редактор реестра, как редактировать, импорт и экспорт.

В операционных системах существует реестр, с помощью которого можно отредактировать системные настройки. В этой статье мы разберем, что это за реестр, зачем он нужен, как его открыть и что в нем можно настроить.

Что такое реестр

Представляет собой единую базу данных, хранящую информацию о подключенных устройствах, системных настройках, параметрах подключений и т.д. Операционная система обращается к нему во время выполнения любых операций.

Соответственно, со временем БД разрастается, в ней появляются ошибки или пустые записи, что приводит к низкому быстродействию компьютера, появлению ошибок и другим проблемам. Для исправления ситуации используются специальные утилиты – «редакторы реестра».

Зачем нужен редактор реестра

Утилита, которая позволяет редактировать и править ключи, доступна в любой версии ОС семейства Windows. Она представляет собой системную службу, которая встроена в ОС.

Способы открыть редактор реестра:

  1. Пишем в поиской строке «редактор реестра» – приложение высветится как предложенное.
  2. Вместо «редактор реестра» в поиске можно ввести значение «regedit».
  3. Нажимаем сочетание клавиш «Win» + «R» и вводим команду regedit.

редактор реестра

Скриншот №1. Команда regedit.

Важно! Для запуска программы требуются права локального администратора.

В результате откроется рабочая область.

Область редактор реестра

Скриншот №2. Реестр Windows.

Он состоит из пяти главных веток.

  1. HKEY_CLASSES_ROOT содержит информацию, необходимую для работы Windows с типами файлов. Например, пользователь открывает текстовый документ на компьютер. ОС обращается к данной ветке, находит приложение, которая обрабатывает расширение файла и запускает его.
  2. HKEY_CURRENT_USER хранит информацию о пользователе, который в данный момент работает на ПК. Раздел включает в себя параметры рабочего стола, директории, системные настройки и т.д.
  3. HKEY_LOCAL_MACHINE используется для хранения информации о настройках персонального компьютера, в том числе и при замене комплектующих.
  4. HKEY_USERS предназначен для хранения информации о профилях, которые зарегистрированы в операционной системе. Ветка с чем-то схожа с HKEY_CURRENT_USER по хранимым данным.
  5. HKEY_CURRENT_CONFIG используется во время запуска операционной системы. В нем содержится информация об аппаратных компонентах ПК.

В каждой ветке содержатся дополнительные подразделы и пункты.

Как редактировать реестр

Чтобы внести изменения, переходим к соответствующему разделу. На скриншоте ниже представлен пример.

Как редактировать реестр

Скриншот №3. Ветка «Colors».

Нажимаем на пункте Background дважды левую кнопку мыши, чтобы открыть рабочее поле и изменить цвет фона.

Изменение строкового параметра

Скриншот №4. Область Background в реестре.

Параметр принимает значение, заданное числами.

Важно! Прежде, чем вносить изменения в реестр, обязательно сделайте резервную копию.

Мнение автора: Реестр – мощный инструмент управления операционной системы. С его помощью любую ОС пользователь настраивает под себя. Но необходимо понимать, за что отвечает каждый ключ, и какие значения допустимы. Если таких знаний нет – то не редактируем, а оставляем все как есть, либо обращаемся к специалистам. В противном случае могут появиться проблемы и ошибки вплоть до краха системы Windows. В результате ОС придется переустанавливать.

Как сделать резервную копию реестра

Обязательно необходимо сделать бэкап реестра перед внесением правок. Процедура выполняется двумя способами: при помощи функции редактора или с использованием точки восстановления.

При помощи функции «Редактора реестра»

Открываем реестр через команду regedit, нажимаем меню «Файл», далее «Экспорт».

Экспорт реестра

Скриншот №5. Меню «Файл».

Откроется диалоговое окно, в котором указываем наименование резервной копии и выбираем пункт «Весь реестр».

Весь реестр

Скриншот №6. Создать резервную копию.

Копия создается в течение 2-3 минут.

Если необходимо восстановить реестр, то в меню «Файл» выбираем раздел «Импорт». Указываем путь к бэкапу, нажимаем открыть. Процесс займет не более 3-4 минут.

Точка восстановления

Второй метод – создание точки отката. Она сохраняет состояние операционной системы на текущий момент, после чего пользователь всегда может вернуться к ней.

Важно! При создании точки восстановления все произведенные после изменения удаляются.

Как создать точку отката? Нажимаем «Пуск», вводим строку «Восстановление», выбираем пункт, отмеченный красным на скриншоте.

Создать точку восстановления

Скриншот №7. Выбор раздела «Восстановление».

Откроется новое меню.

Свойства системы создать бэкап

Скриншот №8. Свойства системы.

Нажимаем кнопку «Создать». Процесс займет 3-5 минут, после чего точка отката появится в списке. В нее входит копия реестра.

Редактирование реестра с помощью сторонних утилит

Редактировать реестр можно при помощи утилит от сторонних разработчиков. Рассмотрим 3 варианта с кратким описанием каждой программы.

Registry Workshop

Первая альтернатива – утилита Registry WorkShop.

На официальном сайте разработчиков Torchsoft доступны варианты загрузок на разных языках.

Registry Workshop

Скриншот №9. Ссылки для скачивания.

Выбираем вариант для русскоязычной аудитории, скачиваем его и устанавливаем.

Важно! Утилита поставляется как условно-бесплатная. Пользователю предоставляется 40 дней на тестирование, после чего необходимо приобрести полную версию либо удалить ПО.

Внешний вид напоминает стандартный реестр, но с дополнительными функциями.

Registry Workshop редактор

Скриншот №10. Главное окно.

Преимущества программы

  • Поиск осуществляется в 3-4 раза быстрее по сравнению со встроенным редактором реестра. Результат выдается по всем строкам, а не по одной.
  • Утилита имеет функцию отмены последних действий пользователя с учетом нескольких шагов. То есть в любой момент времени нажимаем кнопку «Отмена», и система возвращается в предыдущее состояние.
  • Доступна опция Drag’n’Drop.
  • В ПО встроены дополнительные функции: очистка реестра, оптимизация, сравнение веток по отдельности и т.д.

Registry WorkShop интегрируется с операционной системой и становится доступной в контекстном меню.

Registry Commander

Второе программное обеспечение, обладающие расширенным функционалом – Registry Commander.

Registry Commander

Скриншот №11. Сайт загрузки.

Важно! Утилита поставляется в портативном виде, т.е. не надо устанавливать. Скачали архив, распаковали и запустили.

Откроется рабочее окно, которое схоже с классическим «Проводником» Windows.

Registry Commander редактор

Скриншот №12. Интерфейс.

Утилита копирует или изменяет данные в любой ветке реестра за две минуты. Доступна функция резервирования и восстановления.

Недостатки: утилита перестала обновляться после 25 февраля 2015 года, но по-прежнему удобна в использовании.

Reg Organizer

Reg Organizer

Скриншот №13. Интерфейс.

Reg Organizer – это комбинированное решение, в состав которого входит редактор реестра. В программе доступно множество расширенных функций. Я опишу основные.

  1. Автоматическая очистка реестра.
  2. Сохранение резервной копии.
  3. Поиск по внутреннему алгоритму, что увеличивает скорость операций по сравнению со стандартным редактором.
  4. Опция отмены последних действий пользователя.
  5. Отслеживание изменений в режиме реального времени. Если появляется новый ключ или сторонняя программа вносит изменения, утилита оповещает о данном действии.
  6. Оптимизация и архивация.

Программа поставляется условно-бесплатно. В течение 30 дней пользователь работает без ограничений, а по истечении пробного периода обязан приобрести лицензию либо удалить программу.

Заключение

Публикация рассказала о реестре Windows и о том, как его редактировать. Также рассмотрены утилиты сторонних производителей, которые предоставляют расширенный функционал в сравнении со стандартным редактором.

Post Views: 1 870

Содержание

  • Запуск Редактора реестра в Windows 10
    • Способ 1: Меню «Пуск»
    • Способ 2: Окно «Выполнить»
    • Способ 3: Директория Windows
    • Способ 4: «Командная строка»/PowerShell
  • Вопросы и ответы

Как открыть Редактор реестра в Windows 10

Редактор реестра в Windows традиционно используется для решения множества проблем, возникающих в работе стандартных компонентов этой ОС или же сторонних программных решений. Здесь же любой пользователь может быстро изменить значение практически любых параметров системы, недоступных для редактирования через графические интерфейсы типа «Панели управления» и «Параметров». Прежде чем выполнить желаемое действие, связанное с внесением изменений в работу реестра, его необходимо открыть, и сделать это можно по-разному.

Первым делом хочется напомнить о том, что реестр — очень важный инструмент функционирования всей операционной системы. Одно неправильное действие может вывести из строя в лучшем случае отдельный компонент или программу, в худшем — привести Виндовс в нерабочее состояние, требующее восстановления. Поэтому будьте уверены в том, что вы делаете и не забывайте создавать резервную копию (экспорт), чтобы в случае непредвиденных ситуаций ей всегда можно было воспользоваться. А сделать это можно так:

  1. Открыв окно редактора, выберите «Файл» > «Экспорт».
  2. Экспорт Редактора реестра в Windows 10

  3. Впишите имя файла, укажите то, что хотите экспортировать (обычно лучше делать копию всего реестра) и нажмите «Сохранить».
  4. Параметры экспорта Редактора реестра в Windows 10

Теперь рассмотрим непосредственно варианты запуска нужного нам элемента. Разные способы помогут запустить реестр так, как это будет удобно именно вам. Кроме того, они могут быть актуальны при вирусной активности, когда не получается воспользоваться каким-то одним из-за блокировки доступа вредоносной программой.

Способ 1: Меню «Пуск»

Уже давно «Пуск» выполняет роль поисковика по всей Windows, поэтому нам проще всего осуществить открытие инструмента, введя нужный запрос.

  1. Открываем «Пуск» и начинаем набирать «реестр» (без кавычек). Обычно уже после двух букв вы увидите нужный результат. Можно сразу же запустить приложение, нажав на лучшее совпадение.
  2. Обычный запуск Редактора реестра через Пуск в Windows 10

  3. Панель справа сразу же предоставляет дополнительные возможности, из которых наиболее полезными для вас могут стать «Запуск от имени администратора» или его закрепление.
  4. Параметры запуска Редактора реестра через Пуск в Windows 10

  5. То же самое будет, если начать набирать наименование инструмента на английском языке и без кавычек: «regedit».
  6. Запуск Редактора реестра через Пуск в Windows 10

Способ 2: Окно «Выполнить»

Еще один быстрый и простой способ запустить реестр — воспользоваться окном «Выполнить».

  1. Нажмите сочетание клавиш Win + R или кликните по «Пуск» правой кнопкой мыши, где выберите пункт «Выполнить».
  2. Запуск окна Выполнить через альтернативное меню Пуск в Windows 10

  3. В пустое поле впишите regedit и нажмите «ОК» для запуска редактора с полномочиями администратора.
  4. Запуск Редактора реестра через окно Выполнить в Windows 10

Способ 3: Директория Windows

Редактор реестра — исполняемое приложение, которое хранится в системной папке операционной системы. Оттуда его также можно без труда запустить.

  1. Откройте Проводник и перейдите по пути C:Windows.
  2. Путь к файлу Редактора реестра в Windows 10

  3. Из списка файлов найдите «regedit» либо «regedit.exe» (наличие расширения после точки зависит от того, была ли включена такая функция в вашей системе).
  4. Исполняемое приложение Редактор реестра в Windows 10

  5. Запустите его двойным нажатием левой кнопкой мыши. Если нужны права администратора — щелкните по файлу правой кнопкой мыши и выберите соответствующий пункт.
  6. Запуск Редактора реестра с правами администратора в Windows 10

Способ 4: «Командная строка»/PowerShell

Консоль Windows позволяет быстро запускать реестр — достаточно вписать туда всего одно слово. Аналогичное действие можно совершать и через PowerShell — кому как удобнее.

  1. Запустите «Командную строку», вписав в «Пуск» слово «cmd» без кавычек или начав набирать ее название. PowerShell запускается так же — набором своего имени.
  2. Запуск Командной строки и PowerShell через Пуск в Windows 10

    Lumpics.ru

  3. Впишите regedit и нажмите Enter. Откроется Редактор реестра.
  4. Запуск Редактора реестра через Командную строку и PowerShell в Windows 10

Мы рассмотрели наиболее эффективные и удобные способы того, как запускается Редактор реестра. Обязательно запоминайте те действия, которые совершаете с ним, чтобы при возникновении неполадок была возможность восстановить предыдущие значения. А еще лучше делайте экспорт, если собираетесь внести важные изменения в его структуру.

Еще статьи по данной теме:

Помогла ли Вам статья?

Windows Registry

Registry Editor icon.png
Regstry Editor.png

Registry Editor, the user interface for the registry, in Windows 11

Developer(s) Microsoft
Initial release April 6, 1992; 30 years ago with Windows 3.1
Operating system Microsoft Windows
Platform IA-32, x86-64 and ARM (and historically DEC Alpha, Itanium, MIPS, and PowerPC)
Included with Microsoft Windows
Type Hierarchical database
Website docs.microsoft.com/en-us/windows/desktop/SysInfo/registry Edit this on Wikidata

The Windows Registry is a hierarchical database that stores low-level settings for the Microsoft Windows operating system and for applications that opt to use the registry. The kernel, device drivers, services, Security Accounts Manager, and user interfaces can all use the registry. The registry also allows access to counters for profiling system performance.

In other words, the registry or Windows Registry contains information, settings, options, and other values for programs and hardware installed on all versions of Microsoft Windows operating systems. For example, when a program is installed, a new subkey containing settings such as a program’s location, its version, and how to start the program, are all added to the Windows Registry.

When introduced with Windows 3.1, the Windows Registry primarily stored configuration information for COM-based components. Windows 95 and Windows NT extended its use to rationalize and centralize the information in the profusion of INI files, which held the configurations for individual programs, and were stored at various locations.[1][2] It is not a requirement for Windows applications to use the Windows Registry. For example, .NET Framework applications use XML files for configuration, while portable applications usually keep their configuration files with their executables.

Rationale[edit]

Prior to the Windows Registry, .INI files stored each program’s settings as a text file or binary file, often located in a shared location that did not provide user-specific settings in a multi-user scenario. By contrast, the Windows Registry stores all application settings in one logical repository (but a number of discrete files) and in a standardized form. According to Microsoft, this offers several advantages over .INI files.[2][3] Since file parsing is done much more efficiently with a binary format, it may be read from or written to more quickly than a text INI file. Furthermore, strongly typed data can be stored in the registry, as opposed to the text information stored in .INI files. This is a benefit when editing keys manually using regedit.exe, the built-in Windows Registry Editor. Because user-based registry settings are loaded from a user-specific path rather than from a read-only system location, the registry allows multiple users to share the same machine, and also allows programs to work for less privileged users. Backup and restoration is also simplified as the registry can be accessed over a network connection for remote management/support, including from scripts, using the standard set of APIs, as long as the Remote Registry service is running and firewall rules permit this.

Because the registry is a database, it offers improved system integrity with features such as atomic updates. If two processes attempt to update the same registry value at the same time, one process’s change will precede the other’s and the overall consistency of the data will be maintained. Where changes are made to .INI files, such race conditions can result in inconsistent data that does not match either attempted update. Windows Vista and later operating systems provide transactional updates to the registry by means of the Kernel Transaction Manager, extending the atomicity guarantees across multiple key and/or value changes, with traditional commit–abort semantics. (Note however that NTFS provides such support for the file system as well, so the same guarantees could, in theory, be obtained with traditional configuration files.)

Structure[edit]

Keys and values[edit]

The registry contains two basic elements: keys and values. Registry keys are container objects similar to folders. Registry values are non-container objects similar to files. Keys may contain values and subkeys. Keys are referenced with a syntax similar to Windows’ path names, using backslashes to indicate levels of hierarchy. Keys must have a case insensitive name without backslashes.

The hierarchy of registry keys can only be accessed from a known root key handle (which is anonymous but whose effective value is a constant numeric handle) that is mapped to the content of a registry key preloaded by the kernel from a stored «hive», or to the content of a subkey within another root key, or mapped to a registered service or DLL that provides access to its contained subkeys and values.

E.g. HKEY_LOCAL_MACHINESoftwareMicrosoftWindows refers to the subkey «Windows» of the subkey «Microsoft» of the subkey «Software» of the HKEY_LOCAL_MACHINE root key.

There are seven predefined root keys, traditionally named according to their constant handles defined in the Win32 API, or by synonymous abbreviations (depending on applications):[4]

  • HKEY_LOCAL_MACHINE or HKLM
  • HKEY_CURRENT_CONFIG or HKCC
  • HKEY_CLASSES_ROOT or HKCR
  • HKEY_CURRENT_USER or HKCU
  • HKEY_USERS or HKU
  • HKEY_PERFORMANCE_DATA (only in Windows NT, but invisible in the Windows Registry Editor)[5]
  • HKEY_DYN_DATA (only in Windows 9x, and visible in the Windows Registry Editor)

Like other files and services in Windows, all registry keys may be restricted by access control lists (ACLs), depending on user privileges, or on security tokens acquired by applications, or on system security policies enforced by the system (these restrictions may be predefined by the system itself, and configured by local system administrators or by domain administrators). Different users, programs, services or remote systems may only see some parts of the hierarchy or distinct hierarchies from the same root keys.

Registry values are name/data pairs stored within keys. Registry values are referenced separately from registry keys. Each registry value stored in a registry key has a unique name whose letter case is not significant. The Windows API functions that query and manipulate registry values take value names separately from the key path and/or handle that identifies the parent key. Registry values may contain backslashes in their names, but doing so makes them difficult to distinguish from their key paths when using some legacy Windows Registry API functions (whose usage is deprecated in Win32).

The terminology is somewhat misleading, as each registry key is similar to an associative array, where standard terminology would refer to the name part of each registry value as a «key». The terms are a holdout from the 16-bit registry in Windows 3, in which registry keys could not contain arbitrary name/data pairs, but rather contained only one unnamed value (which had to be a string). In this sense, the Windows 3 registry was like a single associative array, in which the keys (in the sense of both ‘registry key’ and ‘associative array key’) formed a hierarchy, and the registry values were all strings. When the 32-bit registry was created, so was the additional capability of creating multiple named values per key, and the meanings of the names were somewhat distorted.[6] For compatibility with the previous behavior, each registry key may have a «default» value, whose name is the empty string.

Each value can store arbitrary data with variable length and encoding, but which is associated with a symbolic type (defined as a numeric constant) defining how to parse this data. The standard types are:[7]

List of standard registry value types

Type ID Symbolic type name Meaning and encoding of the data stored in the registry value
0 REG_NONE No type (the stored value, if any)
1 REG_SZ A string value, normally stored and exposed in UTF-16LE (when using the Unicode version of Win32 API functions), usually terminated by a NUL character
2 REG_EXPAND_SZ An «expandable» string value that can contain environment variables, normally stored and exposed in UTF-16LE, usually terminated by a NUL character
3 REG_BINARY Binary data (any arbitrary data)
4 REG_DWORD / REG_DWORD_LITTLE_ENDIAN A DWORD value, a 32-bit unsigned integer (numbers between 0 and 4,294,967,295 [232 – 1]) (little-endian)
5 REG_DWORD_BIG_ENDIAN A DWORD value, a 32-bit unsigned integer (numbers between 0 and 4,294,967,295 [232 – 1]) (big-endian)
6 REG_LINK A symbolic link (UNICODE) to another registry key, specifying a root key and the path to the target key
7 REG_MULTI_SZ A multi-string value, which is an ordered list of non-empty strings, normally stored and exposed in Unicode, each one terminated by a null character, the list being normally terminated by a second null character.[8]
8 REG_RESOURCE_LIST A resource list (used by the Plug-n-Play hardware enumeration and configuration)
9 REG_FULL_RESOURCE_DESCRIPTOR A resource descriptor (used by the Plug-n-Play hardware enumeration and configuration)
10 REG_RESOURCE_REQUIREMENTS_LIST A resource requirements list (used by the Plug-n-Play hardware enumeration and configuration)
11 REG_QWORD / REG_QWORD_LITTLE_ENDIAN A QWORD value, a 64-bit integer (either big- or little-endian, or unspecified) (introduced in Windows 2000)[9]

Root keys[edit]

The keys at the root level of the hierarchical database are generally named by their Windows API definitions, which all begin «HKEY».[2] They are frequently abbreviated to a three- or four-letter short name starting with «HK» (e.g. HKCU and HKLM). Technically, they are predefined handles (with known constant values) to specific keys that are either maintained in memory, or stored in hive files stored in the local filesystem and loaded by the system kernel at boot time and then shared (with various access rights) between all processes running on the local system, or loaded and mapped in all processes started in a user session when the user logs on the system.

The HKEY_LOCAL_MACHINE (local machine-specific configuration data) and HKEY_CURRENT_USER (user-specific configuration data) nodes have a similar structure to each other; user applications typically look up their settings by first checking for them in «HKEY_CURRENT_USERSoftwareVendor’s nameApplication’s nameVersionSetting name», and if the setting is not found, look instead in the same location under the HKEY_LOCAL_MACHINE key[citation needed]. However, the converse may apply for administrator-enforced policy settings where HKLM may take precedence over HKCU. The Windows Logo Program has specific requirements for where different types of user data may be stored, and that the concept of least privilege be followed so that administrator-level access is not required to use an application.[a][10]

HKEY_LOCAL_MACHINE (HKLM)[edit]

Abbreviated HKLM, HKEY_LOCAL_MACHINE stores settings that are specific to the local computer.[11]

The key located by HKLM is actually not stored on disk, but maintained in memory by the system kernel in order to map all the other subkeys. Applications cannot create any additional subkeys. On Windows NT, this key contains four subkeys, «SAM», «SECURITY», «SYSTEM», and «SOFTWARE», that are loaded at boot time within their respective files located in the %SystemRoot%System32config folder. A fifth subkey, «HARDWARE», is volatile and is created dynamically, and as such is not stored in a file (it exposes a view of all the currently detected Plug-and-Play devices). On Windows Vista and above, a sixth and seventh subkey, «COMPONENTS» and «BCD», are mapped in memory by the kernel on-demand and loaded from %SystemRoot%system32configCOMPONENTS or from boot configuration data, bootBCD on the system partition.

  • The «HKLMSAM» key usually appears as empty for most users (unless they are granted access by administrators of the local system or administrators of domains managing the local system). It is used to reference all «Security Accounts Manager» (SAM) databases for all domains into which the local system has been administratively authorized or configured (including the local domain of the running system, whose SAM database is stored in a subkey also named «SAM»: other subkeys will be created as needed, one for each supplementary domain). Each SAM database contains all builtin accounts (mostly group aliases) and configured accounts (users, groups and their aliases, including guest accounts and administrator accounts) created and configured on the respective domain, for each account in that domain, it notably contains the user name which can be used to log on that domain, the internal unique user identifier in the domain, a cryptographic hash of each user’s password for each enabled authentication protocol, the location of storage of their user registry hive, various status flags (for example if the account can be enumerated and be visible in the logon prompt screen), and the list of domains (including the local domain) into which the account was configured.
  • The «HKLMSECURITY» key usually appears empty for most users (unless they are granted access by users with administrative privileges) and is linked to the Security database of the domain into which the current user is logged on (if the user is logged on the local system domain, this key will be linked to the registry hive stored by the local machine and managed by local system administrators or by the builtin «System» account and Windows installers). The kernel will access it to read and enforce the security policy applicable to the current user and all applications or operations executed by this user. It also contains a «SAM» subkey which is dynamically linked to the SAM database of the domain onto which the current user is logged on.
  • The «HKLMSYSTEM» key is normally only writable by users with administrative privileges on the local system. It contains information about the Windows system setup, data for the secure random number generator (RNG), the list of currently mounted devices containing a filesystem, several numbered «HKLMSYSTEMControl Sets» containing alternative configurations for system hardware drivers and services running on the local system (including the currently used one and a backup), a «HKLMSYSTEMSelect» subkey containing the status of these Control Sets, and a «HKLMSYSTEMCurrentControlSet» which is dynamically linked at boot time to the Control Set which is currently used on the local system. Each configured Control Set contains:
    • an «Enum» subkey enumerating all known Plug-and-Play devices and associating them with installed system drivers (and storing the device-specific configurations of these drivers),
    • a «Services» subkey listing all installed system drivers (with non device-specific configuration, and the enumeration of devices for which they are instantiated) and all programs running as services (how and when they can be automatically started),
    • a «Control» subkey organizing the various hardware drivers and programs running as services and all other system-wide configuration,
    • a «Hardware Profiles» subkey enumerating the various profiles that have been tuned (each one with «System» or «Software» settings used to modify the default profile, either in system drivers and services or in the applications) as well as the «Hardware ProfilesCurrent» subkey which is dynamically linked to one of these profiles.
  • The «HKLMSOFTWARE» subkey contains software and Windows settings (in the default hardware profile). It is mostly modified by application and system installers. It is organized by software vendor (with a subkey for each), but also contains a «Windows» subkey for some settings of the Windows user interface, a «Classes» subkey containing all registered associations from file extensions, MIME types, Object Classes IDs and interfaces IDs (for OLE, COM/DCOM and ActiveX), to the installed applications or DLLs that may be handling these types on the local machine (however these associations are configurable for each user, see below), and a «Policies» subkey (also organized by vendor) for enforcing general usage policies on applications and system services (including the central certificates store used for authenticating, authorizing or disallowing remote systems or services running outside the local network domain).
  • The «HKLMSOFTWAREWow6432Node» key is used by 32-bit applications on a 64-bit Windows OS, and is equivalent to but separate from «HKLMSOFTWARE». The key path is transparently presented to 32-bit applications by WoW64 as HKLMSOFTWARE[12] (in a similar way that 32-bit applications see %SystemRoot%Syswow64 as %SystemRoot%System32)

HKEY_CLASSES_ROOT (HKCR)[edit]

Abbreviated HKCR, HKEY_CLASSES_ROOT contains information about registered applications, such as file associations and OLE Object Class IDs, tying them to the applications used to handle these items. On Windows 2000 and above, HKCR is a compilation of user-based HKCUSoftwareClasses and machine-based HKLMSoftwareClasses. If a given value exists in both of the subkeys above, the one in HKCUSoftwareClasses takes precedence.[13] The design allows for either machine- or user-specific registration of COM objects.

HKEY_USERS (HKU)[edit]

Abbreviated HKU, HKEY_USERS contains subkeys corresponding to the HKEY_CURRENT_USER keys for each user profile actively loaded on the machine, though user hives are usually only loaded for currently logged-in users.

HKEY_CURRENT_USER (HKCU)[edit]

Abbreviated HKCU, HKEY_CURRENT_USER stores settings that are specific to the currently logged-in user.[14] The HKEY_CURRENT_USER key is a link to the subkey of HKEY_USERS that corresponds to the user; the same information is accessible in both locations. The specific subkey referenced is «(HKU)(SID)…» where (SID) corresponds to the Windows SID; if the «(HKCU)» key has the following suffix «(HKCU)SoftwareClasses…» then it corresponds to «(HKU)(SID)_CLASSES…» i.e. the suffix has the string «_CLASSES» is appended to the (SID).
On Windows NT systems, each user’s settings are stored in their own files called NTUSER.DAT and USRCLASS.DAT inside their own Documents and Settings subfolder (or their own Users sub folder in Windows Vista and above). Settings in this hive follow users with a roaming profile from machine to machine.

HKEY_PERFORMANCE_DATA[edit]

This key provides runtime information into performance data provided by either the NT kernel itself, or running system drivers, programs and services that provide performance data. This key is not stored in any hive and not displayed in the Registry Editor, but it is visible through the registry functions in the Windows API, or in a simplified view via the Performance tab of the Task Manager (only for a few performance data on the local system) or via more advanced control panels (such as the Performances Monitor or the Performances Analyzer which allows collecting and logging these data, including from remote systems).

HKEY_DYN_DATA[edit]

This key is used only on Windows 95, Windows 98 and Windows ME.[15] It contains information about hardware devices, including Plug and Play and network performance statistics. The information in this hive is also not stored on the hard drive. The Plug and Play information is gathered and configured at startup and is stored in memory.[16]

Hives[edit]

Even though the registry presents itself as an integrated hierarchical database, branches of the registry are actually stored in a number of disk files called hives.[17] (The word hive constitutes an in-joke.)[18]

Some hives are volatile and are not stored on disk at all. An example of this is the hive of the branch starting at HKLMHARDWARE. This hive records information about system hardware and is created each time the system boots and performs hardware detection.

Individual settings for users on a system are stored in a hive (disk file) per user. During user login, the system loads the user hive under the HKEY_USERS key and sets the HKCU (HKEY_CURRENT_USER) symbolic reference to point to the current user. This allows applications to store/retrieve settings for the current user implicitly under the HKCU key.

Not all hives are loaded at any one time. At boot time, only a minimal set of hives are loaded, and after that, hives are loaded as the operating system initializes and as users log in or whenever a hive is explicitly loaded by an application.

File locations[edit]

The registry is physically stored in several files, which are generally obfuscated from the user-mode APIs used to manipulate the data inside the registry. Depending upon the version of Windows, there will be different files and different locations for these files, but they are all on the local machine. The location for system registry files in Windows NT is %SystemRoot%System32Config; the user-specific HKEY_CURRENT_USER user registry hive is stored in Ntuser.dat inside the user profile. There is one of these per user; if a user has a roaming profile, then this file will be copied to and from a server at logout and login respectively. A second user-specific registry file named UsrClass.dat contains COM registry entries and does not roam by default.

Windows NT[edit]

Windows NT systems store the registry in a binary file format which can be exported, loaded and unloaded by the Registry Editor in these operating systems. The following system registry files are stored in %SystemRoot%System32Config:

  • Sam – HKEY_LOCAL_MACHINESAM
  • Security – HKEY_LOCAL_MACHINESECURITY
  • Software – HKEY_LOCAL_MACHINESOFTWARE
  • System – HKEY_LOCAL_MACHINESYSTEM
  • Default – HKEY_USERS.DEFAULT
  • Userdiff – Not associated with a hive. Used only when upgrading operating systems.[19]

The following file is stored in each user’s profile folder:

  • %USERPROFILE%Ntuser.dat – HKEY_USERS<User SID> (linked to by HKEY_CURRENT_USER)

For Windows 2000, Server 2003 and Windows XP, the following additional user-specific file is used for file associations and COM information:

  • %USERPROFILE%Local SettingsApplication DataMicrosoftWindowsUsrclass.dat (path is localized) – HKEY_USERS<User SID>_Classes (HKEY_CURRENT_USERSoftwareClasses)

For Windows Vista and later, the path was changed to:

  • %USERPROFILE%AppDataLocalMicrosoftWindowsUsrclass.dat (path is not localized) alias %LocalAppData%MicrosoftWindowsUsrclass.dat – HKEY_USERS<User SID>_Classes (HKEY_CURRENT_USERSoftwareClasses)

Windows 2000 keeps an alternate copy of the registry hives (.ALT) and attempts to switch to it when corruption is detected.[20] Windows XP and Windows Server 2003 do not maintain a System.alt hive because NTLDR on those versions of Windows can process the System.log file to bring up to date a System hive that has become inconsistent during a shutdown or crash. In addition, the %SystemRoot%Repair folder contains a copy of the system’s registry hives that were created after installation and the first successful startup of Windows.

Each registry data file has an associated file with a «.log» extension that acts as a transaction log that is used to ensure that any interrupted updates can be completed upon next startup.[21] Internally, Registry files are split into 4 kB «bins» that contain collections of «cells».[21]

Windows 9x[edit]

The registry files are stored in the %WINDIR% directory under the names USER.DAT and SYSTEM.DAT with the addition of CLASSES.DAT in Windows ME. Also, each user profile (if profiles are enabled) has its own USER.DAT file which is located in the user’s profile directory in %WINDIR%Profiles<Username>.

Windows 3.11[edit]

The only registry file is called REG.DAT and it is stored in the %WINDIR% directory.

Windows 10 Mobile[edit]

Note: To access the registry files, the Phone needs to be set in a special mode using either: 

  • WpInternals ( Put the mobile device into flash mode. )
  • InterOp Tools ( mount the MainOS Partition with MTP. )

If any of above Methods worked — The Device Registry Files can be found in the following location:

 {Phone}EFIESPWindowsSystem32config

Note: InterOp Tools also includes a registry editor.

Editing[edit]

Registry editors[edit]

The registry contains important configuration information for the operating system, for installed applications as well as individual settings for each user and application. A careless change to the operating system configuration in the registry could cause irreversible damage, so it is usually only installer programs which perform changes to the registry database during installation/configuration and removal. If a user wants to edit the registry manually, Microsoft recommends that a backup of the registry be performed before the change.[22] When a program is removed from control panel, it may not be completely removed and, in case of errors or glitches caused by references to missing programs, the user might have to manually check inside directories such as program files. After this, the user might need to manually remove any reference to the uninstalled program in the registry. This is usually done by using RegEdit.exe.[23] Editing the registry is sometimes necessary when working around Windows-specific issues e.g. problems when logging onto a domain can be resolved by editing the registry.[24]

Windows Registry can be edited manually using programs such as RegEdit.exe, although these tools do not expose some of the registry’s metadata such as the last modified date.

The registry editor for the 3.1/95 series of operating systems is RegEdit.exe and for Windows NT it is RegEdt32.exe; the functionalities are merged in Windows XP. Optional and/or third-party tools similar to RegEdit.exe are available for many Windows CE versions.

Registry Editor allows users to perform the following functions:

  • Creating, manipulating, renaming[25] and deleting registry keys, subkeys, values and value data
  • Importing and exporting .REG files, exporting data in the binary hive format
  • Loading, manipulating and unloading registry hive format files (Windows NT systems only)
  • Setting permissions based on ACLs (Windows NT systems only)
  • Bookmarking user-selected registry keys as Favorites
  • Finding particular strings in key names, value names and value data
  • Remotely editing the registry on another networked computer

.REG files[edit]

.REG files (also known as Registration entries) are text-based human-readable files for exporting and importing portions of the registry using an INI-based syntax. On Windows 2000 and later, they contain the string Windows Registry Editor Version 5.00 at the beginning and are Unicode-based. On Windows 9x and NT 4.0 systems, they contain the string REGEDIT4 and are ANSI-based.[26] Windows 9x format .REG files are compatible with Windows 2000 and later. The Registry Editor on Windows on these systems also supports exporting .REG files in Windows 9x/NT format. Data is stored in .REG files using the following syntax:[26]

[<Hive name><Key name><Subkey name>]
"Value name"=<Value type>:<Value data>

The Default Value of a key can be edited by using «@» instead of «Value Name»:

[<Hive name><Key name><Subkey name>]
@=<Value type>:<Value data>

String values do not require a <Value type> (see example), but backslashes (») need to be written as a double-backslash (‘\’), and quotes (‘»‘) as backslash-quote (‘»‘).

For example, to add the values «Value A», «Value B», «Value C», «Value D», «Value E», «Value F», «Value G», «Value H», «Value I», «Value J», «Value K», «Value L», and «Value M» to the HKLMSOFTWAREFoobar key:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREFoobar]
"Value A"="<String value data with escape characters>"
"Value B"=hex:<Binary data (as comma-delimited list of hexadecimal values)>
"Value C"=dword:<DWORD value integer>
"Value D"=hex(0):<REG_NONE (as comma-delimited list of hexadecimal values)>
"Value E"=hex(1):<REG_SZ (as comma-delimited list of hexadecimal values representing a UTF-16LE NUL-terminated string)>
"Value F"=hex(2):<Expandable string value data (as comma-delimited list of hexadecimal values representing a UTF-16LE NUL-terminated string)>
"Value G"=hex(3):<Binary data (as comma-delimited list of hexadecimal values)> ; equal to "Value B"
"Value H"=hex(4):<DWORD value (as comma-delimited list of 4 hexadecimal values, in little endian byte order)>
"Value I"=hex(5):<DWORD value (as comma-delimited list of 4 hexadecimal values, in big endian byte order)>
"Value J"=hex(7):<Multi-string value data (as comma-delimited list of hexadecimal values representing UTF-16LE NUL-terminated strings)>
"Value K"=hex(8):<REG_RESOURCE_LIST (as comma-delimited list of hexadecimal values)>
"Value L"=hex(a):<REG_RESOURCE_REQUIREMENTS_LIST (as comma-delimited list of hexadecimal values)>
"Value M"=hex(b):<QWORD value (as comma-delimited list of 8 hexadecimal values, in little endian byte order)>

Data from .REG files can be added/merged with the registry by double-clicking these files or using the /s switch in the command line. REG files can also be used to remove registry data.

To remove a key (and all subkeys, values and data), the key name must be preceded by a minus sign («-«).[26]

For example, to remove the HKLMSOFTWAREFoobar key (and all subkeys, values and data),

[-HKEY_LOCAL_MACHINESOFTWAREFoobar]

To remove a value (and its data), the values to be removed must have a minus sign («-«) after the equal sign («=»).[26]

For example, to remove only the «Value A» and «Value B» values (and their data) from the HKLMSOFTWAREFoobar key:

[HKEY_LOCAL_MACHINESOFTWAREFoobar]
"Value A"=-
"Value B"=-

To remove only the Default value of the key HKLMSOFTWAREFoobar (and its data):

[HKEY_LOCAL_MACHINESOFTWAREFoobar]
@=-

Lines beginning with a semicolon are considered comments:

; This is a comment. This can be placed in any part of a .reg file
[HKEY_LOCAL_MACHINESOFTWAREFoobar]
"Value"="Example string"

Group policies[edit]

Windows group policies can change registry keys for a number of machines or individual users based on policies. When a policy first takes effect for a machine or for an individual user of a machine, the registry settings specified as part of the policy are applied to the machine or user settings.

Windows will also look for updated policies and apply them periodically, typically every 90 minutes.[27]

Through its scope a policy defines which machines and/or users the policy is to be applied to. Whether a machine or user is within the scope of a policy or not is defined by a set of rules which can filter on the location of the machine or user account in organizational directory, specific users or machine accounts or security groups. More advanced rules can be set up using Windows Management Instrumentation expressions. Such rules can filter on properties such as computer vendor name, CPU architecture, installed software, or networks connected to.

For instance, the administrator can create a policy with one set of registry settings for machines in the accounting department and policy with another (lock-down) set of registry settings for kiosk terminals in the visitors area. When a machine is moved from one scope to another (e.g. changing its name or moving it to another organizational unit), the correct policy is automatically applied. When a policy is changed it is automatically re-applied to all machines currently in its scope.

The policy is edited through a number of administrative templates which provides a user interface for picking and changing settings. The set of administrative templates is extensible and software packages which support such remote administration can register their own templates.

Command line editing[edit]

reg

Developer(s) Microsoft
Operating system Microsoft Windows
Type Command
License Proprietary commercial software
Website docs.microsoft.com/en-us/windows-server/administration/windows-commands/reg
regini

Developer(s) Microsoft
Operating system Microsoft Windows
Type Command
License Proprietary commercial software
Website docs.microsoft.com/en-us/windows-server/administration/windows-commands/regini

The registry can be manipulated in a number of ways from the command line. The Reg.exe and RegIni.exe utility tools are included in Windows XP and later versions of Windows. Alternative locations for legacy versions of Windows include the Resource Kit CDs or the original Installation CD of Windows.

Also, a .REG file can be imported from the command line with the following command:

RegEdit.exe /s file

The /s means the file will be silent merged to the registry. If the /s parameter is omitted the user will be asked to confirm the operation. In Windows 98, Windows 95 and at least some configurations of Windows XP the /s switch also causes RegEdit.exe to ignore the setting in the registry that allows administrators to disable it. When using the /s switch RegEdit.exe does not return an appropriate return code if the operation fails, unlike Reg.exe which does.

RegEdit.exe /e file

exports the whole registry in V5 format to a UNICODE .REG file, while any of

RegEdit.exe /e file HKEY_CLASSES_ROOT[<key>]
RegEdit.exe /e file HKEY_CURRENT_CONFIG[<key>]
RegEdit.exe /e file HKEY_CURRENT_USER[<key>]
RegEdit.exe /e file HKEY_LOCAL_MACHINE[<key>]
RegEdit.exe /e file HKEY_USERS[<key>]

export the specified (sub)key (which has to be enclosed in quotes if it contains spaces) only.

RegEdit.exe /a file

exports the whole registry in V4 format to an ANSI .REG file.

RegEdit.exe /a file <key>

exports the specified (sub)key (which has to be enclosed in quotes if it contains spaces) only.

It is also possible to use Reg.exe. Here is a sample to display the value of the registry value Version:

Reg.exe QUERY HKLMSoftwareMicrosoftResKit /v Version

Other command line options include a VBScript or JScript together with CScript, WMI or WMIC.exe and Windows PowerShell.

Registry permissions can be manipulated through the command line using RegIni.exe and the SubInACL.exe tool. For example, the permissions on the HKEY_LOCAL_MACHINESOFTWARE key can be displayed using:

SubInACL.exe /keyreg HKEY_LOCAL_MACHINESOFTWARE /display

PowerShell commands and scripts[edit]

Using PowerShell to navigate the registry

Windows PowerShell comes with a registry provider which presents the registry as a location type similar to the file system. The same commands used to manipulate files and directories in the file system can be used to manipulate keys and values of the registry.[28]

Also like the file system, PowerShell uses the concept of a current location which defines the context on which commands by default operate. The Get-ChildItem (also available through the aliases ls, dir or gci) retrieves the child keys of the current location. By using the Set-Location (or the alias cd) command the user can change the current location to another key of the registry.[28] Commands which rename items, remove items, create new items or set content of items or properties can be used to rename keys, remove keys or entire sub-trees or change values.

Through PowerShell scripts files, an administrator can prepare scripts which, when executed, make changes to the registry. Such scripts can be distributed to administrators who can execute them on individual machines. The PowerShell Registry provider supports transactions, i.e. multiple changes to the registry can be bundled into a single atomic transaction. An atomic transaction ensures that either all of the changes are committed to the database, or if the script fails, none of the changes are committed to the database.[28][29]

Programs or scripts[edit]

The registry can be edited through the APIs of the Advanced Windows 32 Base API Library (advapi32.dll).[30] List of registry API functions:

  • RegCloseKey
  • RegConnectRegistry
  • RegCreateKey
  • RegCreateKeyEx
  • RegDeleteKey
  • RegDeleteValue
  • RegEnumKey
  • RegEnumKeyEx
  • RegEnumValue
  • RegFlushKey
  • RegGetKeySecurity
  • RegLoadKey
  • RegNotifyChangeKeyValue
  • RegOpenKey
  • RegOpenKeyEx
  • RegQueryInfoKey
  • RegQueryMultipleValues
  • RegQueryValue
  • RegQueryValueEx
  • RegReplaceKey
  • RegRestoreKey
  • RegSaveKey
  • RegSetKeySecurity
  • RegSetValue
  • RegSetValueEx
  • RegUnLoadKey

Many programming languages offer built-in runtime library functions or classes that wrap the underlying Windows APIs and thereby enable programs to store settings in the registry (e.g. Microsoft.Win32.Registry in VB.NET and C#, or TRegistry in Delphi and Free Pascal). COM-enabled applications like Visual Basic 6 can use the WSH WScript.Shell object. Another way is to use the Windows Resource Kit Tool, Reg.exe by executing it from code,[31] although this is considered poor programming practice.

Similarly, scripting languages such as Perl (with Win32::TieRegistry), Python (with winreg), TCL (which comes bundled with the registry package),[32] Windows Powershell and Windows Scripting Host also enable registry editing from scripts.

Offline editing[edit]

The offreg.dll[33] available from the Windows Driver Kit offers a set of APIs for the creation and manipulation of currently not loaded registry hives similar to those provided by advapi32.dll.

It is also possible to edit the registry (hives) of an offline system from Windows PE or Linux (in the latter case using open source tools).

COM self-registration[edit]

Prior to the introduction of registration-free COM, developers were encouraged to add initialization code to in-process and out-of-process binaries to perform the registry configuration required for that object to work. For in-process binaries such as .DLL and .OCX files, the modules typically exported a function called DllInstall()[34] that could be called by installation programs or invoked manually with utilities like Regsvr32.exe;[35] out-of-process binaries typically support the commandline arguments /Regserver and /Unregserver that created or deleted the required registry settings.[36] COM applications that break because of DLL Hell issues can commonly be repaired with RegSvr32.exe or the /RegServer switch without having to re-invoke installation programs.[37]

Advanced functionality[edit]

Windows exposes APIs that allows user-mode applications to register to receive a notification event if a particular registry key is changed.[38] APIs are also available to allow kernel-mode applications to filter and modify registry calls made by other applications.[39]

Windows also supports remote access to the registry of another computer via the RegConnectRegistry function[40] if the Remote Registry service is running, correctly configured and its network traffic is not firewalled.[41]

Security[edit]

Each key in the registry of Windows NT versions can have an associated security descriptor. The security descriptor contains an access control list (ACL) that describes which user groups or individual users are granted or denied access permissions. The set of registry permissions include 10 rights/permissions which can be explicitly allowed or denied to a user or a group of users.

Registry permissions

Permission Description
Query Value The right to read the registry key value.
Set Value The right to write a new value
Create Subkey The right to create subkeys.
Enumerate Subkeys Allow the enumeration of subkeys.
Notify The right to request change notifications for registry keys or subkeys.
Create Link Reserved by the operating system.
Delete The right to delete a key.
Write DACL The right to modify permissions of the container’s DACL.
Write Owner The right to modify the container’s owner.
Read Control The right to read the DACL.

As with other securable objects in the operating system, individual access control entries (ACE) on the security descriptor can be explicit or inherited from a parent object.[42]

Windows Resource Protection is a feature of Windows Vista and later versions of Windows that uses security to deny Administrators and the system WRITE access to some sensitive keys to protect the integrity of the system from malware and accidental modification.[43]

Special ACEs on the security descriptor can also implement mandatory integrity control for the registry key and subkeys. A process running at a lower integrity level cannot write, change or delete a registry key/value, even if the account of the process has otherwise been granted access through the ACL. For instance, Internet Explorer running in Protected Mode can read medium and low integrity registry keys/values of the currently logged on user, but it can only modify low integrity keys.[44]

Outside security, registry keys cannot be deleted or edited due to other causes. Registry keys containing NUL characters cannot be deleted with standard registry editors and require a special utility for deletion, such as RegDelNull.[45][46]

Backups and recovery[edit]

Different editions of Windows have supported a number of different methods to back up and restore the registry over the years, some of which are now deprecated:

  • System Restore can back up the registry and restore it as long as Windows is bootable, or from the Windows Recovery Environment (starting with Windows Vista).
  • NTBackup can back up the registry as part of the System State and restore it. Automated System Recovery in Windows XP can also restore the registry.
  • On Windows NT, the Last Known Good Configuration option in startup menu relinks the HKLMSYSTEMCurrentControlSet key, which stores hardware and device driver information.
  • Windows 98 and Windows ME include command line (Scanreg.exe) and GUI (Scanregw.exe) registry checker tools to check and fix the integrity of the registry, create up to five automatic regular backups by default and restore them manually or whenever corruption is detected.[47] The registry checker tool backs up the registry, by default, to %Windir%Sysbckup Scanreg.exe can also run from MS-DOS.[48]
  • The Windows 95 CD-ROM included an Emergency Recovery Utility (ERU.exe) and a Configuration Backup Tool (Cfgback.exe) to back up and restore the registry. Additionally Windows 95 backs up the registry to the files system.da0 and user.da0 on every successful boot.
  • Windows NT 4.0 included RDISK.EXE, a utility to back up and restore the entire registry.[49]
  • Windows 2000 Resource Kit contained an unsupported pair of utilities called Regback.exe and RegRest.exe for backup and recovery of the registry.[50]
  • Periodic automatic backups of the registry are now disabled by default on Windows 10 May 2019 Update (version 1903). Microsoft recommends System Restore be used instead.[51]

Policy[edit]

Group policy[edit]

Windows 2000 and later versions of Windows use Group Policy to enforce registry settings through a registry-specific client extension in the Group Policy processing engine.[52] Policy may be applied locally to a single computer using gpedit.msc, or to multiple users and/or computers in a domain using gpmc.msc.

Legacy systems[edit]

With Windows 95, Windows 98, Windows ME and Windows NT 4.0, administrators can use a special file to be merged into the registry, called a policy file (POLICY.POL). The policy file allows administrators to prevent non-administrator users from changing registry settings like, for instance, the security level of Internet Explorer and the desktop background wallpaper. The policy file is primarily used in a business with a large number of computers where the business needs to be protected from rogue or careless users.

The default extension for the policy file is .POL.
The policy file filters the settings it enforces by user and by group (a «group» is a defined set of users). To do that the policy file merges into the registry, preventing users from circumventing it by simply changing back the settings.
The policy file is usually distributed through a LAN, but can be placed on the local computer.

The policy file is created by a free tool by Microsoft that goes by the filename poledit.exe for Windows 95/Windows 98 and with a computer management module for Windows NT. The editor requires administrative permissions to be run on systems that uses permissions.
The editor can also directly change the current registry settings of the local computer and if the remote registry service is installed and started on another computer it can also change the registry on that computer.
The policy editor loads the settings it can change from .ADM files, of which one is included, that contains the settings the Windows shell provides. The .ADM file is plain text and supports easy localisation by allowing all the strings to be stored in one place.

Virtualization[edit]

INI file virtualization[edit]

Windows NT kernels support redirection of INI file-related APIs into a virtual file in a registry location such as HKEY_CURRENT_USER using a feature called «InifileMapping».[53] This functionality was introduced to allow legacy applications written for 16-bit versions of Windows to be able to run under Windows NT platforms on which the System folder is no longer considered an appropriate location for user-specific data or configuration. Non-compliant 32-bit applications can also be redirected in this manner, even though the feature was originally intended for 16-bit applications.

Registry virtualization[edit]

Windows Vista introduced limited registry virtualization, whereby poorly written applications that do not respect the principle of least privilege and instead try to write user data to a read-only system location (such as the HKEY_LOCAL_MACHINE hive), are silently redirected to a more appropriate location, without changing the application itself.

Similarly, application virtualization redirects all of an application’s invalid registry operations to a location such as a file. Used together with file virtualization, this allows applications to run on a machine without being installed on it.

Low integrity processes may also use registry virtualization. For example, Internet Explorer 7 or 8 running in «Protected Mode» on Windows Vista and above will automatically redirect registry writes by ActiveX controls to a sandboxed location in order to frustrate some classes of security exploits.

The Application Compatibility Toolkit[54] provides shims that can transparently redirect HKEY_LOCAL_MACHINE or HKEY_CLASSES_ROOT Registry operations to HKEY_CURRENT_USER to address «LUA» bugs that cause applications not to work for users with insufficient rights.

Disadvantages[edit]

Critics labeled the registry in Windows 95 a single point of failure, because re-installation of the operating system was required if the registry became corrupt.[citation needed] However, Windows NT uses transaction logs to protect against corruption during updates. Current versions of Windows use two levels of log files to ensure integrity even in the case of power failure or similar catastrophic events during database updates.[55] Even in the case of a non-recoverable error, Windows can repair or re-initialize damaged registry entries during system boot.[55]

Equivalents and alternatives[edit]

In Windows, use of the registry for storing program data is a matter of developer’s discretion. Microsoft provides programming interfaces for storing data in XML files (via MSXML) or database files (via SQL Server Compact) which developers can use instead. Developers are also free to use non-Microsoft alternatives or develop their own proprietary data stores.

In contrast to Windows Registry’s binary-based database model, some other operating systems use separate plain-text files for daemon and application configuration, but group these configurations together for ease of management.

  • In Unix-like operating systems (including Linux) that follow the Filesystem Hierarchy Standard, system-wide configuration files (information similar to what would appear in HKEY_LOCAL_MACHINE on Windows) are traditionally stored in files in /etc/ and its subdirectories, or sometimes in /usr/local/etc. Per-user information (information that would be roughly equivalent to that in HKEY_CURRENT_USER) is stored in hidden directories and files (that start with a period/full stop) within the user’s home directory. However XDG-compliant applications should refer to the environment variables defined in the Base Directory specification.[56]
  • In macOS, system-wide configuration files are typically stored in the /Library/ folder, whereas per-user configuration files are stored in the corresponding ~/Library/ folder in the user’s home directory, and configuration files set by the system are in /System/Library/. Within these respective directories, an application typically stores a property list file in the Preferences/ sub-directory.
  • RISC OS (not to be confused with MIPS RISC/os) uses directories for configuration data, which allows applications to be copied into application directories, as opposed to the separate installation process that typifies Windows applications; this approach is also used on the ROX Desktop for Linux.[57] This directory-based configuration also makes it possible to use different versions of the same application, since the configuration is done «on the fly».[58] If one wishes to remove the application, it is possible to simply delete the folder belonging to the application.[59][60] This will often not remove configuration settings which are stored independently from the application, usually within the computer’s !Boot structure, in !Boot.Choices or potentially anywhere on a network fileserver. It is possible to copy installed programs between computers running RISC OS by copying the application directories belonging to the programs, however some programs may require re-installing, e.g. when shared files are placed outside an application directory.[58]
  • IBM AIX (a Unix variant) uses a registry component called Object Data Manager (ODM). The ODM is used to store information about system and device configuration. An extensive set of tools and utilities provides users with means of extending, checking, correcting the ODM database. The ODM stores its information in several files, default location is /etc/objrepos.
  • The GNOME desktop environment uses a registry-like interface called dconf for storing configuration settings for the desktop and applications.
  • The Elektra Initiative provides alternative back-ends for various different text configuration files.
  • While not an operating system, the Wine compatibility layer, which allows Windows software to run on a Unix-like system, also employs a Windows-like registry as text files in the WINEPREFIX folder: system.reg (HKEY_LOCAL_MACHINE), user.reg (HKEY_CURRENT_USER) and userdef.reg.[61]

See also[edit]

  • Registry cleaner
  • Application virtualization
  • LogParser – SQL-like querying of various types of log files
  • List of Shell Icon Overlay Identifiers
  • Ransomware attack that uses Registry

Notes[edit]

  1. ^ When applications fail to execute because they request more privileges than they require (and are denied those privileges), this is known as a limited user application (LUA) bug.

Footnotes[edit]

  1. ^ Esposito, Dino (November 2000). «Windows 2000 Registry: Latest Features and APIs Provide the Power to Customize and Extend Your Apps». MSDN Magazine. Microsoft. Archived from the original on April 15, 2003. Retrieved July 19, 2007.
  2. ^ a b c «The System Registry».
  3. ^ «Windows 95 Architecture Components». www.microsoft.com. Archived from the original on February 7, 2008. Retrieved April 29, 2008. The following table shows other difficulties or limitations caused by using .INI files that are overcome by using the Registry.
  4. ^ Hipson 2002, p. 5, 41–43.
  5. ^ Richter, Jeffrey; Nasarre, Christophe (2008). Windows Via C/C++ (Fifth ed.). Microsoft Press. ISBN 9780735642461. Retrieved August 28, 2021.
  6. ^ Raymond Chen, «Why do registry keys have a default value?»
  7. ^ Hipson 2002, pp. 207, 513–514.
  8. ^ Hipson 2002, pp. 520–521.
  9. ^ Hipson 2002, p. 7.
  10. ^ «Designed for Windows XP Application Specification». Microsoft. August 20, 2002. Retrieved April 8, 2009.
  11. ^ «HKEY_LOCAL_MACHINE». Gautam. 2009. Retrieved April 8, 2009.
  12. ^ «Registry Keys Affected by WOW64 (Windows)». Msdn.microsoft.com. Retrieved April 10, 2014.
  13. ^ «Description of the Microsoft Windows registry». Retrieved September 25, 2008.
  14. ^ «HKEY_CURRENT_USER». Microsoft. 2009. Retrieved April 8, 2009.
  15. ^ «Description of the HKEY_DYN_DATA Registry Key in Windows 95, Windows 98, and Windows 98 SE». support.microsoft.com.
  16. ^ «A Closer Look at HKEY_DYN_DATA». rinet.ru. Archived from the original on May 9, 2008.
  17. ^ «Registry hives». Retrieved July 19, 2007.
  18. ^ Chen, Raymond (August 8, 2011). «Why is a registry file called a «hive»?». The Old New Thing. Retrieved July 29, 2011.
  19. ^ «Overview of the Windows NT Registry». Retrieved December 2, 2011.
  20. ^ «Inside the Registry». Retrieved December 28, 2007.
  21. ^ a b Norris, Peter (February 2009). «The Internal Structure of the Windows Registry» (PDF). Cranfield University. Archived from the original (PDF) on May 29, 2009.
  22. ^ «Incorrect Icons Displayed for .ico Files». November 15, 2009. Retrieved March 31, 2012.
  23. ^ «How to Completely Uninstall / Remove a Software Program in Windows without using 3rd Party Software? — AskVG». www.askvg.com. August 26, 2011.
  24. ^ «You may receive a «STOP 0x00000035 NO_MORE_IRP_STACK_LOCATIONS» error message when you try to log on to a domain». October 9, 2011. Retrieved March 31, 2012. This page tells the user to edit the registry when resolving the issue.
  25. ^ key renaming is implemented as removal and add while retaining subkeys/values, as the underlying APIs do not support the rename function directly
  26. ^ a b c d «How to add, modify, or delete registry subkeys and values by using a .reg file». support.microsoft.com.
  27. ^ «Applying Group Policy». Microsoft.
  28. ^ a b c Payette, Bruce; Siddaway, Richard (2018). Windows PowerShell in Action (Third ed.). Manning Publications. pp. 7–8, 24, 608, 708–710. ISBN 9781633430297. Retrieved August 28, 2021.
  29. ^ Warner, Timothy L. (May 2015). Windows PowerShell in 24 Hours, Sams Teach Yourself. Sams Publishing. p. 19, 211. ISBN 9780134049359. Retrieved August 28, 2021.
  30. ^ «Reading and Writing Registry Values with Visual Basic». Retrieved July 19, 2007.
  31. ^ «REG command in Windows XP». Retrieved July 19, 2007.
  32. ^ «registry manual page – Tcl Bundled Packages». www.tcl.tk. Retrieved December 14, 2017.
  33. ^ «Offline Registry Library». Retrieved June 4, 2014.
  34. ^ «DllInstall Function». Microsoft. March 7, 2012. Retrieved March 22, 2012.
  35. ^ «Regsvr32». Microsoft. Retrieved March 22, 2012.
  36. ^ «How to: Register Automation Servers». Microsoft. Retrieved March 22, 2012.
  37. ^ «How to re-register PowerPoint 2000, PowerPoint 2003, PowerPoint 2007 and PowerPoint 2010». Microsoft. January 2012. Retrieved March 22, 2012.
  38. ^ «RegNotifyChangeKeyValue function». Microsoft.
  39. ^ «Registering for Notifications». Microsoft.
  40. ^ «RegConnectRegistry function». Microsoft.
  41. ^ «How to Manage Remote Access to the Registry». Microsoft.
  42. ^ Gibson, Darril (June 28, 2011). «Chapter 4: Securing Access with Permissions». Microsoft Windows security : essentials. Indianapolis, Ind.: Wiley. ISBN 978-1-118-01684-8.
  43. ^ «Application Compatibility: Windows Resource Protection (WRP)». Microsoft. Retrieved August 8, 2012.
  44. ^ Marc Silbey, Peter Brundrett. «Understanding and Working in Protected Mode Internet Explorer». Retrieved August 8, 2012.
  45. ^ «RegDelNull v1.1». November 1, 2006. Retrieved August 8, 2012.
  46. ^ «Unable to delete certain registry keys – Error while deleting key». March 23, 2010. Retrieved August 8, 2012. Microsoft Support page.
  47. ^ «Description of the Windows Registry Checker Tool (Scanreg.exe)».
  48. ^ «Command-Line Switches for the Registry Checker Tool».
  49. ^ «How To Backup, Edit, and Restore the Registry in Windows NT 4.0». support.microsoft.com.
  50. ^ «Technical Reference to the Registry: Related Resources». Microsoft. Retrieved September 9, 2011.
  51. ^ «Microsoft Kills Automatic Registry Backups in Windows 10». ExtremeTech. Retrieved July 1, 2019.
  52. ^ «How Core Group Policy Works». Microsoft. September 2, 2009. Retrieved August 13, 2012.
  53. ^ «Chapter 26 – Initialization Files and the Registry». Microsoft. Retrieved March 3, 2008.
  54. ^ «Microsoft Application Compatibility Toolkit 5.0». Microsoft. Retrieved July 26, 2008.
  55. ^ a b Ionescu, Mark Russinovich, David A. Solomon, Alex (2012). «Registry Internals». Windows internals (6th ed.). Redmond, Wash.: Microsoft Press. ISBN 978-0-7356-4873-9.
  56. ^ «XDG Base Directory Specification». standards.freedesktop.org.
  57. ^ «Application directories». Archived from the original on May 27, 2012. Retrieved May 17, 2012.
  58. ^ a b «Case Studies Of The Top 132 Annoyances With Operating Systems Other Than RISC OS». Retrieved April 3, 2012. Page from the riscos.com website. Mentioned in points 82 and 104.
  59. ^ «RISC OS tour». Retrieved July 19, 2007.
  60. ^ «The RISC OS Products Directory». November 2, 2006. Archived from the original on February 19, 2007. Retrieved April 1, 2012.
  61. ^ 3.2. Using the Registry and Regedit (Wine User Guide)

References[edit]

  • Hipson, Peter (2002). Mastering Windows XP Registry. Wiley. ISBN 0-7821-2987-0. Retrieved August 28, 2021.
  • Russinovich, Mark E.; Solomon, David A. (2005). Microsoft Windows Internals (Fourth ed.). Microsoft Press. pp. 183–236. ISBN 978-0-7356-1917-3.

External links[edit]

  • Windows Registry info & reference in the MSDN Library
Windows Registry

Registry Editor icon.png
Regstry Editor.png

Registry Editor, the user interface for the registry, in Windows 11

Developer(s) Microsoft
Initial release April 6, 1992; 30 years ago with Windows 3.1
Operating system Microsoft Windows
Platform IA-32, x86-64 and ARM (and historically DEC Alpha, Itanium, MIPS, and PowerPC)
Included with Microsoft Windows
Type Hierarchical database
Website docs.microsoft.com/en-us/windows/desktop/SysInfo/registry Edit this on Wikidata

The Windows Registry is a hierarchical database that stores low-level settings for the Microsoft Windows operating system and for applications that opt to use the registry. The kernel, device drivers, services, Security Accounts Manager, and user interfaces can all use the registry. The registry also allows access to counters for profiling system performance.

In other words, the registry or Windows Registry contains information, settings, options, and other values for programs and hardware installed on all versions of Microsoft Windows operating systems. For example, when a program is installed, a new subkey containing settings such as a program’s location, its version, and how to start the program, are all added to the Windows Registry.

When introduced with Windows 3.1, the Windows Registry primarily stored configuration information for COM-based components. Windows 95 and Windows NT extended its use to rationalize and centralize the information in the profusion of INI files, which held the configurations for individual programs, and were stored at various locations.[1][2] It is not a requirement for Windows applications to use the Windows Registry. For example, .NET Framework applications use XML files for configuration, while portable applications usually keep their configuration files with their executables.

Rationale[edit]

Prior to the Windows Registry, .INI files stored each program’s settings as a text file or binary file, often located in a shared location that did not provide user-specific settings in a multi-user scenario. By contrast, the Windows Registry stores all application settings in one logical repository (but a number of discrete files) and in a standardized form. According to Microsoft, this offers several advantages over .INI files.[2][3] Since file parsing is done much more efficiently with a binary format, it may be read from or written to more quickly than a text INI file. Furthermore, strongly typed data can be stored in the registry, as opposed to the text information stored in .INI files. This is a benefit when editing keys manually using regedit.exe, the built-in Windows Registry Editor. Because user-based registry settings are loaded from a user-specific path rather than from a read-only system location, the registry allows multiple users to share the same machine, and also allows programs to work for less privileged users. Backup and restoration is also simplified as the registry can be accessed over a network connection for remote management/support, including from scripts, using the standard set of APIs, as long as the Remote Registry service is running and firewall rules permit this.

Because the registry is a database, it offers improved system integrity with features such as atomic updates. If two processes attempt to update the same registry value at the same time, one process’s change will precede the other’s and the overall consistency of the data will be maintained. Where changes are made to .INI files, such race conditions can result in inconsistent data that does not match either attempted update. Windows Vista and later operating systems provide transactional updates to the registry by means of the Kernel Transaction Manager, extending the atomicity guarantees across multiple key and/or value changes, with traditional commit–abort semantics. (Note however that NTFS provides such support for the file system as well, so the same guarantees could, in theory, be obtained with traditional configuration files.)

Structure[edit]

Keys and values[edit]

The registry contains two basic elements: keys and values. Registry keys are container objects similar to folders. Registry values are non-container objects similar to files. Keys may contain values and subkeys. Keys are referenced with a syntax similar to Windows’ path names, using backslashes to indicate levels of hierarchy. Keys must have a case insensitive name without backslashes.

The hierarchy of registry keys can only be accessed from a known root key handle (which is anonymous but whose effective value is a constant numeric handle) that is mapped to the content of a registry key preloaded by the kernel from a stored «hive», or to the content of a subkey within another root key, or mapped to a registered service or DLL that provides access to its contained subkeys and values.

E.g. HKEY_LOCAL_MACHINESoftwareMicrosoftWindows refers to the subkey «Windows» of the subkey «Microsoft» of the subkey «Software» of the HKEY_LOCAL_MACHINE root key.

There are seven predefined root keys, traditionally named according to their constant handles defined in the Win32 API, or by synonymous abbreviations (depending on applications):[4]

  • HKEY_LOCAL_MACHINE or HKLM
  • HKEY_CURRENT_CONFIG or HKCC
  • HKEY_CLASSES_ROOT or HKCR
  • HKEY_CURRENT_USER or HKCU
  • HKEY_USERS or HKU
  • HKEY_PERFORMANCE_DATA (only in Windows NT, but invisible in the Windows Registry Editor)[5]
  • HKEY_DYN_DATA (only in Windows 9x, and visible in the Windows Registry Editor)

Like other files and services in Windows, all registry keys may be restricted by access control lists (ACLs), depending on user privileges, or on security tokens acquired by applications, or on system security policies enforced by the system (these restrictions may be predefined by the system itself, and configured by local system administrators or by domain administrators). Different users, programs, services or remote systems may only see some parts of the hierarchy or distinct hierarchies from the same root keys.

Registry values are name/data pairs stored within keys. Registry values are referenced separately from registry keys. Each registry value stored in a registry key has a unique name whose letter case is not significant. The Windows API functions that query and manipulate registry values take value names separately from the key path and/or handle that identifies the parent key. Registry values may contain backslashes in their names, but doing so makes them difficult to distinguish from their key paths when using some legacy Windows Registry API functions (whose usage is deprecated in Win32).

The terminology is somewhat misleading, as each registry key is similar to an associative array, where standard terminology would refer to the name part of each registry value as a «key». The terms are a holdout from the 16-bit registry in Windows 3, in which registry keys could not contain arbitrary name/data pairs, but rather contained only one unnamed value (which had to be a string). In this sense, the Windows 3 registry was like a single associative array, in which the keys (in the sense of both ‘registry key’ and ‘associative array key’) formed a hierarchy, and the registry values were all strings. When the 32-bit registry was created, so was the additional capability of creating multiple named values per key, and the meanings of the names were somewhat distorted.[6] For compatibility with the previous behavior, each registry key may have a «default» value, whose name is the empty string.

Each value can store arbitrary data with variable length and encoding, but which is associated with a symbolic type (defined as a numeric constant) defining how to parse this data. The standard types are:[7]

List of standard registry value types

Type ID Symbolic type name Meaning and encoding of the data stored in the registry value
0 REG_NONE No type (the stored value, if any)
1 REG_SZ A string value, normally stored and exposed in UTF-16LE (when using the Unicode version of Win32 API functions), usually terminated by a NUL character
2 REG_EXPAND_SZ An «expandable» string value that can contain environment variables, normally stored and exposed in UTF-16LE, usually terminated by a NUL character
3 REG_BINARY Binary data (any arbitrary data)
4 REG_DWORD / REG_DWORD_LITTLE_ENDIAN A DWORD value, a 32-bit unsigned integer (numbers between 0 and 4,294,967,295 [232 – 1]) (little-endian)
5 REG_DWORD_BIG_ENDIAN A DWORD value, a 32-bit unsigned integer (numbers between 0 and 4,294,967,295 [232 – 1]) (big-endian)
6 REG_LINK A symbolic link (UNICODE) to another registry key, specifying a root key and the path to the target key
7 REG_MULTI_SZ A multi-string value, which is an ordered list of non-empty strings, normally stored and exposed in Unicode, each one terminated by a null character, the list being normally terminated by a second null character.[8]
8 REG_RESOURCE_LIST A resource list (used by the Plug-n-Play hardware enumeration and configuration)
9 REG_FULL_RESOURCE_DESCRIPTOR A resource descriptor (used by the Plug-n-Play hardware enumeration and configuration)
10 REG_RESOURCE_REQUIREMENTS_LIST A resource requirements list (used by the Plug-n-Play hardware enumeration and configuration)
11 REG_QWORD / REG_QWORD_LITTLE_ENDIAN A QWORD value, a 64-bit integer (either big- or little-endian, or unspecified) (introduced in Windows 2000)[9]

Root keys[edit]

The keys at the root level of the hierarchical database are generally named by their Windows API definitions, which all begin «HKEY».[2] They are frequently abbreviated to a three- or four-letter short name starting with «HK» (e.g. HKCU and HKLM). Technically, they are predefined handles (with known constant values) to specific keys that are either maintained in memory, or stored in hive files stored in the local filesystem and loaded by the system kernel at boot time and then shared (with various access rights) between all processes running on the local system, or loaded and mapped in all processes started in a user session when the user logs on the system.

The HKEY_LOCAL_MACHINE (local machine-specific configuration data) and HKEY_CURRENT_USER (user-specific configuration data) nodes have a similar structure to each other; user applications typically look up their settings by first checking for them in «HKEY_CURRENT_USERSoftwareVendor’s nameApplication’s nameVersionSetting name», and if the setting is not found, look instead in the same location under the HKEY_LOCAL_MACHINE key[citation needed]. However, the converse may apply for administrator-enforced policy settings where HKLM may take precedence over HKCU. The Windows Logo Program has specific requirements for where different types of user data may be stored, and that the concept of least privilege be followed so that administrator-level access is not required to use an application.[a][10]

HKEY_LOCAL_MACHINE (HKLM)[edit]

Abbreviated HKLM, HKEY_LOCAL_MACHINE stores settings that are specific to the local computer.[11]

The key located by HKLM is actually not stored on disk, but maintained in memory by the system kernel in order to map all the other subkeys. Applications cannot create any additional subkeys. On Windows NT, this key contains four subkeys, «SAM», «SECURITY», «SYSTEM», and «SOFTWARE», that are loaded at boot time within their respective files located in the %SystemRoot%System32config folder. A fifth subkey, «HARDWARE», is volatile and is created dynamically, and as such is not stored in a file (it exposes a view of all the currently detected Plug-and-Play devices). On Windows Vista and above, a sixth and seventh subkey, «COMPONENTS» and «BCD», are mapped in memory by the kernel on-demand and loaded from %SystemRoot%system32configCOMPONENTS or from boot configuration data, bootBCD on the system partition.

  • The «HKLMSAM» key usually appears as empty for most users (unless they are granted access by administrators of the local system or administrators of domains managing the local system). It is used to reference all «Security Accounts Manager» (SAM) databases for all domains into which the local system has been administratively authorized or configured (including the local domain of the running system, whose SAM database is stored in a subkey also named «SAM»: other subkeys will be created as needed, one for each supplementary domain). Each SAM database contains all builtin accounts (mostly group aliases) and configured accounts (users, groups and their aliases, including guest accounts and administrator accounts) created and configured on the respective domain, for each account in that domain, it notably contains the user name which can be used to log on that domain, the internal unique user identifier in the domain, a cryptographic hash of each user’s password for each enabled authentication protocol, the location of storage of their user registry hive, various status flags (for example if the account can be enumerated and be visible in the logon prompt screen), and the list of domains (including the local domain) into which the account was configured.
  • The «HKLMSECURITY» key usually appears empty for most users (unless they are granted access by users with administrative privileges) and is linked to the Security database of the domain into which the current user is logged on (if the user is logged on the local system domain, this key will be linked to the registry hive stored by the local machine and managed by local system administrators or by the builtin «System» account and Windows installers). The kernel will access it to read and enforce the security policy applicable to the current user and all applications or operations executed by this user. It also contains a «SAM» subkey which is dynamically linked to the SAM database of the domain onto which the current user is logged on.
  • The «HKLMSYSTEM» key is normally only writable by users with administrative privileges on the local system. It contains information about the Windows system setup, data for the secure random number generator (RNG), the list of currently mounted devices containing a filesystem, several numbered «HKLMSYSTEMControl Sets» containing alternative configurations for system hardware drivers and services running on the local system (including the currently used one and a backup), a «HKLMSYSTEMSelect» subkey containing the status of these Control Sets, and a «HKLMSYSTEMCurrentControlSet» which is dynamically linked at boot time to the Control Set which is currently used on the local system. Each configured Control Set contains:
    • an «Enum» subkey enumerating all known Plug-and-Play devices and associating them with installed system drivers (and storing the device-specific configurations of these drivers),
    • a «Services» subkey listing all installed system drivers (with non device-specific configuration, and the enumeration of devices for which they are instantiated) and all programs running as services (how and when they can be automatically started),
    • a «Control» subkey organizing the various hardware drivers and programs running as services and all other system-wide configuration,
    • a «Hardware Profiles» subkey enumerating the various profiles that have been tuned (each one with «System» or «Software» settings used to modify the default profile, either in system drivers and services or in the applications) as well as the «Hardware ProfilesCurrent» subkey which is dynamically linked to one of these profiles.
  • The «HKLMSOFTWARE» subkey contains software and Windows settings (in the default hardware profile). It is mostly modified by application and system installers. It is organized by software vendor (with a subkey for each), but also contains a «Windows» subkey for some settings of the Windows user interface, a «Classes» subkey containing all registered associations from file extensions, MIME types, Object Classes IDs and interfaces IDs (for OLE, COM/DCOM and ActiveX), to the installed applications or DLLs that may be handling these types on the local machine (however these associations are configurable for each user, see below), and a «Policies» subkey (also organized by vendor) for enforcing general usage policies on applications and system services (including the central certificates store used for authenticating, authorizing or disallowing remote systems or services running outside the local network domain).
  • The «HKLMSOFTWAREWow6432Node» key is used by 32-bit applications on a 64-bit Windows OS, and is equivalent to but separate from «HKLMSOFTWARE». The key path is transparently presented to 32-bit applications by WoW64 as HKLMSOFTWARE[12] (in a similar way that 32-bit applications see %SystemRoot%Syswow64 as %SystemRoot%System32)

HKEY_CLASSES_ROOT (HKCR)[edit]

Abbreviated HKCR, HKEY_CLASSES_ROOT contains information about registered applications, such as file associations and OLE Object Class IDs, tying them to the applications used to handle these items. On Windows 2000 and above, HKCR is a compilation of user-based HKCUSoftwareClasses and machine-based HKLMSoftwareClasses. If a given value exists in both of the subkeys above, the one in HKCUSoftwareClasses takes precedence.[13] The design allows for either machine- or user-specific registration of COM objects.

HKEY_USERS (HKU)[edit]

Abbreviated HKU, HKEY_USERS contains subkeys corresponding to the HKEY_CURRENT_USER keys for each user profile actively loaded on the machine, though user hives are usually only loaded for currently logged-in users.

HKEY_CURRENT_USER (HKCU)[edit]

Abbreviated HKCU, HKEY_CURRENT_USER stores settings that are specific to the currently logged-in user.[14] The HKEY_CURRENT_USER key is a link to the subkey of HKEY_USERS that corresponds to the user; the same information is accessible in both locations. The specific subkey referenced is «(HKU)(SID)…» where (SID) corresponds to the Windows SID; if the «(HKCU)» key has the following suffix «(HKCU)SoftwareClasses…» then it corresponds to «(HKU)(SID)_CLASSES…» i.e. the suffix has the string «_CLASSES» is appended to the (SID).
On Windows NT systems, each user’s settings are stored in their own files called NTUSER.DAT and USRCLASS.DAT inside their own Documents and Settings subfolder (or their own Users sub folder in Windows Vista and above). Settings in this hive follow users with a roaming profile from machine to machine.

HKEY_PERFORMANCE_DATA[edit]

This key provides runtime information into performance data provided by either the NT kernel itself, or running system drivers, programs and services that provide performance data. This key is not stored in any hive and not displayed in the Registry Editor, but it is visible through the registry functions in the Windows API, or in a simplified view via the Performance tab of the Task Manager (only for a few performance data on the local system) or via more advanced control panels (such as the Performances Monitor or the Performances Analyzer which allows collecting and logging these data, including from remote systems).

HKEY_DYN_DATA[edit]

This key is used only on Windows 95, Windows 98 and Windows ME.[15] It contains information about hardware devices, including Plug and Play and network performance statistics. The information in this hive is also not stored on the hard drive. The Plug and Play information is gathered and configured at startup and is stored in memory.[16]

Hives[edit]

Even though the registry presents itself as an integrated hierarchical database, branches of the registry are actually stored in a number of disk files called hives.[17] (The word hive constitutes an in-joke.)[18]

Some hives are volatile and are not stored on disk at all. An example of this is the hive of the branch starting at HKLMHARDWARE. This hive records information about system hardware and is created each time the system boots and performs hardware detection.

Individual settings for users on a system are stored in a hive (disk file) per user. During user login, the system loads the user hive under the HKEY_USERS key and sets the HKCU (HKEY_CURRENT_USER) symbolic reference to point to the current user. This allows applications to store/retrieve settings for the current user implicitly under the HKCU key.

Not all hives are loaded at any one time. At boot time, only a minimal set of hives are loaded, and after that, hives are loaded as the operating system initializes and as users log in or whenever a hive is explicitly loaded by an application.

File locations[edit]

The registry is physically stored in several files, which are generally obfuscated from the user-mode APIs used to manipulate the data inside the registry. Depending upon the version of Windows, there will be different files and different locations for these files, but they are all on the local machine. The location for system registry files in Windows NT is %SystemRoot%System32Config; the user-specific HKEY_CURRENT_USER user registry hive is stored in Ntuser.dat inside the user profile. There is one of these per user; if a user has a roaming profile, then this file will be copied to and from a server at logout and login respectively. A second user-specific registry file named UsrClass.dat contains COM registry entries and does not roam by default.

Windows NT[edit]

Windows NT systems store the registry in a binary file format which can be exported, loaded and unloaded by the Registry Editor in these operating systems. The following system registry files are stored in %SystemRoot%System32Config:

  • Sam – HKEY_LOCAL_MACHINESAM
  • Security – HKEY_LOCAL_MACHINESECURITY
  • Software – HKEY_LOCAL_MACHINESOFTWARE
  • System – HKEY_LOCAL_MACHINESYSTEM
  • Default – HKEY_USERS.DEFAULT
  • Userdiff – Not associated with a hive. Used only when upgrading operating systems.[19]

The following file is stored in each user’s profile folder:

  • %USERPROFILE%Ntuser.dat – HKEY_USERS<User SID> (linked to by HKEY_CURRENT_USER)

For Windows 2000, Server 2003 and Windows XP, the following additional user-specific file is used for file associations and COM information:

  • %USERPROFILE%Local SettingsApplication DataMicrosoftWindowsUsrclass.dat (path is localized) – HKEY_USERS<User SID>_Classes (HKEY_CURRENT_USERSoftwareClasses)

For Windows Vista and later, the path was changed to:

  • %USERPROFILE%AppDataLocalMicrosoftWindowsUsrclass.dat (path is not localized) alias %LocalAppData%MicrosoftWindowsUsrclass.dat – HKEY_USERS<User SID>_Classes (HKEY_CURRENT_USERSoftwareClasses)

Windows 2000 keeps an alternate copy of the registry hives (.ALT) and attempts to switch to it when corruption is detected.[20] Windows XP and Windows Server 2003 do not maintain a System.alt hive because NTLDR on those versions of Windows can process the System.log file to bring up to date a System hive that has become inconsistent during a shutdown or crash. In addition, the %SystemRoot%Repair folder contains a copy of the system’s registry hives that were created after installation and the first successful startup of Windows.

Each registry data file has an associated file with a «.log» extension that acts as a transaction log that is used to ensure that any interrupted updates can be completed upon next startup.[21] Internally, Registry files are split into 4 kB «bins» that contain collections of «cells».[21]

Windows 9x[edit]

The registry files are stored in the %WINDIR% directory under the names USER.DAT and SYSTEM.DAT with the addition of CLASSES.DAT in Windows ME. Also, each user profile (if profiles are enabled) has its own USER.DAT file which is located in the user’s profile directory in %WINDIR%Profiles<Username>.

Windows 3.11[edit]

The only registry file is called REG.DAT and it is stored in the %WINDIR% directory.

Windows 10 Mobile[edit]

Note: To access the registry files, the Phone needs to be set in a special mode using either: 

  • WpInternals ( Put the mobile device into flash mode. )
  • InterOp Tools ( mount the MainOS Partition with MTP. )

If any of above Methods worked — The Device Registry Files can be found in the following location:

 {Phone}EFIESPWindowsSystem32config

Note: InterOp Tools also includes a registry editor.

Editing[edit]

Registry editors[edit]

The registry contains important configuration information for the operating system, for installed applications as well as individual settings for each user and application. A careless change to the operating system configuration in the registry could cause irreversible damage, so it is usually only installer programs which perform changes to the registry database during installation/configuration and removal. If a user wants to edit the registry manually, Microsoft recommends that a backup of the registry be performed before the change.[22] When a program is removed from control panel, it may not be completely removed and, in case of errors or glitches caused by references to missing programs, the user might have to manually check inside directories such as program files. After this, the user might need to manually remove any reference to the uninstalled program in the registry. This is usually done by using RegEdit.exe.[23] Editing the registry is sometimes necessary when working around Windows-specific issues e.g. problems when logging onto a domain can be resolved by editing the registry.[24]

Windows Registry can be edited manually using programs such as RegEdit.exe, although these tools do not expose some of the registry’s metadata such as the last modified date.

The registry editor for the 3.1/95 series of operating systems is RegEdit.exe and for Windows NT it is RegEdt32.exe; the functionalities are merged in Windows XP. Optional and/or third-party tools similar to RegEdit.exe are available for many Windows CE versions.

Registry Editor allows users to perform the following functions:

  • Creating, manipulating, renaming[25] and deleting registry keys, subkeys, values and value data
  • Importing and exporting .REG files, exporting data in the binary hive format
  • Loading, manipulating and unloading registry hive format files (Windows NT systems only)
  • Setting permissions based on ACLs (Windows NT systems only)
  • Bookmarking user-selected registry keys as Favorites
  • Finding particular strings in key names, value names and value data
  • Remotely editing the registry on another networked computer

.REG files[edit]

.REG files (also known as Registration entries) are text-based human-readable files for exporting and importing portions of the registry using an INI-based syntax. On Windows 2000 and later, they contain the string Windows Registry Editor Version 5.00 at the beginning and are Unicode-based. On Windows 9x and NT 4.0 systems, they contain the string REGEDIT4 and are ANSI-based.[26] Windows 9x format .REG files are compatible with Windows 2000 and later. The Registry Editor on Windows on these systems also supports exporting .REG files in Windows 9x/NT format. Data is stored in .REG files using the following syntax:[26]

[<Hive name><Key name><Subkey name>]
"Value name"=<Value type>:<Value data>

The Default Value of a key can be edited by using «@» instead of «Value Name»:

[<Hive name><Key name><Subkey name>]
@=<Value type>:<Value data>

String values do not require a <Value type> (see example), but backslashes (») need to be written as a double-backslash (‘\’), and quotes (‘»‘) as backslash-quote (‘»‘).

For example, to add the values «Value A», «Value B», «Value C», «Value D», «Value E», «Value F», «Value G», «Value H», «Value I», «Value J», «Value K», «Value L», and «Value M» to the HKLMSOFTWAREFoobar key:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREFoobar]
"Value A"="<String value data with escape characters>"
"Value B"=hex:<Binary data (as comma-delimited list of hexadecimal values)>
"Value C"=dword:<DWORD value integer>
"Value D"=hex(0):<REG_NONE (as comma-delimited list of hexadecimal values)>
"Value E"=hex(1):<REG_SZ (as comma-delimited list of hexadecimal values representing a UTF-16LE NUL-terminated string)>
"Value F"=hex(2):<Expandable string value data (as comma-delimited list of hexadecimal values representing a UTF-16LE NUL-terminated string)>
"Value G"=hex(3):<Binary data (as comma-delimited list of hexadecimal values)> ; equal to "Value B"
"Value H"=hex(4):<DWORD value (as comma-delimited list of 4 hexadecimal values, in little endian byte order)>
"Value I"=hex(5):<DWORD value (as comma-delimited list of 4 hexadecimal values, in big endian byte order)>
"Value J"=hex(7):<Multi-string value data (as comma-delimited list of hexadecimal values representing UTF-16LE NUL-terminated strings)>
"Value K"=hex(8):<REG_RESOURCE_LIST (as comma-delimited list of hexadecimal values)>
"Value L"=hex(a):<REG_RESOURCE_REQUIREMENTS_LIST (as comma-delimited list of hexadecimal values)>
"Value M"=hex(b):<QWORD value (as comma-delimited list of 8 hexadecimal values, in little endian byte order)>

Data from .REG files can be added/merged with the registry by double-clicking these files or using the /s switch in the command line. REG files can also be used to remove registry data.

To remove a key (and all subkeys, values and data), the key name must be preceded by a minus sign («-«).[26]

For example, to remove the HKLMSOFTWAREFoobar key (and all subkeys, values and data),

[-HKEY_LOCAL_MACHINESOFTWAREFoobar]

To remove a value (and its data), the values to be removed must have a minus sign («-«) after the equal sign («=»).[26]

For example, to remove only the «Value A» and «Value B» values (and their data) from the HKLMSOFTWAREFoobar key:

[HKEY_LOCAL_MACHINESOFTWAREFoobar]
"Value A"=-
"Value B"=-

To remove only the Default value of the key HKLMSOFTWAREFoobar (and its data):

[HKEY_LOCAL_MACHINESOFTWAREFoobar]
@=-

Lines beginning with a semicolon are considered comments:

; This is a comment. This can be placed in any part of a .reg file
[HKEY_LOCAL_MACHINESOFTWAREFoobar]
"Value"="Example string"

Group policies[edit]

Windows group policies can change registry keys for a number of machines or individual users based on policies. When a policy first takes effect for a machine or for an individual user of a machine, the registry settings specified as part of the policy are applied to the machine or user settings.

Windows will also look for updated policies and apply them periodically, typically every 90 minutes.[27]

Through its scope a policy defines which machines and/or users the policy is to be applied to. Whether a machine or user is within the scope of a policy or not is defined by a set of rules which can filter on the location of the machine or user account in organizational directory, specific users or machine accounts or security groups. More advanced rules can be set up using Windows Management Instrumentation expressions. Such rules can filter on properties such as computer vendor name, CPU architecture, installed software, or networks connected to.

For instance, the administrator can create a policy with one set of registry settings for machines in the accounting department and policy with another (lock-down) set of registry settings for kiosk terminals in the visitors area. When a machine is moved from one scope to another (e.g. changing its name or moving it to another organizational unit), the correct policy is automatically applied. When a policy is changed it is automatically re-applied to all machines currently in its scope.

The policy is edited through a number of administrative templates which provides a user interface for picking and changing settings. The set of administrative templates is extensible and software packages which support such remote administration can register their own templates.

Command line editing[edit]

reg

Developer(s) Microsoft
Operating system Microsoft Windows
Type Command
License Proprietary commercial software
Website docs.microsoft.com/en-us/windows-server/administration/windows-commands/reg
regini

Developer(s) Microsoft
Operating system Microsoft Windows
Type Command
License Proprietary commercial software
Website docs.microsoft.com/en-us/windows-server/administration/windows-commands/regini

The registry can be manipulated in a number of ways from the command line. The Reg.exe and RegIni.exe utility tools are included in Windows XP and later versions of Windows. Alternative locations for legacy versions of Windows include the Resource Kit CDs or the original Installation CD of Windows.

Also, a .REG file can be imported from the command line with the following command:

RegEdit.exe /s file

The /s means the file will be silent merged to the registry. If the /s parameter is omitted the user will be asked to confirm the operation. In Windows 98, Windows 95 and at least some configurations of Windows XP the /s switch also causes RegEdit.exe to ignore the setting in the registry that allows administrators to disable it. When using the /s switch RegEdit.exe does not return an appropriate return code if the operation fails, unlike Reg.exe which does.

RegEdit.exe /e file

exports the whole registry in V5 format to a UNICODE .REG file, while any of

RegEdit.exe /e file HKEY_CLASSES_ROOT[<key>]
RegEdit.exe /e file HKEY_CURRENT_CONFIG[<key>]
RegEdit.exe /e file HKEY_CURRENT_USER[<key>]
RegEdit.exe /e file HKEY_LOCAL_MACHINE[<key>]
RegEdit.exe /e file HKEY_USERS[<key>]

export the specified (sub)key (which has to be enclosed in quotes if it contains spaces) only.

RegEdit.exe /a file

exports the whole registry in V4 format to an ANSI .REG file.

RegEdit.exe /a file <key>

exports the specified (sub)key (which has to be enclosed in quotes if it contains spaces) only.

It is also possible to use Reg.exe. Here is a sample to display the value of the registry value Version:

Reg.exe QUERY HKLMSoftwareMicrosoftResKit /v Version

Other command line options include a VBScript or JScript together with CScript, WMI or WMIC.exe and Windows PowerShell.

Registry permissions can be manipulated through the command line using RegIni.exe and the SubInACL.exe tool. For example, the permissions on the HKEY_LOCAL_MACHINESOFTWARE key can be displayed using:

SubInACL.exe /keyreg HKEY_LOCAL_MACHINESOFTWARE /display

PowerShell commands and scripts[edit]

Using PowerShell to navigate the registry

Windows PowerShell comes with a registry provider which presents the registry as a location type similar to the file system. The same commands used to manipulate files and directories in the file system can be used to manipulate keys and values of the registry.[28]

Also like the file system, PowerShell uses the concept of a current location which defines the context on which commands by default operate. The Get-ChildItem (also available through the aliases ls, dir or gci) retrieves the child keys of the current location. By using the Set-Location (or the alias cd) command the user can change the current location to another key of the registry.[28] Commands which rename items, remove items, create new items or set content of items or properties can be used to rename keys, remove keys or entire sub-trees or change values.

Through PowerShell scripts files, an administrator can prepare scripts which, when executed, make changes to the registry. Such scripts can be distributed to administrators who can execute them on individual machines. The PowerShell Registry provider supports transactions, i.e. multiple changes to the registry can be bundled into a single atomic transaction. An atomic transaction ensures that either all of the changes are committed to the database, or if the script fails, none of the changes are committed to the database.[28][29]

Programs or scripts[edit]

The registry can be edited through the APIs of the Advanced Windows 32 Base API Library (advapi32.dll).[30] List of registry API functions:

  • RegCloseKey
  • RegConnectRegistry
  • RegCreateKey
  • RegCreateKeyEx
  • RegDeleteKey
  • RegDeleteValue
  • RegEnumKey
  • RegEnumKeyEx
  • RegEnumValue
  • RegFlushKey
  • RegGetKeySecurity
  • RegLoadKey
  • RegNotifyChangeKeyValue
  • RegOpenKey
  • RegOpenKeyEx
  • RegQueryInfoKey
  • RegQueryMultipleValues
  • RegQueryValue
  • RegQueryValueEx
  • RegReplaceKey
  • RegRestoreKey
  • RegSaveKey
  • RegSetKeySecurity
  • RegSetValue
  • RegSetValueEx
  • RegUnLoadKey

Many programming languages offer built-in runtime library functions or classes that wrap the underlying Windows APIs and thereby enable programs to store settings in the registry (e.g. Microsoft.Win32.Registry in VB.NET and C#, or TRegistry in Delphi and Free Pascal). COM-enabled applications like Visual Basic 6 can use the WSH WScript.Shell object. Another way is to use the Windows Resource Kit Tool, Reg.exe by executing it from code,[31] although this is considered poor programming practice.

Similarly, scripting languages such as Perl (with Win32::TieRegistry), Python (with winreg), TCL (which comes bundled with the registry package),[32] Windows Powershell and Windows Scripting Host also enable registry editing from scripts.

Offline editing[edit]

The offreg.dll[33] available from the Windows Driver Kit offers a set of APIs for the creation and manipulation of currently not loaded registry hives similar to those provided by advapi32.dll.

It is also possible to edit the registry (hives) of an offline system from Windows PE or Linux (in the latter case using open source tools).

COM self-registration[edit]

Prior to the introduction of registration-free COM, developers were encouraged to add initialization code to in-process and out-of-process binaries to perform the registry configuration required for that object to work. For in-process binaries such as .DLL and .OCX files, the modules typically exported a function called DllInstall()[34] that could be called by installation programs or invoked manually with utilities like Regsvr32.exe;[35] out-of-process binaries typically support the commandline arguments /Regserver and /Unregserver that created or deleted the required registry settings.[36] COM applications that break because of DLL Hell issues can commonly be repaired with RegSvr32.exe or the /RegServer switch without having to re-invoke installation programs.[37]

Advanced functionality[edit]

Windows exposes APIs that allows user-mode applications to register to receive a notification event if a particular registry key is changed.[38] APIs are also available to allow kernel-mode applications to filter and modify registry calls made by other applications.[39]

Windows also supports remote access to the registry of another computer via the RegConnectRegistry function[40] if the Remote Registry service is running, correctly configured and its network traffic is not firewalled.[41]

Security[edit]

Each key in the registry of Windows NT versions can have an associated security descriptor. The security descriptor contains an access control list (ACL) that describes which user groups or individual users are granted or denied access permissions. The set of registry permissions include 10 rights/permissions which can be explicitly allowed or denied to a user or a group of users.

Registry permissions

Permission Description
Query Value The right to read the registry key value.
Set Value The right to write a new value
Create Subkey The right to create subkeys.
Enumerate Subkeys Allow the enumeration of subkeys.
Notify The right to request change notifications for registry keys or subkeys.
Create Link Reserved by the operating system.
Delete The right to delete a key.
Write DACL The right to modify permissions of the container’s DACL.
Write Owner The right to modify the container’s owner.
Read Control The right to read the DACL.

As with other securable objects in the operating system, individual access control entries (ACE) on the security descriptor can be explicit or inherited from a parent object.[42]

Windows Resource Protection is a feature of Windows Vista and later versions of Windows that uses security to deny Administrators and the system WRITE access to some sensitive keys to protect the integrity of the system from malware and accidental modification.[43]

Special ACEs on the security descriptor can also implement mandatory integrity control for the registry key and subkeys. A process running at a lower integrity level cannot write, change or delete a registry key/value, even if the account of the process has otherwise been granted access through the ACL. For instance, Internet Explorer running in Protected Mode can read medium and low integrity registry keys/values of the currently logged on user, but it can only modify low integrity keys.[44]

Outside security, registry keys cannot be deleted or edited due to other causes. Registry keys containing NUL characters cannot be deleted with standard registry editors and require a special utility for deletion, such as RegDelNull.[45][46]

Backups and recovery[edit]

Different editions of Windows have supported a number of different methods to back up and restore the registry over the years, some of which are now deprecated:

  • System Restore can back up the registry and restore it as long as Windows is bootable, or from the Windows Recovery Environment (starting with Windows Vista).
  • NTBackup can back up the registry as part of the System State and restore it. Automated System Recovery in Windows XP can also restore the registry.
  • On Windows NT, the Last Known Good Configuration option in startup menu relinks the HKLMSYSTEMCurrentControlSet key, which stores hardware and device driver information.
  • Windows 98 and Windows ME include command line (Scanreg.exe) and GUI (Scanregw.exe) registry checker tools to check and fix the integrity of the registry, create up to five automatic regular backups by default and restore them manually or whenever corruption is detected.[47] The registry checker tool backs up the registry, by default, to %Windir%Sysbckup Scanreg.exe can also run from MS-DOS.[48]
  • The Windows 95 CD-ROM included an Emergency Recovery Utility (ERU.exe) and a Configuration Backup Tool (Cfgback.exe) to back up and restore the registry. Additionally Windows 95 backs up the registry to the files system.da0 and user.da0 on every successful boot.
  • Windows NT 4.0 included RDISK.EXE, a utility to back up and restore the entire registry.[49]
  • Windows 2000 Resource Kit contained an unsupported pair of utilities called Regback.exe and RegRest.exe for backup and recovery of the registry.[50]
  • Periodic automatic backups of the registry are now disabled by default on Windows 10 May 2019 Update (version 1903). Microsoft recommends System Restore be used instead.[51]

Policy[edit]

Group policy[edit]

Windows 2000 and later versions of Windows use Group Policy to enforce registry settings through a registry-specific client extension in the Group Policy processing engine.[52] Policy may be applied locally to a single computer using gpedit.msc, or to multiple users and/or computers in a domain using gpmc.msc.

Legacy systems[edit]

With Windows 95, Windows 98, Windows ME and Windows NT 4.0, administrators can use a special file to be merged into the registry, called a policy file (POLICY.POL). The policy file allows administrators to prevent non-administrator users from changing registry settings like, for instance, the security level of Internet Explorer and the desktop background wallpaper. The policy file is primarily used in a business with a large number of computers where the business needs to be protected from rogue or careless users.

The default extension for the policy file is .POL.
The policy file filters the settings it enforces by user and by group (a «group» is a defined set of users). To do that the policy file merges into the registry, preventing users from circumventing it by simply changing back the settings.
The policy file is usually distributed through a LAN, but can be placed on the local computer.

The policy file is created by a free tool by Microsoft that goes by the filename poledit.exe for Windows 95/Windows 98 and with a computer management module for Windows NT. The editor requires administrative permissions to be run on systems that uses permissions.
The editor can also directly change the current registry settings of the local computer and if the remote registry service is installed and started on another computer it can also change the registry on that computer.
The policy editor loads the settings it can change from .ADM files, of which one is included, that contains the settings the Windows shell provides. The .ADM file is plain text and supports easy localisation by allowing all the strings to be stored in one place.

Virtualization[edit]

INI file virtualization[edit]

Windows NT kernels support redirection of INI file-related APIs into a virtual file in a registry location such as HKEY_CURRENT_USER using a feature called «InifileMapping».[53] This functionality was introduced to allow legacy applications written for 16-bit versions of Windows to be able to run under Windows NT platforms on which the System folder is no longer considered an appropriate location for user-specific data or configuration. Non-compliant 32-bit applications can also be redirected in this manner, even though the feature was originally intended for 16-bit applications.

Registry virtualization[edit]

Windows Vista introduced limited registry virtualization, whereby poorly written applications that do not respect the principle of least privilege and instead try to write user data to a read-only system location (such as the HKEY_LOCAL_MACHINE hive), are silently redirected to a more appropriate location, without changing the application itself.

Similarly, application virtualization redirects all of an application’s invalid registry operations to a location such as a file. Used together with file virtualization, this allows applications to run on a machine without being installed on it.

Low integrity processes may also use registry virtualization. For example, Internet Explorer 7 or 8 running in «Protected Mode» on Windows Vista and above will automatically redirect registry writes by ActiveX controls to a sandboxed location in order to frustrate some classes of security exploits.

The Application Compatibility Toolkit[54] provides shims that can transparently redirect HKEY_LOCAL_MACHINE or HKEY_CLASSES_ROOT Registry operations to HKEY_CURRENT_USER to address «LUA» bugs that cause applications not to work for users with insufficient rights.

Disadvantages[edit]

Critics labeled the registry in Windows 95 a single point of failure, because re-installation of the operating system was required if the registry became corrupt.[citation needed] However, Windows NT uses transaction logs to protect against corruption during updates. Current versions of Windows use two levels of log files to ensure integrity even in the case of power failure or similar catastrophic events during database updates.[55] Even in the case of a non-recoverable error, Windows can repair or re-initialize damaged registry entries during system boot.[55]

Equivalents and alternatives[edit]

In Windows, use of the registry for storing program data is a matter of developer’s discretion. Microsoft provides programming interfaces for storing data in XML files (via MSXML) or database files (via SQL Server Compact) which developers can use instead. Developers are also free to use non-Microsoft alternatives or develop their own proprietary data stores.

In contrast to Windows Registry’s binary-based database model, some other operating systems use separate plain-text files for daemon and application configuration, but group these configurations together for ease of management.

  • In Unix-like operating systems (including Linux) that follow the Filesystem Hierarchy Standard, system-wide configuration files (information similar to what would appear in HKEY_LOCAL_MACHINE on Windows) are traditionally stored in files in /etc/ and its subdirectories, or sometimes in /usr/local/etc. Per-user information (information that would be roughly equivalent to that in HKEY_CURRENT_USER) is stored in hidden directories and files (that start with a period/full stop) within the user’s home directory. However XDG-compliant applications should refer to the environment variables defined in the Base Directory specification.[56]
  • In macOS, system-wide configuration files are typically stored in the /Library/ folder, whereas per-user configuration files are stored in the corresponding ~/Library/ folder in the user’s home directory, and configuration files set by the system are in /System/Library/. Within these respective directories, an application typically stores a property list file in the Preferences/ sub-directory.
  • RISC OS (not to be confused with MIPS RISC/os) uses directories for configuration data, which allows applications to be copied into application directories, as opposed to the separate installation process that typifies Windows applications; this approach is also used on the ROX Desktop for Linux.[57] This directory-based configuration also makes it possible to use different versions of the same application, since the configuration is done «on the fly».[58] If one wishes to remove the application, it is possible to simply delete the folder belonging to the application.[59][60] This will often not remove configuration settings which are stored independently from the application, usually within the computer’s !Boot structure, in !Boot.Choices or potentially anywhere on a network fileserver. It is possible to copy installed programs between computers running RISC OS by copying the application directories belonging to the programs, however some programs may require re-installing, e.g. when shared files are placed outside an application directory.[58]
  • IBM AIX (a Unix variant) uses a registry component called Object Data Manager (ODM). The ODM is used to store information about system and device configuration. An extensive set of tools and utilities provides users with means of extending, checking, correcting the ODM database. The ODM stores its information in several files, default location is /etc/objrepos.
  • The GNOME desktop environment uses a registry-like interface called dconf for storing configuration settings for the desktop and applications.
  • The Elektra Initiative provides alternative back-ends for various different text configuration files.
  • While not an operating system, the Wine compatibility layer, which allows Windows software to run on a Unix-like system, also employs a Windows-like registry as text files in the WINEPREFIX folder: system.reg (HKEY_LOCAL_MACHINE), user.reg (HKEY_CURRENT_USER) and userdef.reg.[61]

See also[edit]

  • Registry cleaner
  • Application virtualization
  • LogParser – SQL-like querying of various types of log files
  • List of Shell Icon Overlay Identifiers
  • Ransomware attack that uses Registry

Notes[edit]

  1. ^ When applications fail to execute because they request more privileges than they require (and are denied those privileges), this is known as a limited user application (LUA) bug.

Footnotes[edit]

  1. ^ Esposito, Dino (November 2000). «Windows 2000 Registry: Latest Features and APIs Provide the Power to Customize and Extend Your Apps». MSDN Magazine. Microsoft. Archived from the original on April 15, 2003. Retrieved July 19, 2007.
  2. ^ a b c «The System Registry».
  3. ^ «Windows 95 Architecture Components». www.microsoft.com. Archived from the original on February 7, 2008. Retrieved April 29, 2008. The following table shows other difficulties or limitations caused by using .INI files that are overcome by using the Registry.
  4. ^ Hipson 2002, p. 5, 41–43.
  5. ^ Richter, Jeffrey; Nasarre, Christophe (2008). Windows Via C/C++ (Fifth ed.). Microsoft Press. ISBN 9780735642461. Retrieved August 28, 2021.
  6. ^ Raymond Chen, «Why do registry keys have a default value?»
  7. ^ Hipson 2002, pp. 207, 513–514.
  8. ^ Hipson 2002, pp. 520–521.
  9. ^ Hipson 2002, p. 7.
  10. ^ «Designed for Windows XP Application Specification». Microsoft. August 20, 2002. Retrieved April 8, 2009.
  11. ^ «HKEY_LOCAL_MACHINE». Gautam. 2009. Retrieved April 8, 2009.
  12. ^ «Registry Keys Affected by WOW64 (Windows)». Msdn.microsoft.com. Retrieved April 10, 2014.
  13. ^ «Description of the Microsoft Windows registry». Retrieved September 25, 2008.
  14. ^ «HKEY_CURRENT_USER». Microsoft. 2009. Retrieved April 8, 2009.
  15. ^ «Description of the HKEY_DYN_DATA Registry Key in Windows 95, Windows 98, and Windows 98 SE». support.microsoft.com.
  16. ^ «A Closer Look at HKEY_DYN_DATA». rinet.ru. Archived from the original on May 9, 2008.
  17. ^ «Registry hives». Retrieved July 19, 2007.
  18. ^ Chen, Raymond (August 8, 2011). «Why is a registry file called a «hive»?». The Old New Thing. Retrieved July 29, 2011.
  19. ^ «Overview of the Windows NT Registry». Retrieved December 2, 2011.
  20. ^ «Inside the Registry». Retrieved December 28, 2007.
  21. ^ a b Norris, Peter (February 2009). «The Internal Structure of the Windows Registry» (PDF). Cranfield University. Archived from the original (PDF) on May 29, 2009.
  22. ^ «Incorrect Icons Displayed for .ico Files». November 15, 2009. Retrieved March 31, 2012.
  23. ^ «How to Completely Uninstall / Remove a Software Program in Windows without using 3rd Party Software? — AskVG». www.askvg.com. August 26, 2011.
  24. ^ «You may receive a «STOP 0x00000035 NO_MORE_IRP_STACK_LOCATIONS» error message when you try to log on to a domain». October 9, 2011. Retrieved March 31, 2012. This page tells the user to edit the registry when resolving the issue.
  25. ^ key renaming is implemented as removal and add while retaining subkeys/values, as the underlying APIs do not support the rename function directly
  26. ^ a b c d «How to add, modify, or delete registry subkeys and values by using a .reg file». support.microsoft.com.
  27. ^ «Applying Group Policy». Microsoft.
  28. ^ a b c Payette, Bruce; Siddaway, Richard (2018). Windows PowerShell in Action (Third ed.). Manning Publications. pp. 7–8, 24, 608, 708–710. ISBN 9781633430297. Retrieved August 28, 2021.
  29. ^ Warner, Timothy L. (May 2015). Windows PowerShell in 24 Hours, Sams Teach Yourself. Sams Publishing. p. 19, 211. ISBN 9780134049359. Retrieved August 28, 2021.
  30. ^ «Reading and Writing Registry Values with Visual Basic». Retrieved July 19, 2007.
  31. ^ «REG command in Windows XP». Retrieved July 19, 2007.
  32. ^ «registry manual page – Tcl Bundled Packages». www.tcl.tk. Retrieved December 14, 2017.
  33. ^ «Offline Registry Library». Retrieved June 4, 2014.
  34. ^ «DllInstall Function». Microsoft. March 7, 2012. Retrieved March 22, 2012.
  35. ^ «Regsvr32». Microsoft. Retrieved March 22, 2012.
  36. ^ «How to: Register Automation Servers». Microsoft. Retrieved March 22, 2012.
  37. ^ «How to re-register PowerPoint 2000, PowerPoint 2003, PowerPoint 2007 and PowerPoint 2010». Microsoft. January 2012. Retrieved March 22, 2012.
  38. ^ «RegNotifyChangeKeyValue function». Microsoft.
  39. ^ «Registering for Notifications». Microsoft.
  40. ^ «RegConnectRegistry function». Microsoft.
  41. ^ «How to Manage Remote Access to the Registry». Microsoft.
  42. ^ Gibson, Darril (June 28, 2011). «Chapter 4: Securing Access with Permissions». Microsoft Windows security : essentials. Indianapolis, Ind.: Wiley. ISBN 978-1-118-01684-8.
  43. ^ «Application Compatibility: Windows Resource Protection (WRP)». Microsoft. Retrieved August 8, 2012.
  44. ^ Marc Silbey, Peter Brundrett. «Understanding and Working in Protected Mode Internet Explorer». Retrieved August 8, 2012.
  45. ^ «RegDelNull v1.1». November 1, 2006. Retrieved August 8, 2012.
  46. ^ «Unable to delete certain registry keys – Error while deleting key». March 23, 2010. Retrieved August 8, 2012. Microsoft Support page.
  47. ^ «Description of the Windows Registry Checker Tool (Scanreg.exe)».
  48. ^ «Command-Line Switches for the Registry Checker Tool».
  49. ^ «How To Backup, Edit, and Restore the Registry in Windows NT 4.0». support.microsoft.com.
  50. ^ «Technical Reference to the Registry: Related Resources». Microsoft. Retrieved September 9, 2011.
  51. ^ «Microsoft Kills Automatic Registry Backups in Windows 10». ExtremeTech. Retrieved July 1, 2019.
  52. ^ «How Core Group Policy Works». Microsoft. September 2, 2009. Retrieved August 13, 2012.
  53. ^ «Chapter 26 – Initialization Files and the Registry». Microsoft. Retrieved March 3, 2008.
  54. ^ «Microsoft Application Compatibility Toolkit 5.0». Microsoft. Retrieved July 26, 2008.
  55. ^ a b Ionescu, Mark Russinovich, David A. Solomon, Alex (2012). «Registry Internals». Windows internals (6th ed.). Redmond, Wash.: Microsoft Press. ISBN 978-0-7356-4873-9.
  56. ^ «XDG Base Directory Specification». standards.freedesktop.org.
  57. ^ «Application directories». Archived from the original on May 27, 2012. Retrieved May 17, 2012.
  58. ^ a b «Case Studies Of The Top 132 Annoyances With Operating Systems Other Than RISC OS». Retrieved April 3, 2012. Page from the riscos.com website. Mentioned in points 82 and 104.
  59. ^ «RISC OS tour». Retrieved July 19, 2007.
  60. ^ «The RISC OS Products Directory». November 2, 2006. Archived from the original on February 19, 2007. Retrieved April 1, 2012.
  61. ^ 3.2. Using the Registry and Regedit (Wine User Guide)

References[edit]

  • Hipson, Peter (2002). Mastering Windows XP Registry. Wiley. ISBN 0-7821-2987-0. Retrieved August 28, 2021.
  • Russinovich, Mark E.; Solomon, David A. (2005). Microsoft Windows Internals (Fourth ed.). Microsoft Press. pp. 183–236. ISBN 978-0-7356-1917-3.

External links[edit]

  • Windows Registry info & reference in the MSDN Library

Содержание

  • 1 Что такое «Редактор реестра» и для чего он нужен
  • 2 Как открыть «Редактор реестра» на Windows 10
  • 3 Как создать ярлык для быстрого запуска реестра на Windows 10
  • 4 Местонахождение
  • 5 Редактор реестра
  • 6 Изменение параметров
  • 7 Сторонние программы для очистки реестра
  • 8 Восстановление значений реестра
  • 9 Вывод
  • 10 Что такое реестр
  • 11 Где хранятся файлы реестра
  • 12 Запуск редактора
  • 13 Структура реестра

Не все начинающие пользователи знают, что такое «Редактор реестра» на ПК и как его можно запустить. Сегодня рассмотрим, для чего нужен этот встроенный сервис, а также как его открыть на Windows 10 всеми возможными способами.

Что такое «Редактор реестра» и для чего он нужен

Реестр в ОС Windows — большая база данных, в которой хранятся в упорядоченном виде все актуальные настройки как встроенных и сторонних программ на ПК, так и всей операционной системы в целом. Во время работы компьютера система постоянно обращается к нему за необходимой информацией.

Реестр создан для повышения скорости работы ОС. Он постоянно изменяется во время работы на ПК, делает записи об ошибках и сбоях в системе. Со временем реестр засоряется и может замедлить работу компьютера.

«Редактор реестра» — системное приложение, которое позволяет просматривать записи в реестре, а также изменять их. В редакторе можно настраивать параметры, которые недоступны в пользовательском интерфейсе. С помощью этого сервиса можно:

  • настроить ПК на работу в полную силу;
  • заставить его работать медленно;
  • открывать утилиты, которые раньше не запускались;
  • устанавливать новые параметры конфигурации ОС;
  • очищать реестр от ненужных файлов, которые остались от давно удалённых программ и многое другое.

Учтите, что редактирование реестра — рискованное занятие, так как вы можете повредить или удалить ключи, которые нужны для нормального функционирования ОС. Сделайте копию реестра, чтобы вы смогли восстановить все до исходного состояния, если произойдёт сбой после изменения записей реестра.

Содержание «Редактора реестра»

Редактор реестра похож на окно «Проводника Windows». Он разделён на две части: в левой расположены ветки разделов, а в правой отображаются сами записи реестра.

Окно «Редактора реестра» разделено на две части

В левой части есть пять главных разделов:

  1. HKEY_CURRENT_USER (HKCU). Этот раздел отвечает за данные пользователя, вошедшего в систему в настоящий момент . Здесь хранятся папки пользователя, фон экрана, значки рабочего стола и т. п.
  2. HKEY_USERS (HKU). Здесь содержится информация обо всех профилях на компьютере.
  3. HKEY_LOCAL_MACHINE (HKLM). В этом разделе хранится конфигурация аппаратного и программного обеспечения. Некоторые данные подраздела HARDWARE хранятся в ОЗУ, а не на жёстком диске. Это связано с тем, что они временные по своей природе и нужны только при загрузке аппаратного обеспечения, а затем удаляются.
  4. HKEY_CLASSES_ROOT (HKCR) содержит сведения о расширениях всех зарегистрированных в системе типов файлов и ассоциациях (отвечает за запуск необходимой программы при открытии файла с помощью «Проводника Windows») и сведения о внедрённых СОМ-серверах.
  5. HKEY_CURRENT_CONFIG. Данный раздел содержит аппаратные параметры, необходимые для загрузки системы.

Как открыть «Редактор реестра» на Windows 10

Запустить этот сервис на Windows 10 можно несколькими способами. Рассмотрим все методы.

Открытие с помощью строки поиска в «Пуске»

Первый и самый быстрый способ запустить «Редактор реестра» на Windows 10 — ввести запрос в универсальной поисковой строке «Пуска». Что конкретно нужно сделать?

  1. Левой кнопкой мыши кликните по кнопке «Пуск».
    Найдите строку поиска в меню «Пуск»

    </p>

  2. В нижней части меню будет строка поиска. Введите в неё запрос regedit.
    Введите поисковой запрос regedit в меню «Пуск»

    </p>

  3. В результатах поиска сразу появится «Редактор реестра». Откройте его двойным щелчком левой кнопки мыши.
  4. Щёлкните по кнопке «Да». Тем самым вы разрешите «Редактору реестра» вносить изменения на вашем компьютере. После этого откроется нужное окно.
    Кликните левой кнопкой мыши по «Да»

    </p>

С помощью окна «Выполнить»

Окно «Выполнить» служит универсальным средством для запуска программ, открытия папок, документов и веб-страниц в интернете. С помощью него можно открыть и «Редактор реестра». Рассмотрим пошагово, как это сделать:

  1. Зажмите комбинацию клавиш на клавиатуре: Win + R. Запустится небольшое окошко «Выполнить».
    Комбинация клавиш Win + R запустит окно «Выполнить»

    </p>

  2. В поле введите слово regedit. Щёлкните по ОК или по Enter на клавиатуре.
    В поле «Открыть» введите команду regedit

    </p>

  3. Нажмите на «Да» — откроется «Редактор реестра».

С помощью «Командной строки»

«Командная строка» — редактор для введения различных команд на ПК. Она также способна открывать программы и сервисы, как и окно «Выполнить». Что нужно сделать, чтобы запустить «Командную строку», а затем «Редактор реестра»?

  1. В строке поиска в «Пуске» введите запрос «Командная строка». Откройте раздел, появившийся в результатах.
    Введите «Командная строка» в поиск в «Пуске»

    </p>

  2. В чёрном окне редактора введите команду regedit. Нажмите на Enter.
    Напишите команду regedit и нажмите на Enter

    </p>

  3. Кликните по «Да» — запустится окно «Редактора реестра».

Через файл самого реестра на системном диске

У «Редактора реестра» есть свой файл на системном диске. Запустите редактор, просто открыв этот файл через «Проводник Windows».

  1. Двойным щелчком мыши откройте ярлык «Этот компьютер» на «Рабочем столе», чтобы запустить «Проводник Windows».
  2. Откройте «Локальный диск С:».
    Откройте системный диск

    </p>

  3. В нём откройте папку Windows.
    Откройте папку Windows на системном диске

    </p>

  4. Прокрутите окно вниз и найдите файл regedit. Откройте его двойным щелчком левой кнопки мыши.
    Запустите файл regedit

    </p>

  5. Нажмите на «Да».

Видео: что сделать, чтобы открылось окно «Редактора реестра»

Как создать ярлык для быстрого запуска реестра на Windows 10

Если вам часто приходится открывать «Редактор реестра», сделайте ярлык этого сервиса и поместите его на «Рабочий стол», чтобы он всегда был у вас под рукой. Вы сможете запускать сервис всего в один клик. Как создать ярлык?

  1. На «Рабочем столе» кликните правой кнопкой мыши по свободной от значков области. В контекстном меню выберите «Создать», а затем в новом списке — пункт «Ярлык».
    Выберите «Создать» в контекстном меню, а затем кликните по «Ярлык»

    </p>

  2. В появившемся окне щёлкните по «Обзор», чтобы найти файл для будущего ярлыка. Файл «Редактора реестра» находится на системном диске в папке Windows. Кликните по ОК.
    Укажите путь к файлу regedit

    </p>

  3. Нажмите на кнопку «Далее» внизу окна.
  4. Напишите новое имя для ярлыка или оставьте regedit. Кликните по «Готово».
    Кликните по «Далее»

    </p>

  5. На «Рабочем столе» появится ярлык «Редактора реестра».
    Ярлык regedit появился на «Рабочем столе»

    </p>

«Редактор реестра» можно открыть четырьмя способами: через строку поиска в «Пуске», окно «Выполнить», «Командную строку» и «Проводник Windows». Если вам нужно часто запускать этот сервис, создайте ярлык на «Рабочем столе» — у вас появится быстрый доступ к окну.

Реестр – особая часть операционной системы Windows, которая представляет собой базу данных из всех параметров или настроек ОС. Все опции Панели управления и других мест системы, где есть возможность изменения каких-либо параметров, зафиксированы в реестре. Там же хранятся данные о путях к файлам, о расположении установленных программ и других моментах, связанных с функционированием Windows. Чтобы открыть реестр в Windows 10 используются те же способы, которые применялись в 7 и 8 версии ОС – здесь Microsoft ничего не переделывали. Настраивать и оптимизировать ОС можно также и с помощью сторонних программ.

Местонахождение

Физически реестр состоит из группы файлов, которые хранятся в папке System32config. При загрузке ОС из этих файлов собирается база данных с текущими параметрами, которые и применяются в работе Windows. Эта база состоит из пяти главных веток. Редактировать файлы из указанного каталога напрямую не рекомендуется, поскольку для того, чтобы войти в реестр Windows 10, существует специальный инструмент, зовущийся regedit.

Редактор реестра

Запуск редактора значений реестра осуществляется следующим образом:

  1. Щелкнуть по поисковой строке на панели задач или воспользоваться сочетанием клавиш Win + S.
  2. Вписать в текстовое поле команду «regedit».
  3. При появлении результатов поиска нажать на кнопку «выполнить команду».

Совет! Eсли функции поиска на панели задач не активированы в настройках, то для запуска приложения можно всегда использовать стандартный диалог «Выполнить», который появляется по нажатию Win + R.

Изменение параметров

Процесс внесения правок в содержимое реестра представляет собой поиск нужной строки в определенном каталоге и указание нового значения для неё. Поиск нужной строки проще всего осуществить через соответствующую опцию, которая вызывается сочетанием клавиш Ctrl + F или кнопкой F3.

Редактировать реестр в Windows 10 нужно крайне осторожно, поскольку неверное значение в каком-либо параметре может привести к ошибке при следующей загрузке системы и выведению её из строя. Прежде чем вносить изменения в какой-либо параметр, следует поискать в интернете информацию о нём.

Совет! Перед редактированием реестра рекомендуется создавать резервную копию через меню «Файл» -> «Экспорт».

Сторонние программы для очистки реестра

Для очистки реестра Windows 10 от ненужных строк и ошибочных значений пользователи устанавливают стороннее программное обеспечение, поскольку ОС не обладает в своём составе необходимыми функциями. Ошибки в реестре могут появляться в результате сбоев установленных программ, а пустые строки – из-за не до конца удаленных приложений.

Например, почистить реестр на Windows 10 можно утилитой CCleaner, которая распространяется бесплатно на сайте компании-разработчика. Скачав и установив данный продукт, можно приступить к процедуре поиска неисправностей и их устранения. Для этого нужно:

  1. Запустить CCleaner.
  2. Перейти на вкладку «Реестр».
  3. Нажать на кнопку «Поиск проблем».
  4. Дождаться завершения процедуры поиска.
  5. Нажать на кнопку «Исправить».
  6. Подтвердить создание резервной копии и указать файл для сохранения текущей версии значений реестра.
  7. Щелкнуть по кнопке «Исправить отмеченные».
  8. Закрыть окно.

Восстановление значений реестра

В том случае, если после ручного редактирования значений реестра или автоматической чистки с применением стороннего программного обеспечения наблюдаются проблемы в работе операционной системы, нужно восстановить реестр Windows 10 до прежнего состояния. Делается это путём импортирования созданного на этапе редактирования файла.

Для того, чтобы записать значения из файла в реестр, потребуется:

  1. С помощью Проводника Windows найти папку, хранящую *.reg-файл с резервной копией.
  2. Дважды кликнуть по файлу.
  3. Подтвердить импорт значений.

Совет! Восстановить данные из файла можно и непосредственно находясь в редакторе. Для этого используйте меню «Файл» -> «Импорт», и укажите ранее созданный reg-файл.

Наглядно увидеть работу с реестром ОС можно в этом видео.

Вывод

Реестр Windows – мощный инструмент для управления ОС, предоставляющий доступ ко многим параметрам, не реализованным в стандартном визуальном интерфейсе Windows. Для доступа к таким параметрам часто применяют программы-твикеры, которые могут настроить размер оконных рамок проводника, время проигрывания анимаций и много других параметров. В любом случае, изменять параметры реестра не рекомендуется без особой причины, а перед исправлением ошибочных значений всегда следует создавать резервную копию.

НачалоWindows 10Реестр Windows 10

Наверное, каждый из читателей сталкивался с такими понятиями, как «чистка реестра» или «редактор реестра». А кто знает, что собой представляет реестр, зачем он нужен, что в нем хранится? Статья посвящена краткому обозрению системного реестра Windows 10 и рассмотрению поставленных выше и других вопросов.

Что такое реестр

Реестр Windows 10 – основное хранилище операционной системы, построенное в виде иерархической базы данных. В ней хранится каждый параметр, каждая настройка операционной системы, информация про установленное на компьютере программное обеспечение и функционирующие аппаратные компоненты, данные обо всех аккаунтах пользователей. В этой БД записаны ассоциации файлов и системные политики. Каждая программа, работающая на ПК, обязательно обращается к реестру, например, с целью получения какой-либо информации о системе.

Где хранятся файлы реестра

В целом файлы базы данных Windows располагаются в различных подпапках системного каталога. Вследствие установки ОС в соответствующих каталогах создаются файлы, в которых записывается ключевая информация о системе. Первичная настройка параметров Виндовс перед ее первой загрузкой – это внесение изменений в созданные на ранних этапах установки файлы реестра. При создании нового пользователя, когда запись администратора блокируется программой установки Windows 10, в реестре формируется и новый куст, в коем записана информация об этой учетной записи.

Куст – это раздел, который располагается на HDD как отдельный файл. В реестре Windows 10 присутствует несколько классических кустов:

  • HKCR – здесь записана информация об известных Windows 10 типах документов и их ассоциациях с программами для открытия по двойном клику;
  • HKCU – хранится настройка параметров вошедшего в систему пользователя;
  • HKLM – записаны сведения об аппаратной конфигурации компьютера (список оборудования, режимы его функционирования, версии драйверов);
  • HKCC – содержит две ветки, в первой из которых хранится конфигурация программного обеспечения, во второй – параметры системы (большинство ключей раздела, доступные для редактирования посредством графического интерфейса Виндовс 10);
  • HKU – здесь содержатся настройки каждой учетной записи загруженной операционной системы.

Посмотрите ещё:  Как выключить Windows 10 различными способами

Например, в файлах SAM, SYTEM, SOFTWARE, SECURITY (все без расширения), расположенных в папке System32Config или SysWOW64Config (если используете 64-х битную редакцию Windows 10) записаны параметры разделов куста HKLM, соответственно их названию. Данные из HKEY_CURRENT_USER хранятся в документе NTUSER.DAT, расположенном в каталоге Users/ИмяПользователя.

Фото-1-4.jpg

Пользователю закрыт прямой доступ к файлам реестра посредством проводника, файловых менеджеров, сторонних текстовых или hex-редакторов. Изменять значения ключей можно посредством специальных приложений, называемых твикерами, или при помощи редакторов реестра. Твикеры работают просто: пользователь изменяет значение какого-либо параметра посредством ползунка, флажка или введения его значения, а приложение делает соответствующие манипуляции с ключами реестра посредством использования специальных процедур для получения доступа к файлам главной базы данных Windows 10. Редакторы (рассмотрим на примере интегрированного в «десятку» приложения) предоставляют прямой доступ к редактированию записей: удалению, изменению, экспорту, импорту и добавлению.

Фото-2-4.jpg

Если настройка Windows 10 при помощи твикеров – дело совсем простое, то использование редактора реестра для решения некоторых проблем ставит перед новичком непростую задачу. Рассмотрим, как пользоваться встроенными в «десятку» средствами для изменения параметров реестра.

Запуск редактора

Разработчики Windows, начиная с редакции 95-го года, предоставляют пользователю возможность вносить изменения практически в любой параметр реестра напрямую. Делается это при помощи интегрированного редактора. Запускается он одним из предложенных методов.

  • Вызываем командный интерпретатор (Win+R), вводим «regedit» и выполняем команду, нажав «ОК»

Фото-3-4.jpg

  • Используем поисковую строку для запуска regedit.exe.

Фото-4-4.jpg

  • Запускаем «regedit» из каталога хранения файла.

Для этого заходим в папку «Windows» и вводим соответствующую фразу, чтобы не искать исполняемый файл в дебрях системных папок (тем более, для разных разрядностей Windows это будут разные каталоги).

Фото-5-3.jpg

Структура реестра

Концепция структуры реестра сильно напоминает структуру файловой системы, где:

  • кусты – это тома дисков;
  • разделы – каталоги;
  • ключи – файлы.

Посмотрите ещё:  Стоит ли устанавливать новую Windows 10

На скриншоте показана структура базы данных Windows 10. Под цифрой 1 расположена иерархия разделов, 2 – названия ключей, параметров, 3 – это значения ключей.

Фото-6-3.jpg

Работа в редакторе реестра происходит так же, как и в файловом менеджере при отображении древовидной структуры каталогов.

Фото-7-3.jpg

Навигация по разделам осуществляется при помощи мыши или курсорных клавиш, кнопок «Enter» и «BackSpace», а редактирование – посредством «F2» или контекстного меню соответствующего объекта.

При работе с реестром нет никаких сложностей даже для новичка, главное – соблюдать осторожность, не совершать необдуманных операций и создавать резервные копии изменяемых параметров.

(Visited 8 452 times, 3 visits today) Опубликовано в Windows 10Используемые источники:

  • https://winda10.com/nastrojki/redaktor-reestra-windows-10.html
  • https://geekon.media/rabota-s-reestrom-v-windows-10-2/
  • https://windowsprofi.ru/win10/reestr-windows-10.html

В данной статье показаны различные способы, с помощью которых можно открыть редактор реестра (regedit.exe) в операционной системе Windows 10.

Редактор реестра (англ. Registry Editor) – это системный инструмент операционной системы Windows, предназначенный для просмотра и изменения параметров в системном реестре Windows, в котором содержится информация и настройки для аппаратного и программного обеспечения, профилей пользователей, а также различные настройки интерфейса операционной системы.

Далее в статье показаны различные способы доступа к редактору реестра в Windows 10.

Содержание

  1. Как открыть редактор реестра используя окно «Выполнить»
  2. Как открыть редактор реестра используя «Поиск в Windows»
  3. Как открыть редактор реестра в меню «Пуск»
  4. Как открыть редактор реестра используя Проводник Windows
  5. Как открыть редактор реестра используя «Панель управления»
  6. Как открыть редактор реестра в системном каталоге «Windows»
  7. Как открыть редактор реестра в командной строке и в Powershell

Как открыть редактор реестра используя окно «Выполнить»

Чтобы открыть редактор реестра, нажмите сочетание клавиш + R, в открывшемся окне Выполнить введите regedit и нажмите клавишу Enter ↵.

Как открыть редактор реестра используя «Поиск в Windows»

Чтобы открыть редактор реестра, используйте «Поиск в Windows», для этого нажмите на значок поиска в панели задач или нажмите сочетание клавиш + S, в строке поиска начните вводить редактор реестра и в результатах поиска выберите Редактор реестра Классическое приложение

Также в строке поиска начните вводить regedit и в результатах поиска выберите Редактор реестра Классическое приложение

Как открыть редактор реестра в меню «Пуск»

Откройте меню «Пуск», в списке приложений в группе под буквой «С», найдите и разверните папку Средства администрирования Windows и выберите Редактор реестра.

Также Вы можете закрепить «Редактор реестра» на начальном экране или на панели задач, для этого выберите соответствующий пункт контекстного меню вызываемого нажатием правой кнопкой мыши.

Как открыть редактор реестра используя Проводник Windows

Откройте Проводник Windows, в адресной строке введите regedit и нажмите клавишу Enter ↵.

Как открыть редактор реестра используя «Панель управления»

Откройте классическую панель управления, в выпадающем списке Просмотр: выберите Мелкие значки и затем выберите пункт Администрирование.

Затем в открывшейся папке Администрирование выберите Редактор реестра.

Как открыть редактор реестра в системном каталоге «Windows»

Откройте Проводник Windows и перейдите по следующему пути:

C:\Windows\

Чтобы открыть редактор реестра, дважды кликните по файлу regedit.exe

Как открыть редактор реестра в командной строке и в Powershell

Также открыть редактор реестра можно в командной строке или в консоли Windows PowerShell, для этого запустите командную строку или консоль PowerShell и выполните команду regedit.

Теперь, используя любой из представленных выше способов, можно открыть редактор реестра в операционной системе Windows 10.

На скриншоте ниже показан пример окна редактора реестра.

Как зайти в Редактор реестра и запустить его на ОС Windows 10, 7 способов

Операционная система Виндовс состоит из нескольких блоков, отвечающих за работу и взаимодействие всех необходимых инструментов. Некоторые настройки выполняются только через внутренний Редактор реестра операционки Windows 10. Раздел позволяет изменять значения и функционал встроенных папок Винды от имени Администратора и через стандартные варианты профилей.

Что такое Редактор реестра

Registry Editor (название Редактора реестра на оригинальном языке разработчика) является стандартной программой, включенной в операционную систему любой версии Windows компании Microsoft. Приложение позволяет редактировать наименования, ключи, просматривать доступные значения. Блок находится внутри операционки и является ее главной частью.

screenshot_1

Особенности:

  • программа структурирована по разделам;
  • база данных содержит всю информацию об установленных драйверах, службах и приложениях;
  • внешне инструмент выглядит как стандартная папка, разделенная на две части – слева выводятся названия подразделов, справа открывается возможность редактирования.

Запустить редактор изменения данных реестра можно несколькими разными способами.

Внимание! Редактировать информацию встроенных программ и папок можно, если детально следовать инструкциям. Если навыков и знаний недостаточно, лучше обратиться к мастеру.

screenshot_2

Как его найти

Разработчики компании Microsoft предусмотрели несколько вариантов активации режима «Редактор реестра». Пользователь решает самостоятельно, какой из способов выбрать в текущей работе.

Через окно «Выполнить»

Зайти в меню редактирования встроенных данных можно через дополнительное окно «Выполнить». Метод считается быстрым. Этапы действий:

  • запустить режим необходимой программы, зажав одновременно сочетание горячих клавиш «Win» (кнопка на клавиатуре с символикой операционной системы) и «R»;

screenshot_3

  • в пустой строке с названием «Открыть» ввести команду regedit.

screenshot_4

Исполнение действия подтверждают клавишей «Enter» на клавиатуре или кнопкой «ОК» на мониторе персонального устройства (стационарного компьютера или ноутбука).

screenshot_5

Используя меню Пуск

Меню Пуск позволяет пользователю получить доступ к любым программам и приложениям, установленным на ПК (системным или дополнительно скачанным). Инструкция:

  • кликнуть на дисплее компьютера по иконке необходимого режима;

screenshot_6

  • в поисковой строке ввести команду regedit

screenshot_7

  • кликнуть «Enter».

screenshot_8

Внимание! Данный метод подходит для активации Редактора, если на ПК установлена система версии Vista или «семерка». Если пользователь работает в «десятке», открыть приложение можно только следующим способом.

Через Поиск в Windows

Поисковая строка запускает программу, используя команду regedit. Инструмент располагается на Панели управления персонального устройства или в главном меню режима Пуск. В пустое поле необходимо вписать указанное значение и подтвердить операцию.

screenshot_9

Панель управления

Панель управления компьютера предоставляет доступ к различным приложениям и программам ПК. Через данный раздел осуществляются настройки и изменения системных блоков и папок операционной системы. В десятой версии ОС зайти в раздел RegEdit (Registry Editor) через данный блок не получится.

screenshot_10

В системном каталоге Windows

Чтобы перейти в раздел редактирования каталога через встроенный реестр Windows, необходимо использовать внутренние папки операционной системы. В данный блок входят «Мой компьютер», «Сетевое окружение», «Корзина» и «Проводник». Воспользоваться функцией можно, если создать отдельный файл в системном каталоге операционки Винды.

screenshot_11

В Командной строке и в Powershell

Включить Редактор реестра операционной системы можно через Командную строку или PowerShell. Инструкция:

  • кликнуть по значку «Пуск» на экране персонального компьютера (стационарного или ноутбука);

screenshot_12

  • в строке поиска устройства ввести значение CMD;

screenshot_13

  • по выпавшему в поиске приложению кликнуть правой кнопкой мышки, чтобы вызвать контекстное меню программы.

screenshot_14

Внимание! Чтобы внесенные изменения начали работать во всех созданных профилях ПК, запускать утилиту необходимо от имени Администратора.

На мониторе появится командное окно настроек черного цвета. В пустой строке вводят значение regedit и подтверждают операцию.

Через файл самого реестра на системном диске

Редактор реестра считается главным блоком ПК, используемым для настройки внутренних папок операционной системы Виндовс. Отдельный файл программы находится на носителе встроенного типа ПК. Этапы действий:

  • открыть Проводник;

screenshot_15

  • перейти на раздел «Мой компьютер»;

screenshot_16

  • выбрать главный жесткий диск персонального устройства – заглавная буква «С».

screenshot_17

В левой части нового окна появится список файлов, документов и папок. Необходимо найти значение «regedit» и кликнуть по нему дважды.

Как создать ярлык для быстрого запуска

Если при работе с ПК необходимо часто обращаться к панели Редактора, можно создать специальный ярлык на рабочем столе. Этапы действий:

  • запустить Редактор реестра доступным способом;

screenshot_18

  • зайти в меню «Файл» (вверху слева);

screenshot_19

  • кликнуть по строке «Экспорт…»;

screenshot_20

  • в новом окне нужно ввести название нового ярлыка, выбрать диапазон (полный реестр или отдельная ветка).

screenshot_21

После этого необходимо подтвердить операцию, нажав кнопку «Сохранить» на мониторе.

Внимание! Редактор реестра позволяет внести изменения во внутренние разделы операционной системы персонального устройства. Корректировка должна вноситься в точном соответствии с инструкциями. Исправить возможные ошибки достаточно сложно.

Разработчики компании Microsoft предусмотрели несколько вариантов открытия программы, предназначенной для корректировки продуктов операционки. При сохранении изменений в Реестре следует создавать резервные копии данных, чтобы, при необходимости, была возможность вернуть значения к прежним показателям. Другой вариант – производить экспорт конкретной ветки Редактора.



Часто советы на нашем сайте связанны с реестром Windows 10  и редактором реестра. Что именно представляет собой Реестр и что такое RegEdit? Те, кто знаком с Windows, в течение многих лет не нуждаются в объяснении, но большинство новых пользователей Windows 10, найдут этот пост полезным.

Сегодня я попытаюсь объяснить основы редактора реестра. Это включает аргументы командной строки, основные методы работы с этой программой и многое другое. Читайте ниже, если вам интересно.

Редактор реестра появился как инструмент для пользователей, желающих внести изменения в настройки Windows, которые не отображаются в пользовательском интерфейсе. Основной целью этого инструмента изменение настроек в системном реестре — набор специальных файлов, которые содержат информацию о конфигурации Windows, и почти всех установленных программ. Windows и многие программы (за исключением » portable «) имеют свои собственные настройки в реестре.

Как открыть приложение Редактор реестра Windows 10.

Независимо от того, какая версии Windows 10 у вас установлена, эти способы будут работать:

Способ 1: Нажмите сочетание клавиш Win + R на клавиатуре, откроется диалоговое окно «Выполнить». В строку введите «regedit»  без кавычек и нажмите клавишу Enter. Подтвердите действие в окне  контроля учетных записей.

открыть приложение Редактор реестра с помощью команды Выполнить Regedit

Способ 2: Откройте «Проводник» Windows 10, в адресной строке Проводника наберите Regedit и нажмите клавишу Enter.

в адресной строке Проводника наберите Regedit

Способ 3: Перейдите в меню «Пуск» → «Средство администрирования…» → «Редактор реестра» 

открыть приложение Редактор реестра с помощью Средства администрирования

Способ 4: Основной исполняемый файл редактора реестра находится в директории C:Windows. Таким образом, вы можете перейти к этой папке и запустить файл regedit.exe вручную. 

открыть приложение Редактор реестра с помощью проводника

Также вы можете создать ярлык для программы Regedit.exe и закрепить его в меню «Пуск» на «Начальном экране» или «Панели задач» Windows 10. Это позволит получить доступ к редактору реестра в один клик.

закрепить его в меню Пуск

Способ 5: Откройте меню «Пуск» и начните набирать на клавиатуре «реестр», это должно показать приложение редактор реестра в верху списка. Нажмите, чтобы открыть его.

открыть приложение Редактор реестра с помощью поиска Windows 10

Это позволяет открыть редактор реестра с правами администратора.

Способ 6: Откройте Командную строку или Power Shell от имени администратора. Введите regedit и нажмите Enter, чтобы открыть редактор реестра.

открыть приложение Редактор реестра с помощью командной строки или Power Shell

Редактор реестра выглядит следующим образом:
Редактор реестра

Содержание редактора реестра

Как видно на картинке выше, редактор состоит из двух панелей — левая панель показывает «Разделы» системного реестра в виде дерева, а в правой панели отображаются «Параметры».

  1. Разделы представляют собой виртуальное представление данных из нескольких файлов, которые формируют базу данных реестра. Вы можете увидеть, какие файлы представляют вашу базу данных реестра, если вы откроете следующий раздел:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlhivelist

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlhivelist

  1. Здесь вы можете увидеть список параметров, где файлы реестра хранятся на жестком диске. Данные внутри них, как уже упоминалось выше, имеют иерархическую структуру. 

Обратите внимание, что некоторые части базы данных реестра никогда не отображаются в редакторе реестра. Например, вы никогда не увидите SAM (диспетчера учетных записей безопасности) внутри Regedit.
 

Как создать новый раздел

Чтобы создать новый раздел реестра, необходимо кликнуть правой кнопкой мыши на родительский раздел в левой панели и выбрать в контекстном меню  команду «Создать» → «Раздел».

Как создать новый раздел

Вы должны дать вновь созданному разделу собственное имя в соответствии с требованиями программного обеспечения, для которого вы создаете его. Вы можете экспортировать (сохранить) ключ в файл * .reg из контекстного меню. При экспорте в файл, вы можете позже просто дважды кликнуть файле .reg, чтобы импортировать (вернуть) его содержимое обратно в реестр Windows 10.

Как создать новый Параметр

Чтобы создать новый параметр, необходимо кликнуть правой кнопкой мыши

  • на разделе в левой панели
  • на пустой области в правой панели.

Как создать новый Параметр

Выберите подходящий тип для нового параметра и введите его имя. Дважды кликните параметр, который вы создали, чтобы установить свои данные при необходимости.

Как сделать резервную копию и восстановить параметры реестра в Windows 10

Всякий раз, когда вы вносите изменения в реестр Windows, рекомендуется сначала сделать резервную копию. Вы можете создать резервную копию всего реестра достаточно легко, и затем восстановить его если что-то пошло не так. Если вы редактируете только один или два параметра реестра и планируете внести другие изменения в реестр позже, одной резервной копии будет недостаточно. Вы можете делать новые резервные копии каждый раз, вы можете делать столько копий, сколько потребуется. Гораздо проще создавать резервные копии отдельных разделов, особенно если вы часто редактируете реестр. Вы можете сделать резервную копию и восстановить параметры реестра из резервной копии. Вот как.

Резервная копия раздела реестра

Откройте реестр Windows и перейдите к нужному разделу, для которого вы хотите сделать резервную копию. кликните правой кнопкой мыши и выберите в контекстном меню «Экспортировать». Сохраните раздел реестра в месте, из которого вы не сможете случайно удалить его. Если у раздела есть подразделы, они тоже будут сохранены.

Резервная копия раздела реестра

Восстановить раздел реестра

Есть два способа восстановить раздел реестра. Первый из самого редактора реестра Windows. Перейдите в «Файл» →  «Импорт» и выберите копию раздела реестра, который вы хотите восстановить.

Восстановить раздел реестра

Второй способ, перейдите в папку, в которой вы сохранили резервную копию раздела реестра. Кликните правой кнопкой мыши на файле и выберите параметр «Слияние». Вы увидите на экране предупреждение, предупреждающее вас об опасности редактирования реестра. Примите это, и раздел будет добавлен. Вам не нужно открывать редактор реестра или что-то еще. Раздел будет восстановлен, и вы получите на экране уведомление о том, что все готово.

Кликните правой кнопкой мыши на файле и выберите параметр «Слияние»

Изменения, которые может иметь раздел или параметр, может появиться сразу же или потребовать перезагрузки системы. Это зависит от параметра, того, для чего он нужен, и от того, какие изменения он вносит, поэтому мы не можем с уверенностью сказать, потребуется ли вам перезагрузка или нет.

Примечание: Для импорта раздела реестра вам необходимы права администратора.

Следует отметить, что если вы планируете создавать резервные копии большого количества разделов реестра, всегда полезно организовывать их. Вы всегда можете открыть файл .REG в Блокноте и просмотреть его содержимое, чтобы увидеть, какие изменения он внесет, или вы можете хранить их в папках, которые сообщают вам, для чего он.

  • Что делать, если редактор реестра Windows 10 отключен администратором?

  • Как получить полный доступ к конкретной записи реестра для редактирования или удаления.

  • Быстрая навигация в редакторе реестра

  • Закладки для быстрой навигации в системном реестре Windows 10

  • Windows 10 как изменить шрифт редактора реестра

Переключение между HKCU и HKLM в редакторе реестра в Windows 10

В операционной системе Windows 10, Microsoft добавила возможность быстрого перехода между аналогичными разделами реестра ветви HKEY_LOCAL_MACHINE и HKEY_CURRENT_USER.

Например, Подраздел Software существует в следующих ветвях:

  • HKEY_LOCAL_MACHINESYSTEM

а также

  • HKEY_LOCAL_MACHINESYSTEM

Для переключения между ними, выполните следующие действия.
1.    Откройте редактор реестра.
2.    Перейдите к нужному ключу реестра, например, к подразделу: SYSTEM
3.    Предполагая , что вы закончили работу с открытым разделом в HKCU и хотите продолжить с его коллегой в разделе HKEY_LOCAL_MACHINE, кликните правой кнопкой мыши на подраздел SYSTEM и выберите команду в контекстном меню Перейти к HKEY_LOCAL_MACHINE:

И наоборот — из HKEY_LOCAL_MACHINE  вы можете переключиться на HKEY_CURRENT_USER SYSTEM мгновенно.

Переключение между HKCU и HKLM

Помните, что этот трюк работает только с ключами, которые имеют схожие пути корневых разделов HKEY_CURRENT_USER и HKEY_LOCAL_MACHINE.  

Аргументы командной строки редактора реестра

И, наконец, я хотел бы показать вам наиболее распространенные аргументы командной строки, которые можно использовать с помощью редактора реестра. Они могут быть использованы в ваших собственных сценариях и пакетных файлах. 

regedit.exe -m

Открывает другой экземпляр редактора реестра, даже если один уже открыт. Это очень удобно, если вы хотите сравнить два ключа реестра. Будет ли работать на Windows XP и более поздних версий.

regedit.exe path_to_file.reg

Слияние файла реестра с вашем текущем реестром. Это действие по умолчанию, которое выполняется при двойном клике на файл * .reg в проводнике.

regedit.exe /s path_to_file.reg

То же самое, что и выше, но файл будет объединено тихо, без диалога подтверждения. Полезно для скриптов.   

regedit.exe /e path_to_file.reg

Экспортировать все данные реестра в один файл.

Понравилась статья? Поделить с друзьями:
  • Редактирование томов жесткого диска windows 10
  • Редактор для gopro для windows 10 на русском
  • Редактор реестра windows 10 отказано в доступе
  • Редактирование текстового файла в командной строке windows
  • Редактор групповых политик windows server 2012 r2