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.
Реестр Windows — это центральная база данных, содержащая важные настройки операционной системы и установленных программ. В обычных условиях его можно редактировать с помощью утилиты «Редактор реестра» (regedit.exe). Однако бывают ситуации, когда система не загружается, а вам нужно внести изменения в реестр — например, вы неудачно отредактировали реестр Windows и теперь ОС выдаёт ошибку при загрузке. Или ваша система была заражена вредоносной программой и вы хотите вручную отредактировать ветку реестра, отвечающую за автозагрузку. В таких случаях поможет офлайн-редактирование реестра, позволяющее вносить изменения в реестр неработоспособной Windows.
В этой статье мы рассмотрим несколько способов редактирования реестра Windows в автономном режиме, включая использование среды восстановления и загрузочной флешки.
Первым делом нужно войти в среду восстановления (Windows Recovery Environment, WinRE), сделать это можно так. Три раза подряд аварийно выключите компьютер через кнопку питания. Если Windows не загружается несколько раз подряд, система автоматически загрузит среду восстановления.
Теперь давайте разберёмся, как изменить нужный параметр в определённой ветке реестра. В Windows все разделы реестра представлены в виде отдельных файлов, которые можно открыть и отредактировать независимо от того, загружается система или нет. Однако перед этим важно знать, в каком именно файле хранится нужная ветка реестра.
| Ветка реестра | Файл, где хранится содержимое данной ветки реестра |
| HKEY_LOCAL_MACHINE\SAM | Windows\System32\config\SAM |
| HKEY_LOCAL_MACHINE\Security | Windows\System32\config\SECURITY |
| HKEY_LOCAL_MACHINE\Software | Windows\System32\config\SOFTWARE |
| HKEY_LOCAL_MACHINE\System | Windows\System32\config\SYSTEM |
| HKEY_CURRENT_CONFIG | Windows\System32\config\SYSTEM |
| HKEY_CURRENT_USER | <username>\ntuser.dat |
| HKEY_USERS\.DEFAULT | Windows\system32\config\DEFAULT |
- Примечание: В этой статье я не буду подробно рассказывать, что такое Реестр Windows и какие данные хранятся в каждой его ветке, так как эта тема слишком обширна. Если вас интересуют детали, у нас есть отдельная статья на эту тему. Вкратце, Реестр — это структурированное хранилище данных, используемых операционной системой для настройки практически всего, что есть на компьютере: программ, пользовательских профилей, системных политик, ассоциаций файлов и многого другого.
В меню восстановления выберите «Поиск и устранение неисправностей» → «Дополнительные параметры» → «Командная строка».
В командной строке запустите редактор реестра.
Введите команду regedit и жмите Enter.
Загружаем реестр офлайн. Выбираем раздел HKEY_LOCAL_MACHINE. В редакторе реестра выделите раздел HKEY_LOCAL_MACHINE и в меню «Файл» загрузите куст,
Откроется проводник, перейдите в папку C:\Windows\System32\config, в ней выберите файл SOFTWARE. Будьте осторожны: буква диска с вашей операционной системой может отличаться от (C:).
Файл SOFTWARE мы с вами выбираем, так как будем редактировать ветку реестра, отвечающую за автозагрузку программ запускаемых при входе в операционную систему всеми пользователями ПК:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Нажмите «Открыть» и укажите любое имя раздела, к примеру — 2, затем ОК.
Произойдёт загрузка куста реестра вашей системы и внутри раздела HKEY_LOCAL_MACHINE появится раздел с присвоенным вами именем.
Пройдём по пути:
HKEY_LOCAL_MACHINE\2\Microsoft\Windows\CurrentVersion\Run
Для примера удалим ключ реестра принадлежащий сервису Acrobat Assistant 8.0 и восстановим его потом из резервной копии.
- Примечание: Постоянно проверяйте ветки реестра, отвечающие за автозагрузку, так как вредоносные программы в первую очередь прописывают свои ключи в них. В самом ключе виден путь к исполняемому файлу программы и это можно увидеть на наших скриншотах. После удаления ключа вредоносной программы из автозагрузки её процессы не будут запущены в Windows и её будет легче удалить из системы.
Ветка реестра отвечающая за программы, запускаемые при входе в систему всеми пользователями компьютера.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run
Ветка реестра отвечающая за программы, запускаемые при входе в систему текущим пользователем.
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run
Далее выделите раздел с присвоенным вами именем, потом меню «Файл» —> «Выгрузить куст».
Да.
Перезагрузите компьютер.
Если встроенная среда восстановления недоступна, можно использовать загрузочную флешку с Windows 10, 11
Создайте загрузочную флешку с помощью Rufus или Windows Media Creation Tool.
Загрузитесь с флешки и в начальном окне установки откройте командную строку (Shift + F10).
Запустите regedit и выполните аналогичные действия по загрузке и редактированию разделов реестра.
Это официальный диск восстановления от Microsoft на базе WinPE, созданный в помощь профессиональным сисадминам, содержащий инструменты для диагностики и исправления неполадок в Windows, в простонародье называется — Аварийный загрузочный диск.
Создайте загрузочную флешку с инструментом Microsoft Diagnostics and Recovery Toolset (DaRT) и загрузите с неё ваш компьютер. В главном окне выберите «Редактор реестр» и произведите необходимые изменения.
На данном диске также имеется встроенный редактор реестра.
Любые изменения в реестре потенциально опасны. Перед редактированием создайте резервную копию файлов реестра!
Никогда не выгружайте куст реестра, пока не завершите редактирование.
Если после внесения изменений система не загружается, попробуйте восстановить исходные файлы из резервной копии.
Офлайн-редактирование реестра — мощный инструмент, позволяющий исправлять ошибки системы, даже если Windows не загружается. Используя встроенные возможности Windows или сторонние утилиты, можно восстановить работоспособность системы, сбросить настройки и удалить вредоносное ПО. Главное — соблюдать осторожность и всегда иметь резервные копии реестра, а лучше всей операционной системы.
Rick Akura
Learn how to repair and fix the corrupt registry on your Windows 11 or 10 computer. Get easy tips and tricks to keep your PC safe and secure!
Are you facing issues with your Windows 11/10 operating system? Does it slow down or show errors frequently? The problem may lie in the registry of your computer. The registry is a vital component of the Windows operating system. It stores essential settings and information that help your system run smoothly. If it becomes corrupt or damaged, your computer may not function properly.
This article will discuss how to repair or fix a corrupt registry in Windows 11/10. This way, you can easily restore your original registry keys and values and ensure error-free performance.
Jump To
- Run the Disk Cleanup Tool
- Use Automatic Startup Repair
- Run the System File Checker
- Run the DISM Scan
- Import a Registry Backup
- Run CCleaner Registry Cleaner
- Scan Your System for Malware
- Use a System Restore Point
- Reset Your System
What is the Windows Registry?
The registry is a hierarchical database that contains settings, configurations, and options for Windows and installed software. It is responsible for keeping track of hardware, software, and user preferences.
The registry is organized into five main sections or «hives»: HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS, and HKEY_CURRENT_CONFIG. Each hive contains numerous keys, values, and data entries that are used to configure the operating system and installed software.
By making changes in the Windows Registry, you can customize your system on a new, deeper level. This means you can add or remove certain features, control user access rights, tweak software settings, and so on.
Signs of Registry Issues
A corrupt or damaged registry can cause various problems with your Windows 11/10 operating system. Some of the common signs of registry issues include:
- Slow startup and shutdown times
- Frequent crashes or freezes
- Blue screen errors
- Applications not responding or crashing
- Missing or broken shortcuts
- Strange error messages
If you experience any of these issues, it may be time to repair or fix your registry.
What Causes Broken Registry in Windows?
There are various reasons why registry items can become broken:
- Virus and malware: One of the most common causes of broken registry items is malware infestation, which can corrupt multiple keys and values in the registry, thereby impacting the functioning of settings that rely on them.
- Fragmentation: The registry can become fragmented over time, especially after installing or updating software and services. This fragmentation can lead to certain registry items becoming broken.
- Modifying the Registry: Making improper changes to the registry through the Registry Editor can cause registry items to break. This is especially true when the user lacks sufficient knowledge or information about the changes being made.
- Build-up of items: Over time, the registry can accumulate corrupted, unnecessary, empty, or misplaced items. This can harm functional registry items and slow down and damage the system.
While these are only some of the problems that may lead to broken registry items, they are the most common ones. Being aware of them can help you take preventive measures to ensure the smooth functioning of your operating system.
How to Repair and Fix Corrupt Registry in Windows 11/10?
You can use several methods to repair or fix corrupt registry in Windows 11/10. Here are some of the most effective methods:
1. Run the Disk Cleanup Tool
One of the reasons for a corrupt registry in Windows 11/10 can be due to accumulated junk files, temporary files, and system files. Running the Disk Cleanup Tool can help clean up the system and free up some space on your computer, which could potentially fix registry issues.
-
Open the Windows search utility from your taskbar, or use the Windows + S keyboard shortcut. Type in “Disk Cleanup” and open the application from the search results.
-
Select the “C:” drive in the drop-down menu and press OK.
-
Click on the «Clean up system files» button. Note that you need an administrator account to carry out these actions.
-
Keep the drive selection “C:” and click the OK button to relaunch the Disk Cleanup tool. Wait for the application to scan your system.
-
Click OK again, then click the “Delete files” button to remove any unnecessary files from your system. This will also fix any unneeded items in your registry.
2. Use Automatic Startup Repair
Then Automatic Startup Repair can help diagnose and repair registry issues that may be affecting your system. Here’s how to use it.
- Open your Start menu and select «Settings» from the available tools. Alternatively, you can open the applet using the Windows + I keyboard shortcut.
-
Select «System» first, then scroll down until you see «Recovery,» and click on it once. You’ll be redirected to a new page.
-
Scroll down until you see the Recovery options section. Click «Restart now» next to the «Advanced startup» tool here.
-
If you do everything correctly, your computer will boot into the Windows Recovery Environment (WinRE). Here, use your mouse or keyboard to navigate to Troubleshoot > Advanced options > Startup Repair.
Your computer should restart itself automatically and run the necessary tools to fix your registry. Check out how to fix the «Automatic Startup Repair couldn’t repair your PC» error if you run into it.
3. Run the System File Checker
The System File Checker is a built-in Windows utility that can scan and repair corrupted system files, including those that may be causing issues with the registry. Running this tool can help restore system stability and fix any issues that may be impacting the registry.
- Open the search bar in your taskbar by clicking the magnifying glass icon. Press Windows + S on your keyboard as a shortcut.
-
Type “Command Prompt” in the search box and choose Run as Administrator. When prompted by the User Account Control (UAC), click Yes to allow the app to launch with administrative permissions.
-
When the Command Prompt interface shows on the screen, input the following command and press the Enter key on your keyboard: sfc /scannow
- Wait for the scan to complete.
4. Run the DISM Scan
DISM (Deployment Image Servicing and Management) is another built-in Windows utility that can help repair system files related to the registry. Running a DISM scan can help fix any issues that may be causing your registry to become corrupted.
- Open the search bar in your taskbar by clicking the magnifying glass icon. Press Windows + S on your keyboard as a shortcut.
- Type “Command Prompt” in the search box and choose Run as Administrator. When prompted by the User Account Control (UAC), click Yes to allow the app to launch with administrative permissions.
-
When the Command Prompt interface shows on the screen, input the following command and press the Enter key on your keyboard: DISM.exe /Online /Cleanup-image /Restorehealth
- Wait for the scan to complete.
5. Import a Registry Backup
If you have a registry backup saved from when your system was working correctly, importing it can fix any issues you may be experiencing with your current registry. This option is only recommended if you have a recent registry backup.
-
Press your keyboard’s Windows + R keys to bring up the Run utility. Here, type in «regedit» without quotes and press the OK button. Doing so will launch the Registry Editor.
-
Click on File > Import using the Registry Editor’s toolbar menu.
-
Browse your computer for the backup file. It should be a file with the «Registration Files (.reg)» file type. Select it and click «Open.»
- Wait for the Registry Editor to import the backup file, then reboot your system.
6. Run CCleaner Registry Cleaner
CCleaner is a popular third-party software tool that can clean up junk files, optimize system performance, and fix registry issues. Running the CCleaner Registry Cleaner can help repair any corrupted or broken entries in the registry.
- Visit the official website of CCleaner and download the latest software version. Once the download is complete, double-click on the setup file and follow the on-screen instructions to install it.
-
Once the installation is complete, launch the program, and select the «Registry» tab from the left-hand side of the window. Click the «Scan for Issues» button to initiate a scan of your registry. This process will search for invalid entries or keys associated with uninstalled programs.
- After the scan is complete, the program will display the results in the main window. Review the list of entries CCleaner found and decide which ones you want to fix.
- Click on the «Review selected Issues» button to fix the issues found during the scan. Before proceeding with any changes, it’s recommended to back up your registry. Click “Yes” to allow the app to create a backup before making any changes.
-
CCleaner will prompt you to confirm the changes before proceeding. Click «Fix All Selected Issues» to confirm the changes and allow CCleaner to delete the invalid registry entries.
- Repeat the scan and fix process until CCleaner no longer finds any issues. This process may take some time, depending on the size of your registry and the number of issues found.
7. Scan Your System for Malware
Malware infections can also cause registry issues, impacting system stability and performance. Running a full system scan with reputable anti-virus software can help identify and remove any malware causing issues with the registry.
-
Bring up the Search feature from your taskbar or by pressing the Windows + S keyboard shortcut, and type in “Windows Security.” Launch the app from the search results.
-
Click on “Virus & threat protection” from the available options.
-
You’ll find your scan options under the “Current threats” header. Before beginning a system scan, click the “Scan options” link.
-
First, select the “Full scan” option. This is going to check all files and apps on your hard disk. Next, click the “Scan now” button to get started.
- It’s important to note that this scan may take longer than an hour based on how many files you have stored on the drive. If the scan detects any anomalies and malicious files, it’ll immediately quarantine and disable them.
While third-party apps are convenient, most of them aren’t free. However, here at SoftwareKeep, you can get reliable antivirus software at an affordable price. With our premium antivirus solutions, you can rest assured that your system is secure from malicious threats.
8. Use a System Restore Point
If you have a system restore point saved from a time when your system was working correctly, then restoring your system to that point can potentially fix any issues you may be experiencing with your registry. This option is only recommended if you have a recent restore point saved.
- Open the search bar in your taskbar by clicking the magnifying glass icon. Press Windows + S on your keyboard as a shortcut.
-
Search for “System Restore” and open the “Recovery” applet from the search results.
-
Click on the “Open System Restore” link from the available options.
-
Select a restore point you want to return to. Make sure that the restore point was created at a time when your system was functioning properly! You can select an automatic or manual backup if you have multiple. Click Next after choosing one.
-
Review the restore point information and click the “Finish” button to restore your system. Make sure to check for affected programs!
9. Reset Your System
If all else fails, resetting your system can help fix any issues you may be experiencing with the registry. This option will wipe all your data and restore your system to its original state, so it should only be used as a last resort.
- To access the Settings menu, you can either click on the Windows icon located at the bottom-left side of the screen and choose Settings from the Start menu or use the keyboard shortcut Windows + I.
-
Navigate to System > Recovery > Reset this PC. Click on the “Reset PC” button to begin the process.
-
Choose the suitable option. Select «Keep my files» to keep your personal files or «Remove everything» to perform a clean install of Windows. Note that you may need to reinstall some applications in both cases.
- After making your choice, follow any further on-screen instructions to reset your operating system. Windows will install all the necessary system files, and your computer will reboot with your new, refreshed Windows.
You can also reinstall Windows using bootable media or even reinstall Windows from the cloud.
Conclusion
The Windows Registry is an essential part of the Windows 11/10 operating system. A corrupt registry can cause system instability and performance issues, which is why it’s essential to recognize and fix any issues that may be present. The above methods can help repair or fix corrupt registry items in Windows 11/10. If you’re unsure about making changes to the registry, it’s best to contact a professional for assistance.
We hope this article was helpful in explaining how to repair and fix corrupt registry items in Windows 11/10. Good luck!
One More Thing
We’re glad you’ve read this article. 
If you have a second, please share this article on your socials; someone else may benefit too.
Subscribe to our newsletter and be the first to read our future articles, reviews, and blog post right from your inbox. We also offer deals, promotions, and updates on our products and share them via email. You won’t miss one.
Related Articles
» How to disable network access to the Windows Registry on Windows 7
» How To Remove the Activate Windows 10 Watermark
» How to Restore Your Previous Version of Windows
Readers help support Windows Report. We may get a commission if you buy through our links.
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
A healthy Windows registry is important to your desktop or laptop. A bloated registry full of broken registry items, otherwise corrupted or redundant entries, can have a notable impact on PC performance.
Broken registry items accumulate after users uninstall software and apps, which leaves behind redundant entries.
Registry entries can also become corrupted due to abrupt system shutdowns (due to power outages for example) and malware.
So, maybe you should consider fixing broken registry items in Windows 11. If your PC is relatively new, you probably don’t need to.
However, users with older desktops and laptops should consider repairing broken registry items with the methods below.
Can I edit the registry in Windows 11?
The registry is a database of configuration settings for Windows and third-party software. It incorporates a multitude of registry keys that store values, settings, and other data for both software and hardware.
The Registry Editor is a utility that enables you to manually edit keys and values within the database. With this tool, feel free to modify registry keys’ string values or delete keys entirely.
Therefore, you can customize Windows 11, and other platforms, in many ways by editing the registry. For example, you can add a new DWORD value (TaskbarSi) to the Advanced registry key to resize Windows 11’s taskbar.
Software errors can arise due to corrupted or misconfigured registry items. Therefore, editing the registry can also fix numerous software issues.
Windows 11 and 10 include the same set of system tools that can fix registry issues. Those system tools will either erase or fix broken registry items. This is how you fix broken registry entries with those utilities.
How do I fix a corrupt registry in Windows 11?
1. Run deployment image and system file scans
-
1. First, click the Search utility’s taskbar button.
-
2. Type cmd in the search text box to find the Command Prompt.
-
3. Click the Run as administrator option for the Command Prompt.
-
4. Now input this command within the Prompt’s window and hit Enter:
DISM.exe /Online /Cleanup-image /Restorehealth -
5. When the first scan has finished, input this system file command and press Enter:
sfc /scannow -
6. Wait for the system file scan to reach 100 percent and display an outcome message. Then you can close the Command Prompt’s window.
The detailed guide below can help you run effective Command Prompt commands in order to identify the issues with your Registry files.
2. Run the Disk Cleanup tool
- Right-click the Start button on the taskbar to bring up the menu below.
- Select Run on that menu.
- Type the following command in Run’s Open box:
cleanmgr.exe - Click OK to open the Disk Clean-up window.
- Press the Clean up system files button on that window.
- Select all the file checkboxes in Disk Clean-up.
- Click the OK button to open the dialog box.
- Press the Delete Files button on that dialog box.
3. Use Startup Repair
- Click Start on the taskbar.
- Then click the Power button on the Start menu.
- Press and hold the Shift key and click Restart.
- Next, select Troubleshoot on the Choose an option menu that opens.
- Click the Advanced options button.
- Select Startup Repair on the Advanced options menu.
- Choose an account to apply the startup repair to, and then enter the password for it.
- Press the Continue button.
4. Roll back Windows with System Restore
- Right-click Start on the taskbar to select the Run shortcut.
- Now type this text in Run’s window and click OK:
rstrui - Select the Choose a different restore point radio button if the System Restore utility displays it.
- Press the Next option to open the window that you can see below.
- If the Show more restore points option is available, select that checkbox.
- Then choose the restore point that goes the furthest back, which will fix the most broken registry items.
- Click Next to proceed to the confirmation step.
- Select the Finish option to confirm your chosen restore point.
Rolling Windows back to a restore point will remove software installed after its specified date. You’ll probably have to reinstall some software if you implement this method. Click Scan for affected changes in System Restore to check what software a restore point removes.
This will restore a snapshot of your PC’s registry for a chosen restore point date. By doing so, it will remove broken registry items that emerged after the specified date.
5. Reset your PC
NOTE
Keep in mind that you’ll need to reinstall the software that didn’t come preinstalled after applying the below procedure, therefore a backup is recommended.
- First, click Start and Settings to bring up the tab that you can see below.
- Then select Recovery on that tab.
- Press the Reset PC button.
- Select the Keep my files option in the Reset this PC window.
- Next, select either Cloud download or Local reinstall according to your preference.
- Click Reset to confirm.
How can I back up the registry?
Backing up the registry won’t fix any broken items that already exist. However, restoring a backup copy of it can resolve registry issues that might arise from corrupted entries in the future.
You can manually back up the registry via Registry Editor as follows:
- Bring up the search box by clicking the magnifying glass taskbar icon in Windows 11.
- Type regedit within the search box.
- Click Registry Editor in the search results to open its window.
- Right-click the Computer icon at the top of the registry hierarchy to select Export.
- Type Registry Backup in the File name box.
- Choose a folder to save the Registry Backup file in.
- Click the Save button.
Thereafter, you can restore the registry backup by clicking File, then Import in the Registry Editor. Select your backup file in the window that opens. Then click Open to restore it.
- How to clean the Windows 10 Registry
- How to Delete Windows 11 Saved Passwords
Can I use third-party registry cleaner tools in Windows 11?
There are loads of system maintenance software that incorporate registry cleaner tools for your OS. Those utilities scan the Windows registry and remove redundant and broken registry entries.
However, bear in mind that Microsoft has just officially released Windows 11. Some publishers might need to update their registry cleaners for Windows 11 compatibility. So, it might be better to wait until the end of 2021 to start utilizing third-party tools in that platform.
Microsoft also has a support policy page about third-party registry cleaners. There the big M makes it pretty clear it doesn’t support the utilization of third-party registry cleaners for Windows. That page states the following:
Microsoft does not support the use of registry cleaners. Some programs available for free on the internet might contain spyware, adware, or viruses.
Microsoft is not responsible for issues caused by using a registry cleaning utility.
Microsoft cannot guarantee that problems resulting from the use of a registry cleaning utility can be solved.
So, make sure you utilize one of the most reputable third-party registry cleaners or none at all.
Nevertheless, the best third-party registry cleaners efficiently remove redundant registry entries left from uninstalled software.
However, additional registry cleaner software is hardly essential. The methods above for fixing broken registry items with Windows’ built-in system tools will be sufficient.
Repairing broken registry items can potentially speed up Windows 11 a bit and will resolve issues that arise from them. The erasure of broken registry items can also free up some (but maybe not a lot) hard drive space.
So, it’s recommended that users sometimes at least run Disk Clean-up, deployment image, and system file scans for registry maintenance purposes. Resetting or restoring Windows is only recommended for registry troubleshooting.
What do you think about the above procedures? Let us know if you managed to fix broken registry items in Windows 11 by using the comments area below.
Matthew Adams
Windows Hardware Expert
Matthew is a freelancer who has produced a variety of articles on various topics related to technology. His main focus is the Windows OS and all the things surrounding it.
He is passionate about the tech world, always staying up-to-date with the latest and greatest. With an analytical view, he likes problem-solving, focusing on errors and their causes.
In his free time, he likes to read and write about history and tries to always develop new skills.
Если есть основания предполагать, что неправильная работа Windows 11 (например: не работают какие-либо функции ОС, не запускаются системные инструменты, появляются сообщения об ошибках) вызвана повреждением системных файлов, можно попробовать восстановить их с помощью встроенного средства проверки системных файлов.
В этой пошаговой инструкции о способах использования средства проверки целостности системных файлов SFC.exe для восстановления системных файлов Windows 11, а также о дополнительных способах восстановить их.
- Способы восстановления системных файлов Windows 11
- Проверка целостности и восстановление системных файлов с помощью exe в работающей системе
- Восстановление системных файлов в среде восстановления Windows 11
- Дополнительные возможности восстановления
Как восстановить системные файлы Windows 11 с помощью sfc.exe в работающей системе
Если Windows 11 запускается, вход в неё и работа с ОС возможны, обычно достаточно использовать следующий метод для проверки целостности и восстановления системных файлов.
- Запустите командную строку от имени администратора (Способы запуска командной строки от имени Администратора в Windows 11), либо нажмите правой кнопкой мыши по кнопке «Пуск» и выберите пункт «Терминал Windows (Администратор)». Во втором случае откроется консоль Windows PowerShell, этот вариант также подойдет для рассматриваемой задачи.
- Введите команду (после sfc — пробел)
sfc /scannow
и нажмите Enter. Будет начато сканирование системы. Учитывайте, что процесс может занять продолжительное время и может показаться, что он «завис» — как правило, это не так, достаточно дождаться продолжения.
- По завершении процесса вы получите одно из сообщений: Программа защиты ресурсов Windows не обнаружила нарушений целостности (соответственно, файлы, для которых требуется восстановление, не обнаружены); Программа защиты ресурсов Windows обнаружила поврежденные файлы и успешно их восстановила. В некоторых случаях возможны сообщения об ошибках или невозможности восстановления.
- Также, с помощью SFC можно проверить целостность и отдельного файла. Команда будет следующей:
sfc /scanfile="путь_к_файлу"
В ситуации, когда вы видите сообщения о том, что защита ресурсов Windows не может выполнить запрошенную операцию, либо не может восстановить некоторые из поврежденных файлов, вы можете попробовать:
- Предварительно выполнить проверку и восстановление хранилища компонентов Windows 11.
- Запустить проверку целостности и восстановление системных файлов в безопасном режиме, здесь может пригодиться: Как зайти в безопасный режим Windows 11.
- Использовать один из далее описанных в статье методов проверки.
Проверка целостности и восстановление системных файлов в среде восстановления
Если восстановить системные файлы в работающей системе не удается, можно попробовать запустить проверку и восстановления в среде восстановления. Для этого:
- Зайдите в среду восстановления (Как зайти в среду восстановления Windows 11). Также можно загрузиться с загрузочной флешки с Windows 11 и на экране после выбора языка внизу слева нажать «Восстановление системы».
- Перейдите в раздел «Поиск и устранение неисправностей» — «Дополнительные параметры» и откройте пункт «Командная строка».
- По порядку используйте команды
diskpart list volume exit
Цель — посмотреть текущие буквы разделов диска и определить букву для раздела с Windows (так как в среде восстановления диск C может иметь другую букву).
- Введите команду (заменив в команде C: на фактическую букву системного раздела с установленной Windows 11)
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
- Будет запущено сканирование системы и с большой вероятностью при обнаружении повреждений системных файлов они будут восстановлены. Обратите внимание: если прогресс в процентах не отображается, это не означает, что проверка системных файлов не производится, наберитесь терпения — это может занять десятки минут.
В итоге вы получите отчет о результате, например: «Защита ресурсов Windows не обнаружила нарушений целостности» или «Защита ресурсов Windows обнаружила поврежденные файлы и успешно их восстановила».
Если при выполнении команды sfc /scannow вы получаете сообщения о том, что защите ресурсов не удалось выполнить восстановление системных файлов, а восстановление хранилища компонентов или запуск в среде восстановления не решает проблемы, вы можете использовать следующие методы решения проблемы:
- При наличии использовать точки восстановления системы на дату, когда проблем с Windows 11 ещё не было.
- Скачать ISO образ Windows 11 и смонтировать его в системе, запустить файл setup.exe из образа, после проверки обновлений и принятия лицензии запустить «Установку» с сохранением данных и установленных приложений. В этом сценарии ваши программы и данные останутся на месте, а системные файлы Windows 11 будут перезаписаны новыми копиями.
Ещё одна возможность — проверить, какие именно файлы были повреждены, используя журнал CBS.log. Для этого запустите командную строку от имени администратора и введите команду:
findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > "%userprofile%\Desktop\sfc.txt"
В результате на рабочем столе будет создан текстовый документ sfc.txt, из которого можно получить нужную информацию (вас будут интересовать строки с указанием имен файлов .dll и информацией «Cannot repair member file»). После этого вы можете заменить поврежденные файлы оригиналами файлов с работающего компьютера с той же версией Windows 11.
Обратите внимание на два нюанса:
- Перезапись файлов, которые сейчас используются может быть невозможной (в рамках запущенной системы)
- Системные файлы могут быть защищены от перезаписи. Решение для этого случая — следующие две команды:
takeown /f полный_путь_к_файлу icacls полный_путь_к_файлу /GRANT Администраторы:F
В случае, если и эти варианты не помогли восстановить работоспособность системы, попробуйте выполнить сброс Windows 11 к исходному состоянию или переустановку системы.
