Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Repair Corrupt or Damaged Windows 10 / 8.1 System Files

When you were working or playing a video game on your new Windows 10 / 8.1 operating system and you got the “your PC ran into a problem and needs to restart” error message?  This Error happen due to Corrupt or Damaged Windows 10 / 8.1 System Files.

Cause of Corrupt or damage system file on windows system.

Windows files corruption may have several causes, for instance, incorrectly installed Windows updates. new installed driver software.

Whenever something goes wrong with a PC, there seems to be a number of tools and troubleshooting tricks you can perform to try and repair the issue and move on. In Windows 10, there are several built-in commands you can use to repair corrupt system files that tend to cause issues over time as you change Windows system files.


Fix / Repair Corrupt System Files in Windows 10 using built-in commands

Run this command when troubleshooting a buggy Windows system. If Windows is blue-screening, applications are crashing, or some Windows features just aren’t working the way they should, the SFC command may be able to fix this correct errors causing your PC to perform slowly.. It’s worth running as even if the SFC command doesn’t find any issues it will confirm that no system files are corrupted and you can continue to troubleshoot your system with other methods.

DISM commands are less common. However, if the SFC command fails to run properly or can’t replace a corrupted file with the correct one, the DISM command can fix the underlying Windows system to assist the SFC to run correctly.

Repair Corrupt System Files in Windows 10 with the System File Checker

The System File Checker or sfc.exe is a utility in Microsoft Windows located in C:\Windows\System32 folder. This utility allows users to scan for and restore corrupt Windows system files.

The System File Checker tool scans your computer for any corruption or changes to system files that would otherwise interfere with the normal operation of your PC. From there, it replaces the file with the correct version to ensure smooth functioning.


If you notice an increase in the Blue Screen of Death, applications constantly crashing, Windows operations stalling, you may need to run the System File Checker to help correct errors causing your PC to perform slowly.

How to Run SFC command on windows 10 / 8.1

Save all your work and close any other programs you’re running.

SFC isn’t a light or casual utility. It does major repair. Don’t blow it by losing information in an open program window. Save now!

Right click on start menu and select Command Prompt (Admin) As shown bellow picture.


Now On command prompt window , type Command sfc /scannow and hit Enter.

You see text: Beginning system scan. This process takes some time.
Beginning verification phase of system scan.

Wait. SFC fixes what it can. Mostly, it plods through and displays the results, like this:

Verification 100% complete. After that Restart windows.


Repairing Corrupt System Files in Windows 10 with DISM 

Note This process Also fix bellow error message
 some times after perform sfc / scannow this will get a message like : Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log.  

If the above doesn’t work there’s one last way to check for corruption in system files and repair them. You can use the Deployment Image and Servicing Management (DISM) tool.

Right click on start menu and select Command Prompt (Admin) As shown bellow picture.


Now On command prompt window , type Command DISM /Online /Cleanup-Image /RestoreHealth and hit Enter.


DISM command with the /ScanHealth switch to scan the Windows image for any corruption. Unlike the /CheckHealth, the /ScanHealth switch can take up to 10 minutes to complete the process.

DISM /Online /Cleanup-Image /RestoreHealth

DISM will go to Windows update online and get any missing or corrupt files. However if Windows Update is corrupt or your networking is damaged then you will need to use local source for the system files. In this case the command is like,  Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:C:\temp\install.wim:1

install.wim is a standard Windows image file that contains the distribution of Windows 10. It is normally found on your Windows DVD. if you dont have your windows setup DVD

You can download the ISO for Windows 10 using these instructions:

Visit the Microsoft Windows 10 download page.
Click the Download tool now button.
Double-click the file to run the Media Creation Tool.
Follow the on-screen directions to create an ISO file with the same version and edition of your current version of Windows 10.
Once the process completes, unzip the file using Winrar or Winzip.

Now  Copy the "install.wim" file to your desktop.

You can find this file in the "sources" folder.  Create a new folder on your desktop and name it mount. Now  Open "Command Prompt (Admin)". You can find this when you right-click on the start menu button.

On command prompt Type bellow command

Dism /mount-wim /wimFile:%USERPROFILE%\Desktop\install.wim /index:1 /MountDir:%USERPROFILE%\Desktop\mount



 Hit "Enter" Wait until the command is completed... Now  Copy and paste the following line into the command prompt:

Dism /Online /Cleanup-Image /CheckHealth 

press enter key Wait until the command is completed...

 again Copy and paste the following line into the command prompt:

Dism /Online /Cleanup-Image /RestoreHealth /Source:%USERPROFILE%\Desktop\mount\windows /LimitAccess

And press enter key
This may take a little bit longer and at 20% it will look like it's stuck (hangs), but that's okay. It's normal. Don't worry. It will work. Just be patient and wait until the command is completed....

Copy and paste the following line into the command prompt:

Dism /unmount-wim /Mountdir:%USERPROFILE%\Desktop\mount /discard

Wait until the command is completed...

Using DISM with an install.ESD file

Alternatively, you can not only specify a source pointing to install.WIM, but you can also use an install.ESD file, which is an encrypted version of Windows image.

If you have upgraded to Windows 10 from a previous version of the operating system, the installation files may still stored on the C: drive, which means that you may just have a source of known good files.

To use the install.esd to repair the Windows image in your computer use the following steps:

Use the Windows key + X keyboard shortcut to open the Power User menu and select Command Prompt (Admin).
Type the following command and press Enter:

DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\$Windows.~BT\Sources\Install.esd

Or you can also run the following to limit the use of Windows Update:

DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\$Windows.~BT\Sources\Install.esd /LimitAccess

Alternatively, you can also use following variant of the previous command to accomplish the same task:

DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:C:\$Windows.~BT\Sources\Install.esd:1 /LimitAccess

Or if the install.esd is located on another drive use the following command:

DISM /Online /Cleanup-Image /RestoreHealth /Source:repairSource\Install.esd

Thats all

 Now it's time to re-run the sfc /scannow command. Enter sfc /scannow and hit "Enter".

The instructions you've learned thus far are to repair the Windows image. Now you can use the Windows image to fix the problems in your Windows 10 installation using the System File Checker (SFC) utility.

Use the Windows key + X keyboard shortcut to open the Power User menu and select Command Prompt (Admin).
In the Command Prompt type the following command and press Enter:

sfc /scannow

This SFC command will scan and repair system files on Windows 10, but now with access to replace missing or corrupted files using known good files from the Windows image.

Try System Restore or a System Reset

If you’re still experiencing issues. Running the System Restore tool will restore your Windows operating system files to an earlier state, and this may fix system corruption problems if the operating system wasn’t damaged at that earlier point.



Alternatively, there’s always just performing a system reset or reinstalling Windows, too. On Windows 10 you can perform a “Reset this PC” operation to reset Windows to its default state. You’ll have to reinstall your programs after, but you won’t lose any personal files.

Send us your computer, windows related question to [email protected] we will try our best to give you the best solution.
Like our facebook page : http://www.facebook.com/windows101tricks

visit our blog : http://www.windows10trickss.blogspot.com


This post first appeared on Windows101Tricks - Windows 11 And Windows 10 How To Guide, please read the originial post: here

Share the post

How to Repair Corrupt or Damaged Windows 10 / 8.1 System Files

×

Subscribe to Windows101tricks - Windows 11 And Windows 10 How To Guide

Get updates delivered right to your inbox!

Thank you for your subscription

×