Если по той или иной причине в 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.
-
Home
-
News
- How to Reset the Registry to Default Windows 10/11 (3 Ways)
How to Reset the Registry to Default Windows 10/11 (3 Ways)
By Shirley | Follow |
Last Updated
If the Windows registry becomes confusing due to unexpected circumstances or human operations, how should you restore it to the default values? Now read this post on MiniTool to see detailed instructions on how to reset the registry to default.
The Windows registry is used to manage resources and store configuration settings for applications on the Windows operating system. Additionally, changes made to Control Panel settings, Windows components, etc. are also updated in the registry. If you are not very familiar with the registry, you are likely to operate incorrectly and cause problems with the registry. In this case, you may need to restore the registry to its default values.
How to reset the registry to default? Is it possible to restore the whole registry to default? Keep reading to find the answers.
How to Reset the Registry to Default Windows 10/11
Way 1. Restore the Registry to Default by Resetting the PC
Since the registry stores a lot of information about Windows-specific configurations, if you want to completely reset the entire registry, you can only reinstall Windows by resetting the computer.
Tips:
Although resetting your computer allows you to choose to save personal files, it is highly recommended that you do a system backup in case of unexpected situations. You can use MiniTool ShadowMaker Trial to do that. It provides you with a 30-day free trial.
MiniTool ShadowMaker TrialClick to Download100%Clean & Safe
Here is how to reset your PC.
Step 1. Press the Windows + I key combination to open Settings.
Step 2. Click Update & Security.
Step 3. Move on to the Recovery tab, then click the Get started button under Reset this PC.
Step 4. In the new window, choose whether to keep your personal files. Then follow the on-screen instructions to complete the necessary actions.
After that, the Windows registry should be restored to default.
Way 2. Reset the Registry to Default Using System Restore
If you simply made incorrect changes to an application or other computer configuration, you can use System Restore to restore the system to the state before the changes were made. And, the registry will be restored to the state it was in before the changes were made.
Please note that performing a system restore requires that you have created a system restore point before making the erroneous changes.
How to perform a system restore? Follow the guide below.
Step 1. In the Windows search box, type create a restore point and then click it from the best match result.
Step 2. In the new window, under System Protection, click System Restore.
Step 3. Next, you need to finish the process according to the instructions on the screen.
Tips:
Windows claims that system restore only restores system files and settings and does not affect personal files. However, some users still experienced data loss. If you encounter the same situation, you can use free data recovery software, MiniTool Power Data Recovery, to recover files after system restore.
MiniTool Power Data Recovery FreeClick to Download100%Clean & Safe
See Also: Fix Windows Could Not Update Registry Data in the Installation
Way 3. Reset Windows Registry Permissions to Default From Backups
Restoring the registry from a backup file works if you mistakenly changed some registry values. Generally, before modifying the registry, it is recommended to export the original registry to avoid unexpected situations. If you have registry backup reg. files, you can use Registry Editor to import them.
First, open Registry Editor by using the Windows search box.
Second, click File > Import. Then select the target .reg file to open. If there are multiple .reg files, you need to import them one by one.
Wrapping Things Up
In a word, this post explains how to reset the registry to default by resetting the PC, performing a system restore, and importing the backup .reg files.
If you have found any other ways to reset Windows registry permissions to default, or you have any questions about MiniTool software, do not hesitate to contact us via [email protected].
About The Author
Position: Columnist
Shirley graduated from English major and is currently an editor of MiniTool Team. She likes browsing and writing IT-related articles, and is committed to becoming a professional IT problem solver. The topic of her articles are generally about data recovery, data backup, and computer disk management, as well as other IT issues. In spare time, she likes watching movies, hiking and fishing.
Все способы:
- Восстановление реестра в Виндовс 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 home to lots of data containing information about how the OS behaves. Most changes that you make on your system affect the registry, so it regularly adjusts, adds, and removes values.
If you’ve accidentally messed up the registry by making a manual mistake or some other error, you might wonder how to reset the registry to default. Let’s look at the various methods for resetting the registry in Windows and how to prevent these issues in the future.
The Only Way to Fully Reset the Registry
Unfortunately, there’s no simple method to reset only the registry. Because the registry contains so much data about your specific Windows configuration, you can’t reset the registry to a clean state without rendering your system inoperable.
As a result, the only true way to reset the Windows Registry to default is to reset your Windows PC. The process of resetting Windows reinstalls the operating system, which will naturally reset the registry.
To reset your Windows PC, open Settings from the Start menu or with Win + I, then go to Update & Security > Recovery and click Get Started under Reset this PC.
This will give you the option to only reinstall Windows while keeping your files, or nuke everything and start from scratch. You’ll also be able to choose between reinstalling Windows using recovery data from your system, or downloading a fresh copy over the internet.
No matter which combination of these options you choose, you’ll fully reinstall Windows, which will reset the registry. It’s obviously not convenient, but if you want to reset your entire registry to its default settings, this is the only method.
However, there are other ways to go back in time with the registry, or give yourself a backup in case of future problems. Let’s consider those.
Reset Recent Registry Changes Using System Restore
System Restore is a recovery feature built into Windows. Whenever you make changes like installing an app or a major update, Windows creates a restore point. You can later use these restore points to undo the changes if they cause issues.
Using a restore point will undo any changes to app, drivers, and system updates since that point in time. This includes the tweaks that such actions make to the registry, allowing you to reset some parts of the registry that you’ve recently modified. This method isn’t perfect for resetting the registry, though.
It won’t let you entirely reset the registry, unless you created a restore point as soon as you started using your brand-new computer. Even for less drastic resets, you might not have a restore point from right before you made changes. Windows lets you make a restore point manually, but that doesn’t help if you’re already having a problem.
Reset Some of the Registry From a File Backup
The Registry Editor makes it easy to export registry entries to keep them as a backup, share them with others, or similar. This is another case where you’re out of luck if you didn’t export anything from the registry before you wanted to reset it.
For the future, though, it’s good to know how to export registry entries and import them later to restore the backup. First, open the Registry Editor by typing registry into the Start menu to find the utility. You’ll need to provide administrator permissions to launch it.
Now, in the left panel, right-click on the registry value you want to back up for later and choose Export. Give the exported file a name and choose where to save it on your system, and you’ll get a file ending in .reg.
To later restore this file, you can go to File > Import in the Registry Editor window and locate it on your computer. For a simpler method, just double-click on the .reg file to merge it into your own registry.
While you can right-click on Computer and choose Export to back up the entirety of your registry, this isn’t very practical. Remember that the registry contains a huge number of entries that change regularly. Trying to merge an entire past registry into your current one is likely to cause problems, so you shouldn’t do this.
Backing up and restoring individual registry entries is great for safety when you make minor changes, but it’s not practical for resetting the whole registry to default.
How to Fix Registry Problems
Presumably, you’re looking to reset the Windows Registry to default because of issues on your system. And while the reset and System Restore options above are your best options for serious problems, Windows also includes some utilities to help scan for and fix corrupted system files. You might not need to do a full reset, so try these tools first.
Windows used to include a tool called ScanReg that checked for registry issues, but this isn’t available in modern versions. Instead, you can use an SFC scan, which checks for invalid system files and tries to repair them when possible.
To run SFC, type cmd into the Start Menu to show the Command Prompt tool, then right-click it and choose Run as administrator, since you need to open an elevated prompt to run this command. Provide admin permissions, then enter the following:
sfc /scannow
This will perform a full scan of your system, which can take some time. When it’s done, you’ll see a summary of the results. In case you need help with this tool or it finds problems that it can’t fix, see our guide to using SFC and DISM.
How to Prevent Registry Damage in the Future
To avoid another situation where you want to reset the registry to default, you should take care when making any changes to it. Only make manual tweaks if you’re sure what you’re doing; don’t follow random guides containing registry tips unless you’re sure you can trust them.
It’s also wise to have backups ahead of time. If you didn’t already have System Restore set up, make sure you do now. That could save you a lot of time in case of registry troubles in the future.
Finally, don’t use registry cleaners. These usually cause more problems than they fix, so stay away from them.
Restore the Registry When Needed
Now you know the primary method of resetting the Windows registry, along with other ways to undo registry changes. And with a bit of care, you can avoid this problem in the future so you don’t have to spend time resetting your system.
In general, unless you have a specific reason to be in the registry, it’s best to stay away.
Image Credit: Sinart Creative/Shutterstock