Если по той или иной причине в Windows 10 возникли проблемы с записями в реестре или с самими файлами реестра, система располагает простым и обычно работающим способом выполнить восстановление реестра из автоматически создаваемой резервной копии. См. также: Все материалы про восстановление Windows 10.
В этой инструкции подробно о том, как восстановить реестр из резервной копии в Windows 10, а также о других вариантах решения проблем с файлами реестра при их возникновении, если обычный способ не работает. И заодно информация о том, как создать собственную копию реестра без сторонних программ.
Как восстановить реестр Windows 10 из резервной копии
Резервная копия реестра Windows 10 автоматически сохраняется системой в папке C:\ Windows \ System32\ config\ RegBack\
Сами же файлы реестра находятся в C:\ Windows \ System32\ config\ (файлы DEFAULT, SAM, SOFTWARE, SECURITY и SYSTEM). Важно: не используйте способ в версиях 1803, 1903 и новее, если не включали сохранение копии реестра — к сожалению, начиная с Windows 10 версии 1803 файлы реестра по умолчанию не сохраняются автоматически в указанной папке (но там могут находиться пустые файлы, заменять которыми реестр не нужно). Но вы можете включить их сохранение на будущее (см. Как включить создание резервной копии реестра в папке RegBack).
Соответственно, для восстановления реестра, достаточно скопировать файлы из папки RegBack (там они обычно обновляются после обновлений системы, затрагивающих реестр) в папку System32\ Config.
Сделать это можно и простыми средствами системы, при условии, что она запускается, но чаще это не так, и приходится использовать другие пути: обычно, производить копирование файлов с помощью командной строки в среде восстановления Windows 10 или загрузившись с дистрибутива с системой.
Далее будет предполагаться, что Windows 10 не загружается и мы выполняем шаги для восстановления реестра, которые будут выглядеть следующим образом.
- Если вы можете попасть на экран блокировки, то на нем нажмите по кнопке питания, изображенной справа внизу, а затем, удерживая Shift, нажмите «Перезагрузка». Загрузится среда восстановления, выберите «Поиск и устранение неисправностей» — «Дополнительные параметры» — «Командная строка».
- Если экран блокировки недоступен или вы не знаете пароля учетной записи (который придется ввести в первом варианте), то загрузитесь с загрузочной флешки Windows 10 (или диска) и на первом экране установки нажмите клавиши Shift+F10 (или Shift+Fn+F10 на некоторых ноутбуках), откроется командная строка.
- В среде восстановления (и командной строке при установке Windows 10) буква системного диска может отличаться от C. Чтобы выяснить, какая буква диска назначена системному разделу, введите по порядку команды diskpart, затем — list volume, и exit (в результатах выполнения второй команды отметьте для себя, какую букву имеет системный раздел). Далее, для восстановления реестра используйте следующую команду
- Xcopy c:\windows\system32\config\regback c:\windows\system32\config (и подтвердите замену файлов, введя латинскую A).
По завершении выполнения команды, все файлы реестра будут заменены своими резервными копиями: вы можете закрыть командную строку и перезагрузить компьютер, чтобы проверить, была ли восстановлена работоспособность Windows 10.
Дополнительные способы восстановления реестра
Если описываемый способ не работает, а какого-то стороннего ПО для создания резервных копий использовано не было, то из возможных решений остаются лишь:
- Использование точек восстановления Windows 10 (они содержат в себе и резервную копию реестра, но по умолчанию они у многих отключены).
- Сброс Windows 10 к начальному состоянию (в том числе и с сохранением данных).
Помимо прочего, на будущее вы можете создать собственную резервную копию реестра. Для этого достаточно выполнить следующие простые шаги (нижеописанный способ — не самый лучший и есть дополнительные, см. Как создать резервную копию реестра Windows):
- Запустите редактор реестра (нажмите Win+R, введите regedit).
- В редакторе реестра, в левой панели выберите «Компьютер», кликните по нему правой кнопкой мыши и выберите пункт меню «Экспортировать».
- Укажите место сохранения файла.
Сохраненный файл с расширением .reg и будет вашей резервной копией реестра. Чтобы внести данные из него в реестр (точнее, объединить с текущим содержимым), достаточно просто дважды кликнуть по нему (к сожалению, скорее всего, часть данных не смогут быть внесены). Однако, более разумным и эффективным способом, наверное, является включение создания точек восстановления Windows 10, которые будут содержать, в том числе, и работающий вариант реестра.
Applies ToWindows 11 Windows 10 Windows 8.1
Back up the registry manually
-
Select Start , type regedit.exe in the search box, and then press Enter. If you are prompted for an administrator password or for confirmation, type the password or provide confirmation.
-
In Registry Editor, locate and click the registry key or subkey that you want to back up.
-
Select File > Export.
-
In the Export Registry File dialog box, select the location to which you want to save the backup copy, and then type a name for the backup file in the File name field.
-
Select Save.
Restore a manual back up
-
Select Start , type regedit.exe, and then press Enter. If you are prompted for an administrator password or for confirmation, type the password or provide confirmation.
-
In Registry Editor, click File > Import.
-
In the Import Registry File dialog box, select the location to which you saved the backup copy, select the backup file, and then click Open.
Need more help?
Want more options?
Explore subscription benefits, browse training courses, learn how to secure your device, and more.
Все способы:
- Восстановление реестра в Виндовс 10
- Способ 1: Восстановление из резервной копии
- Способ 2: Замена файлов реестра
- Способ 3: Восстановление системы
- Заключение
- Вопросы и ответы: 1
Некоторые пользователи, особенно при наработке опыта взаимодействия с ПК, изменяют различные параметры системного реестра Windows. Зачастую такие действия приводят к ошибкам, сбоям и даже неработоспособности ОС. В этой статье мы разберем способы восстановления реестра после неудачных экспериментов.
Восстановление реестра в Виндовс 10
Начнем с того, что реестр это один из важнейших компонентов системы и без крайней надобности и опыта редактировать его не следует. В том случае, если после изменений начались неприятности, можно попытаться восстановить файлы, в которых «лежат» ключи. Делается это как из работающей «винды», так и в среде восстановления. Далее мы рассмотрим все возможные варианты.
Способ 1: Восстановление из резервной копии
Этот способ подразумевает наличие файла, содержащего экспортированные данные всего реестра или отдельного раздела. Если вы не озаботились его созданием перед редактированием, переходите к следующему параграфу.
Весь процесс выглядит следующим образом:
- Открываем редактор реестра.
Подробнее: Способы открыть Редактор реестра в Windows 10
- Выделяем корневой раздел «Компьютер», жмем ПКМ и выбираем пункт «Экспорт».
- Даем имя файлу, выбираем место его расположения и нажимаем «Сохранить».
То же самое можно проделать с любой папкой в редакторе, в которой вы изменяете ключи. Восстановление производится двойным кликом по созданному файлу с подтверждением намерения.
Способ 2: Замена файлов реестра
Система сама может сделать резервные копии важных файлов перед какими-либо автоматическими операциями, например, обновлениями. Хранятся они по следующему адресу:
C:\Windows\System32\config\RegBack
Действующие файлы «лежат» в папке уровнем выше, то есть
C:\Windows\System32\config
Для того чтобы выполнить восстановление, необходимо скопировать бэкапы из первой директории во вторую. Не спешите радоваться, так как обычным способом этого сделать нельзя, потому как все эти документы заблокированы выполняющимися программами и системными процессами. Здесь поможет только «Командная строка», причем запущенная в среде восстановления (RE). Далее опишем два варианта: если «винда» загружается и если войти в учетную запись не представляется возможным.
Система стартует
- Открываем меню «Пуск» и кликаем по шестеренке («Параметры»).
- Идем в раздел «Обновление и безопасность».
- На вкладке «Восстановление» ищем «Особые варианты загрузки» и жмем «Перезагрузить сейчас».
Если «Параметры» не открываются из меню «Пуск» (такое бывает при повреждении реестра), вызвать их можно сочетанием клавиш Windows+I. Перезагрузку с нужными параметрами также можно выполнить, нажав соответствующую кнопку с зажатой клавишей SHIFT.
- После перезагрузки идем в раздел поиска и устранения неисправностей.
- Переходим к дополнительным параметрам.
- Вызываем «Командную строку».
- Система еще раз перезагрузится, после чего предложит выбрать учетную запись. Ищем свою (лучше ту, которая имеет права администратора).
- Вводим пароль для входа и нажимаем «Продолжить».
- Далее нам нужно скопировать файлы из одной директории в другую. Сначала проверяем, на диске с какой буквой находится папка «Windows». Обычно в среде восстановления системный раздел имеет букву «D». Проверить это можно командой
dir d:
Если папки нет, то пробуем другие буквы, например, «dir c:» и так далее.
- Вводим следующую команду.
copy d:\windows\system32\config\regback\default d:\windows\system32\config
Нажимаем ENTER. Подтверждаем копирование, введя на клавиатуре «Y» и снова нажав ENTER.
Этим действием мы скопировали файл с названием «default» в папку «config». Тем же способом нужно перенести еще четыре документа
sam
software
security
systemСовет: чтобы каждый раз не вводить команду вручную, можно просто два раза нажать стрелку «Вверх» на клавиатуре (пока не появится нужная строка) и просто заменить название файла.
- Закрываем «Командную строку», как обычное окно и выключаем компьютер. Естественно, потом включаем снова.
Система не стартует
Если Виндовс запустить невозможно, добраться до среды восстановления проще: при сбое загрузки она откроется автоматически. Нужно только нажать «Дополнительные параметры» на первом экране, а затем произвести действия, начиная с пункта 4 предыдущего варианта.
Бывают ситуации, когда среда RE недоступна. В этом случае придется воспользоваться установочным (загрузочным) носителем с Windows 10 на борту.
Подробнее:
Руководство по созданию загрузочной флешки с Windows 10
Настраиваем BIOS для загрузки с флешки
При запуске с носителя после выбора языка вместо установки выбираем восстановление.
Что делать дальше, вы уже знаете.
Способ 3: Восстановление системы
Если по каким-то причинам восстановить непосредственно реестр не получается, придется прибегнуть к еще одному средству – откату системы. Сделать это можно разными способами и с разными результатами. Первый вариант – воспользоваться точками восстановления, второй – привести Виндовс в исходное состояние, а третий – вернуть заводские настройки.
Подробнее:
Откат к точке восстановления в Windows 10
Восстанавливаем ОС Windows 10 к исходному состоянию
Возвращаем Windows 10 к заводскому состоянию
Заключение
Приведенные выше способы сработают только тогда, когда на ваших дисках присутствуют соответствующие файлы – резервные копии и (или) точки. Если таковых не имеется, придется переустанавливать «винду».
Подробнее: Как установить Виндовс 10 с флешки или с диска
Напоследок дадим пару советов. Всегда, перед тем, как редактировать ключи (или удалять, или создавать новые), экспортируйте копию ветки или всего системного реестра, а также создайте точку восстановления (нужно сделать и то и другое). И еще: если не уверены в своих действиях, лучше совсем не открывайте редактор.
Наша группа в TelegramПолезные советы и помощь
The Windows registry is a database that contains important information about your computer — users, preferences, applications, attached devices and much more. The Windows operating system constantly refers to the registry; for example, to open a program, install new software or change your hardware, Windows must check the values of certain registry keys.
Once you’ve been running the Windows OS for some time — installing and uninstalling programs or swapping in different keyboards and mice — you end up with hundreds or thousands of registry entries that are completely useless. Each one uses very little hard drive space, but the operating system still has to run through all of them, which slows it down over time. By cleaning the registry, you can get rid of those unwanted entries and make your system run faster.
Sometimes, however, it is necessary to fix registry issues instead of just performing cleanup. For example, if you have ever encountered a piece of malware, you know that it can completely mess up your registry and disrupt your work.
You can change the values of registry keys manually using the built-in Windows Registry editor (regedit). But you need to know what you’re doing with this utility or you risk doing serious damage. This article explores how to fix registry issues in Windows 10/11.
Common Windows 10/11 Registry Errors Requiring Windows Registry Repair
First, let’s explore the most common issues with the Windows 10/11 registry and which ones are worth worrying about.
- Orphaned entries. Orphaned entries are small fragments of registry entries that can be left behind when you uninstall software. Registry cleaner software will often claim these are an immediate issue, but in reality, they just use up a few kilobytes of free space on your disk.
- Duplicate keys. Duplicate keys can be made when you reinstall, upgrade or update software on your machine, including the operating system. Registry cleaner software may state that your programs will be confused by the duplicate entries, slowing machine performance, but that is not true.
- Fragmented registry. The registry can become fragmented when software is uninstalled, upgraded or updated. Missing and orphaned files can cause errors.
- System shutdown errors. Each time your Windows 10/11 computer shuts down properly, a copy of the registry is saved to system memory. But if your computer is turned off or crashes without going through the normal shutdown routine, you could experience issues in the future. However, this is unlikely.
- Malware. Many types of malware modify the registry. In particular, by changing the values of startup keys, malware can ensure it is activated each time you restart the machine. Changes to the registry by malware require immediate attention.
- Accumulated junk, temporary files and system files. A registry disk cleanup removes these files to free up space and can potentially repair registry issues, so it’s worth doing on a regular basis.
Important: Back Up the Windows Registry!
Before beginning any registry errors fix, be sure you know what you are doing — and always start by making a registry backup. That way, you can revert to the old version if something goes wrong.
There are several methods for backing up your Windows registry:
- Using regedit
- Using the command prompt
- Using third-party software
How to Uncover and Repair Windows Registry Issues
To uncover issues with your registry that might be affecting your computer, perform a Windows registry scan using the Windows Registry Checker tool. The process will provide detailed data on all the registry errors discovered and how to fix registry errors.
There are several different ways to repair the Windows 10/11registry. Common ways for how to repair Windows 10 registry entries include the following:
- Use automatic repair — Automatic repair will kick in when it experiences an unexpected error that results in your system shutting down. You don’t have to initiate this repair option.
- Restore the Windows registry from Safe Mode — Use this method if you can’t start Windows in normal mode.
- Restore the registry from the command prompt — Reboot in advanced startup mode to restore the registry from its “secret” backup through the command prompt. You can access the command prompt from Safe Mode as well.
- Fix Windows registry errors with System restore — You can use System restore to roll back your system to a time when you didn’t have registry errors. But remember you will lose any changes and new files made since the backup was created.
- Fix broken registry items with System File Checker (SFC) — If you run your antivirus software or other file checker tool and discover you have broken registry items, you can use this method to repair them and get them working correctly again.
- Restore your computer with Reset this PC — Reset this PC is used to repair damaged Windows installations. It can help remove bloatware, which is unneeded software that is pre-installed with Windows. Using it is also a way to permanently remove most types of malware. Using Reset this PC restores Windows to the factory-default settings.
- Repair the registry with the DISM command — If you have problems with images on your computer, use the DISM command to service them.
- Reinstall Windows from scratch — If you can’t get Windows to load without errors or can’t open Safe Mode, reinstalling Windows from scratch may help correct registry issues.
- Use third-party backup and recovery tools — You have the option of using third-party tools to back up and restore your registry. The section below offers some options. It’s wise to choose only Microsoft-approved tools.
Third-Party Software Designed for Cleaning and Fixing Registries
Common registry issues Windows 10 users deal with can be frustrating and lead to a slowcomputer. It’s possible to use apps to clean and repair your Windows registry following a Windows registry scan.
Here are a few registry cleaner and registry repair tools you may want to check out:
- CCleaner
- Auslogics Registry Cleaner
- Wise Registry Cleaner
- Argente Utilities
- Glarysoft Registry Repair
- RegSofts Free Window Registry Repair
Editing Your Windows Registry for a Quick Windows 10 Registry Fix
Another option for dealing with a corrupt registry is to edit it directly. Log in as an administrator and then follow these steps for a quick Windows registry fix:
- Press the Ctrl and F keys simultaneously to open the Find dialog. Type the name of the key you want to edit.
- Click Find Next until you locate the key you want. Double-click it.
- Edit the key’s value.
- Click OK to save your changes. Some edits require a Windows restart to take effect.
Alternatively, you can edit the registry with PowerShell.
Cleaning the Windows 10/11 Registry Using the Registry Editor
Most people find that they’re able to clean their registry with automatic functions or third-party programs. However, you can perform registry cleanup manually using the Windows Registry editor.
It’s worth repeating: Before you begin, make sure you create a registry backup. Making mistakes in the registry can lead to the system becoming corrupted.
Then take the followingsteps:
- Click the Start button and then select Run...
- Type regedit in the text box and select Registry editor from the results.
- Delete the keys from applications that have already been uninstalled:
3a. Expand the HKEY_CURRENT_USER section and then expand the Software section.
3b. Look for keys based on the name or vendor of the uninstalled applications and delete them.
4. Remove any duplicate keys that the uninstalled applications might have left behind:
4a. Press Ctrl+F to open the Find dialog box.
4b. Enter the name of the uninstalled application and click OK to search. Each matching key or value will be highlighted.
4c. Remove the highlighted key.
4d. Press F3 to find the next match and delete it. Repeat this step until you have reviewed all highlighted items.
5. Remove unwanted start-up items from the registry:
5a. Navigate to the following location:
My ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrent Version
5b. Click Run to list shortcuts to all the executable files that run at startup.
5c. Delete any applications that you don’t want to run at Windows startup. Do an online search to investigate any that are unfamiliar.
5d. Repeat the same task for the following key paths as well:
• HKLMSOFTWAREWow6432NodeMicrosoftWindows CurrentVersionRun
• HKLMSOFTWAREMicrosoftActive SetupInstalled Components
• HKLMSOFTWAREWow6432NodeMicrosoftActive SetupInstalled Components
Conclusion: When and How to Fix Windows Registry Issues
Editing your registry is not likely to improve system speed or PC performance. However, you should make regular backups so you can restore if the installation of a program or device causes issues the computer can’t process.
It is also important to track changes to your registry. In particular, malware often changes registry startup keys so it will start automatically after each reboot. You can learn more in this guide about detecting modifications to startup items in the Windows registry.
How Netwrix Can Help
Netwrix Auditor for Windows Server empowers you with comprehensive visibility and tools you need to safeguard your crucial infrastructure. You can:
- Detect and respond to threats: You can monitor all security and configuration changes across your Windows Servers, including changes to the registry. The solution even provides video recording of user activity to help with investigations.
- Streamline compliance: Simplify audit preparation with built-in reports aligned with PCI DSS, HIPAA, SOX and many other mandates. Use the interactive search to swiftly answer questions from auditors, demonstrating your commitment to compliance.
- Enhance efficiency: Elevate your IT team’s productivity through automated change control and reporting on OS versions, antivirus status, file shares and more.
Dirk Schrader is a Resident CISO (EMEA) and VP of Security Research at Netwrix. A 25-year veteran in IT security with certifications as CISSP (ISC²) and CISM (ISACA), he works to advance cyber resilience as a modern approach to tackling cyber threats. Dirk has worked on cybersecurity projects around the globe, starting in technical and support roles at the beginning of his career and then moving into sales, marketing and product management positions at both large multinational corporations and small startups. He has published numerous articles about the need to address change and vulnerability management to achieve cyber resilience.