系统文件检查器(System File Checker)( SFC ) 内置于Windows中,可帮助用户修复损坏的系统文件。
SFC命令通过将关键系统文件与 Windows 文件夹中的缓存副本进行比较来工作(Windows)。当您在运行该实用程序时收到错误消息时,这意味着缓存副本本身已损坏,从而阻止SFC修复文件。以下是解决此问题和修复Windows安装的最佳五种方法。
修复 1:运行 DISM
仅在Windows 10和Windows 11上可用,您可以使用DISM 命令(the DISM command)恢复本地Windows 映像(Windows Image)的运行状况。它从微软的服务器下载所需的文件,绕过系统数据损坏带来的问题。
这与仅依赖本地Windows 组件存储的(Windows Component Store)SFC扫描形成对比。Microsoft在Windows 10中添加了(Windows 10)部署映像服务(Deployment Image Servicing)和管理(Management)( DISM )来解决这个漏洞。
但这并不是说DISM是完美的。与其他命令行实用程序一样,您只能在可以启动的计算机上使用它——无论是直接还是通过WinPE。
- 使用DISM命令很简单。首先使用“以管理员身份(Administrator)运行”(Run)选项打开命令提示符。(Command Prompt)
- 现在输入以下命令:
Dism /Online/Cleanup-Image /RestoreHealth
- DISM将继续验证系统映像(System Image)的完整性,如果发现任何偏差,请下载所需文件以修复损坏。
- 请注意,使用DISM仅修复Windows系统映像,而不是操作系统本身。您需要在恢复映像后键入 sfc /scannow并按 Enter 键以实际修复您的Windows安装。
- 感谢DISM,SFC现在可以扫描系统并修复任何错误。
修复 2:以安全模式启动
将SFC命令与DISM扫描结合使用是修复受保护系统文件的最佳方式。但是当您无法正常启动 PC 时,您必须以安全模式启动(boot in Safe Mode)才能使用这些命令。
安全模式(Mode)去除了所有不必要的设置和应用程序,仅加载 Windows 所需的关键驱动程序。这消除了由第三方应用程序或恶意软件产生的任何冲突,从而使损坏的系统能够正常启动。
- 根据您拥有的Windows版本,启动到安全模式(Safe Mode)的过程会略有不同。在Windows 10和 11 上,PC 会在连续两次重启失败后自动提示您一个对话框。选择查看(See)高级修复选项按钮继续。
- 您的计算机现在将启动到Windows 恢复环境(Windows Recovery Environment),为您提供了几种修复操作系统的方法。选择疑难解答(Troubleshoot)以查看高级选项。
- 现在选择启动设置。
- 这最终会显示在早期版本的Windows(Windows)中找到的启动选项列表。选择 5(Select 5) )启用(Enable Safe Mode)带网络连接的(Networking)安全模式(Safe Mode)以在可访问 Internet 的安全模式下重新启动 PC 。
- 在Windows 8或更低版本中,只需在计算机开始启动时反复按 F8 即可查看高级启动(Advanced Boot) 选项(Options)。您可以在列表中找到以带网络连接的安全(Networking)模式(Mode)重新启动的选项。
一旦您的系统在安全模式下(Safe Mode)成功启动,请按照修复 1(Fix 1)中概述的步骤修复系统映像。换句话说,在提升的命令提示符窗口中
运行Dism /Online /Cleanup-Image /RestoreHealth 后跟 sfc /scannow
这将修复系统映像中的任何数据损坏并允许Windows再次正常启动。
修复 3:使用系统还原
系统还原(System Restore)是一种将Windows安装及其所有设置和更新恢复到以前状态的方法。这使它成为消除故障Windows 更新(Windows Update)造成的损害的绝佳方式。
问题是该功能只能将Windows还原到以前保存的系统还原点(previously saved System Restore Point)。幸运的是,Windows在安装任何主要更新之前都会创建一个还原点,使我们能够使用(Windows)系统还原(System Restore)有效地回滚升级。
- 要将系统还原到以前的状态,请在控制面板中打开(Control Panel)创建(Create)还原点。您也可以在开始菜单中搜索(Start Menu)系统(System Restore)还原来找到它。
- 这将打开System Properties的(System Properties)System Protection选项卡。点击系统还原...(System Restore…)按钮查看所有保存的还原点。
- 系统还原(System Restore)实用程序最终将打开。按下一步(Next)将带您进入所有最近创建的系统还原点的列表。您可以启用显示(Show)更多还原点复选框以查看较旧的还原点,但这通常是不必要的
- 使用描述和时间戳选择最有可能正常工作的还原点,然后单击Next。
- 确认系统还原点(System Restore Point)的详细信息,然后选择完成(Finish)以还原您的系统。
操作完成后电脑会自动重启。再次运行 SFC(Run SFC),看看是否仍然出现“ Windows 资源保护(Windows Resource Protection)无法修复损坏的文件”错误。
修复 4:恢复出厂设置 Windows
解决任何持久性Windows问题的最后一个选择是将您的 Windows 安装恢复出厂设置(factory reset your Windows installation)。这基本上是重新安装操作系统,替换所有损坏的文件和系统数据。
您甚至可以选择保留文件,仅删除已安装的应用程序和设置。这使得恢复出厂设置远不如格式化驱动器和执行Windows的全新安装那么激烈。
- 要在您的计算机上将Windows(Windows)恢复出厂设置,请打开设置(Settings)。您会在开始菜单(Start Menu)中找到它的齿轮形图标,或者您甚至可以搜索它。
- 切换到Windows 更新(Windows Update)选项卡,然后选择高级(Advanced)选项。
- 这会为您提供一长串选项。向下滚动(Scroll)并选择恢复(Recovery)。
- 单击(Click)重置 PC(Reset PC)按钮以将Windows恢复(Windows)出厂设置。
- 现在您可以选择是要保留个人文件还是删除所有内容。
- 之后,您可以选择选择安装源。如果您想使用自己的Windows 安装媒体,请(Windows Installation Media)选择本地重新(Pick Local Reinstall)安装,否则只需使用云(Cloud)下载。
- 最后,系统会要求您确认是否要在计算机上将Windows恢复出厂设置。准备好后点击重置(Reset)按钮。
该过程可能需要一段时间,因为Windows将卸载当前操作系统,然后再次重新安装Windows。在此过程中,您的 PC 也可能会重新启动几次。如果您使用的是笔记本电脑,请确保将其插入电源,以免中途丢失进度。
修复 5:使用WinPE修复(高级(Advanced))
当关键系统文件严重损坏时,Windows 无法启动,即使在安全模式下(Safe Mode)也是如此。在这种情况下拯救系统的唯一方法是使用WinPE修复现有安装。
需要明确的是,这不是一个简单的过程。WinPE是Windows的准系统版本,专门用于对现有Windows安装进行故障排除和修复。因此,它缺乏构成现代操作系统的大部分功能,使得WinPE有点难以使用。
也就是说,这通常是修复完全损坏的Windows安装而不丢失硬盘驱动器上的任何数据的唯一方法。而且如果你熟悉命令行操作,你可以流畅地浏览它的界面。
如果您想尝试一下,请创建一个可启动的 Windows PE 救援磁盘(或闪存驱动器)(create a bootable Windows PE rescue disk (or flash drive))并从中启动。WinPE直接打开一个命令提示符窗口。只需(Simply)使用DISM和SFC命令(有关详细信息,请参阅修复 1(Fix 1))来扫描Windows 安装(Windows Installation)并修复它。
完成后,只需重新启动计算机并让它正常启动。如果一切顺利,您的 PC 应该可以再次正常工作。
修复 Windows 资源保护发现损坏文件错误(Fix Windows Resource Protection Found Corrupt Files Error)的最佳方法是什么?
解决损坏的文件错误并使SFC再次工作的最佳方法是使用DISM。这会修复Windows系统映像,从(Windows)Microsoft下载任何损坏的文件。
如果您可以正常启动计算机,则只需从提升的命令提示符运行DISM并再次使用SFC进行扫描。(SFC)您还可以使用系统(System Restore)还原来撤消最近的更改,或者只是将Windows完全恢复出厂设置。
当Windows完全无法加载时,请尝试以安全模式(Safe Mode)启动。如果做不到这一点,请创建一个WinPE磁盘并从它启动。这使您可以访问命令提示符,之后您可以使用DISM和SFC修复Windows。
Windows Resource Protection Unable to Fix Corrupt Files: 5 Fixes to Try
The Sуstem File Checker (SFC) is built intо Windows to help users repair сorrupted system files.
The SFC command works by comparing critical system files to a cached copy in the Windows folder. When you get an error message while running the utility, it means that the cached copy itself is corrupted, preventing SFC from fixing the files. Here are the best five ways to get around this problem and repair your Windows installation.
Fix 1: Run DISM
Available only on Windows 10 and Windows 11, you can use the DISM command to restore the health of the local Windows Image. It downloads the required files from Microsoft’s servers, bypassing the issues posed by the system’s data corruption.
This is in contrast to an SFC scan, which only relies on the local Windows Component Store. Deployment Image Servicing and Management (DISM) was added by Microsoft in Windows 10 to address this very vulnerability.
That is not to say the DISM is perfect, though. Like other command line utilities, you can only use it on a computer you can boot into – whether directly or through WinPE.
- Using the DISM command is simple. Begin by opening the Command Prompt with the Run as Administrator option.
- Now enter the following command:
Dism /Online /Cleanup-Image /RestoreHealth
- DISM will proceed to verify the integrity of the System Image, and if any deviations are found, download the required files to repair the corruption.
- Note that using DISM only fixes the Windows system image, not the OS itself. You need to type sfc /scannow and hit the enter key after restoring the image to actually repair your Windows installation.
- Thanks to DISM, SFC will now be able to scan the system and fix any errors.
Fix 2: Boot in Safe Mode
Using the SFC command in combination with a DISM scan is the best way to repair protected system files. But when you are unable to start your PC normally, you must boot in Safe Mode to use these commands.
Safe Mode strips away all unnecessary settings and applications, loading Windows with only the critical required drivers. This removes any conflicts generated by third-party applications or malware, allowing damaged systems to boot up properly.
- The process of booting into Safe Mode differs slightly based on the version of Windows you have. On Windows 10 and 11, the PC will automatically prompt you with a dialog box after two consecutive failed restarts. Select the See advanced repair options button to continue.
- Your computer will now boot into the Windows Recovery Environment, giving you a couple of methods for repairing the operating system. Choose Troubleshoot to see advanced options.
- Now select Startup Settings.
- This finally brings up the list of boot options found in earlier versions of Windows. Select 5) Enable Safe Mode with Networking to reboot the PC in Safe Mode with internet access.
- In Windows 8 or below, just repeatedly tap F8 when the computer starts booting to view the Advanced Boot Options. You can find the option to reboot in Safe Mode with Networking in the list.
Once your system successfully boots up in Safe Mode, follow the steps outlined in Fix 1 to repair the system image. In other words, run Dism /Online /Cleanup-Image /RestoreHealth followed by sfc /scannow command in an elevated command prompt window.
This will repair any data corruption in the system image and allow Windows to boot normally again.
Fix 3: Use System Restore
System Restore is a method to revert your Windows installation, along with all of its settings and updates, to a previous state. This makes it an excellent way to undo the damage dealt by a faulty Windows Update.
The catch is that the feature can only restore Windows to a previously saved System Restore Point. Fortunately, Windows creates a restore point before installing any major update, allowing us to effectively roll back the upgrade using System Restore.
- To restore your system to a previous state, open Create a restore point in the Control Panel. You can also search System Restore in the Start Menu to find it.
- This will open the System Protection tab of System Properties. Hit the System Restore… button to view all saved restore points.
- The System Restore utility will finally open. Pressing Next will bring you to the list of all recently created system restore points. You can enable the Show more restore points checkbox to see older restore points, though that is usually unnecessary
- Use the description and the timestamp to pick the restore point most likely to work correctly, then click on Next.
- Confirm the details of the System Restore Point and select Finish to restore your system.
The computer will restart automatically after the operation is complete. Run SFC again and see if you still get the “Windows Resource Protection unable to fix corrupt files” error.
Fix 4: Factory Reset Windows
The final option to solve any persistent Windows issue is to factory reset your Windows installation. This basically reinstalls the OS, replacing all corrupted files and system data.
You can even choose to keep your files, removing only the installed applications and settings. This makes factory reset a far less drastic option than formatting the drive and performing a clean install of the Windows.
- To factory reset Windows on your computer, open Settings. You will find its gear-shaped icon in the Start Menu, or you can even search for it.
- Switch to the Windows Update tab, and select Advanced options.
- This presents you with a long list of options. Scroll down and select Recovery.
- Click on the Reset PC button to factory reset Windows.
- Now you get to choose whether you want to keep your personal files or delete everything.
- After that, you get the option to pick an installation source. Pick Local Reinstall if you want to use your own Windows Installation Media, otherwise just go with a Cloud download.
- Finally, you will be asked to confirm if you want to factory reset Windows on your computer. Hit the Reset button when you are ready.
The process can take a while, as Windows will uninstall the current OS and then reinstall Windows again. Your PC might also restart several times in the process. If you are using a laptop, make sure to plug it in so that you don’t risk losing your progress midway.
Fix 5: Repair with WinPE (Advanced)
When critical system files are severely corrupted, Windows fails to boot, even in the Safe Mode. The only way to rescue the system in such a scenario is to use WinPE to repair the existing installation.
To be clear, this is not a simple process. WinPE is a barebones version of Windows used exclusively for troubleshooting and repairing existing Windows installations. As such, it lacks most of the features that make up a modern operating system, making WinPE somewhat hard to use.
That said, this is often the only way to repair a completely corrupted Windows installation without losing any of the data present on the hard drive. And if you are familiar with command line operations, you can navigate its interface smoothly.
If you want to give it a try, create a bootable Windows PE rescue disk (or flash drive) and boot from it. WinPE directly opens with a command prompt window. Simply use the DISM and SFC commands (refer to Fix 1 for details) to scan the Windows Installation and repair it.
When you are done, just restart your computer and let it boot normally. If everything went well, your PC should be working properly again.
What is the Best Way to Fix Windows Resource Protection Found Corrupt Files Error?
The best way to resolve a corrupt file error and get SFC working again is to use DISM. This repairs the Windows system image, downloading any corrupted files from Microsoft.
If you can boot up your computer normally, then just run DISM from an elevated command prompt and scan with SFC again. You can also use System Restore to undo recent changes, or just factory reset Windows entirely.
When Windows fails to load at all, try booting in Safe Mode. Failing that, create a WinPE disk and boot from it. This gives you access to the command prompt, after which you can use DISM and SFC to repair Windows.