User Tools

Site Tools


microsoft_windows:fix_corrupt_system_files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

microsoft_windows:fix_corrupt_system_files [2020/01/02 22:17] – created rodolicomicrosoft_windows:fix_corrupt_system_files [2020/01/02 22:38] (current) rodolico
Line 1: Line 1:
 ====== Fix Corrupt System Files ====== ====== Fix Corrupt System Files ======
  
-https://www.lifewire.com/how-to-use-sfc-scannow-to-repair-windows-system-files-2626161 +Occasionally, Windows systems files can become corruptedYou may notice that you get weird errors when running programs, or things may be very slowMicrosoft has the //Systems File Checker// (sfc) which, when run with administrative permission, checks and optionally repairs files. To run this, start an elevated command prompt by right clicking on cmd and selecting Run As Administrator, then execute the following command. Note that this can take a while.
- +
-https://www.easeus.com/partition-manager-software/sfc-scannow-finds-corrupted-files-but-unable-to-fix.html+
  
 <code bash> <code bash>
 sfc /scannow sfc /scannow
-Dism /Online /Cleanup-Image /RestoreHealth 
-reboot 
-sfc /scannow 
-reboot 
 </code> </code>
 +
 +sfc will show feedback on how far it is on the process and, if there are corrupted files, what it has done to replace them. You can also run this from a different Windows install by removing the system hard drive and plugging it into a second Windows machine as a slave, or by booting from a Windows Installation Disk or Flash Drive. In this case, you will need to tell it which one you are trying to repair. Assuming the drive you are trying to repair is d:, the following command will work:
 +
 +<code bash>
 +sfc /scannow /offbootdir=d:\ /offwindir=d:\windows
 +</code>
 +
 +Occasionally, sfc can not do the repair. You can look at //C:\Windows\Logs\CBS\CBS.log// with a text editor to see what is causing the problem. If the problem is bad enough, you may need to use //dism// to install a fresh copy of the affected files from the Microsoft web site. In this case:
 +  - Clean all temporary files
 +  - Reboot system
 +  - Run dism <code bash>Dism /Online /Cleanup-Image /RestoreHealth</code> from a command prompt
 +  - Reboot System
 +  - Run <code bash>sfc /scannow</code> from a command prompt again and see if it still finds corrupted files
 +
 +===== Links =====
 +
 +  * [[https://www.lifewire.com/how-to-use-sfc-scannow-to-repair-windows-system-files-2626161]]
 +  * [[https://www.easeus.com/partition-manager-software/sfc-scannow-finds-corrupted-files-but-unable-to-fix.html]]
 +
 +
microsoft_windows/fix_corrupt_system_files.txt · Last modified: 2020/01/02 22:38 by rodolico