Tech News Today
  • News
  • How To
  • Buyer’s Guide
  • Hardware
    • PC Builds
    • Computer Cases
    • Motherboards
    • Peripherals
    • RAM
  • Gaming
  • Software
  • More
    • Mobile
    • Gadgets
    • Laptops
    • Reviews
Facebook Twitter Instagram
Tech News Today
  • News
  • How To
  • Buyer’s Guide
  • Hardware
    • PC Builds
    • Computer Cases
    • Motherboards
    • Peripherals
    • RAM
  • Gaming
  • Software
  • More
    • Mobile
    • Gadgets
    • Laptops
    • Reviews
Tech News Today
Home»How To»How To Repair Corrupted Windows Files

How To Repair Corrupted Windows Files

AnupBy AnupApril 7, 2022
repair corrupted windows files

Corrupt system files are the reason for a whole host of problems, some of which you may be familiar with, including the infamous blue screen error or BSOD, Windows Update errors, Windows Explorer Using High CPU error, and so on.

The best way to repair corrupted Windows Files is using native system repair utilities such as SFC (System File Checker) and DISM (Deployment Image Servicing and Management). CHKDSK can also be helpful if the file corruption happened due to bad sectors on your drive.

Depending on what caused the corruption and what issues that has led to, you can use the appropriate steps to repair corrupted windows files from the guide below.

Table of Contents

  • Why Do Windows Files Become Corrupted?
  • Ways to Repair Corrupted Windows Files
    • Run DISM and SFC Scans
      • Windows Resource Protection could not perform the requested operation
      • Windows Resource Protection found corrupt files but was unable to fix some of them
    • Use the CHKDSK Utility
    • Run a Troubleshooter
    • Third-Party Software
    • System Restore / System Image Recovery
    • Startup Repair / Repair PC
    • Reset your PC
  • Related Questions
    • How to Prevent Corruption to System Files?

Why Do Windows Files Become Corrupted?

In addition to bad sectors, Windows Files can also become corrupt due to reasons such as:

  • Abrupt shutdowns and disconnections
  • Power outage/surges
  • System crashes
  • Update issues
  • Malware

Ways to Repair Corrupted Windows Files

As mentioned above, the native DISM, SFC, and CHKDSK utilities will be most useful when it comes to dealing with corrupt system files. For further troubleshooting, you can try the other methods listed below.

Run DISM and SFC Scans

The sfc command scans all protected system files, verifies their versions, and replaces them with the correct version if required. In case any of the source files for SFC are corrupt/missing, DISM will replace them with functioning ones. DISM will also be helpful if there are any errors that the SFC utility finds but is unable to fix. To perform these scans:

  1. Press Windows + R to launch Run.
  2. Type cmd and press CTRL + Shift + Enter to launch Elevated Command Prompt.
  3. Type DISM.exe /Online /Cleanup-image /Restorehealth and press Enter.
    dism-online-cleanupimage-restorehealth
    After a few minutes, the process will complete and a log file will be created at %windir%/Logs/CBS/CBS.log

DISM uses Windows Update to obtain the files required to fix the corruption. To use a different repair source like a Windows DVD for instance:

  1. Type the following code, replace C:\RepairSource\install.wim with the appropriate repair source path, and press Enter:
    DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\install.wim /LimitAccess
  2. Type sfc /scannow and press Enter.
    sfc-scannow-no-violations

You’ll receive a message upon completion. If it says no integrity violations or successful repair, you don’t need to take any further actions.sfc-corrupt-files-successfully-repaired

Check the sections below in case of other messages.

Windows Resource Protection could not perform the requested operation

We have a detailed guide instructing what to do in case of this error. With that said, here are the steps to run the SFC scan in Safe Mode to overcome this error:

  1. Hold Shift and restart your PC or, reboot it 3 times consecutively to access winRE.
  2. From the Choose an Option screen, select 
    Troubleshoot > Advanced options > Startup Settings > Restart.
  3. After restarting, press 5 or F5 to boot in safe mode with networking.Safe mode
  4. Upon booting in safe mode, repeat the same steps as the section above. The DISM and SFC scans should fix the issue now. In case they still don’t, check the section below.

Windows Resource Protection found corrupt files but was unable to fix some of them

For this error, you’ll have to replace the corrupted files manually with the steps listed below:

  1. Open Elevated Command Prompt, type the following command, and press Enter:
    findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"
  2. Open the sfcdetails.txt file that was created just now from your Desktop.
    sfcdetails-txt
  3. Identify the file that couldn’t be repaired using the Date, Time, and Cannot Repair Member File message.
  4. We’ll assume the corrupt file is jscript.dll for tutorial purposes. Replace filename_and_path with your own values and use the following commands:
    • takeown /f filename_and_path
      takeown-cmd
    • icacls filename_and_path /Grant Administrators:F
      icacls-grant-administrators-cmd

Finally, copy-paste and replace the corrupt file with a working one. To do it via cmd, use the command below but replace the first portion with the good file’s location and the second portion with the corrupt file’s path:

 copy F:\new\jscript.dll C:\windows\system32\jscript.dll

You can obtain a working version of the corrupt file online, or from another computer running the same version of Windows as yours.

Use the CHKDSK Utility

CHKDSK checks the integrity of the file system and attempts to fix any logical file system errors and bad sectors. You can use it with the steps listed below:

  1. Press Windows + R to launch Run.
  2. Type cmd and press CTRL + Shift + Enter to launch Elevated Command Prompt.
  3. Type the following command, replace Z with the appropriate drive letter, and press Enter:
    CHKDSK Z: /f /r /xrun chkdsk for 0x80070057 1

You can also scan a partition for errors via GUI using the Error Checking tool. To initiate it:

  1. Press Windows + E to open Windows Explorer.
  2. Right-click the drive you want to scan and select Properties.
  3. Switch to the Tools tab and click on Check.
    error-checking-scanner
  4. Press Scan drive and follow the on-screen instructions to fix any errors found.
Note: Make sure to run the SFC scan again if CHKDSK found any corruptions on the disk.

Note: Make sure to run the SFC scan again if CHKDSK found any corruptions on the disk.

Run a Troubleshooter

If you’re only facing issues with a particular part of Windows like Windows Update or Internet Connection, for instance, you can run a troubleshooter for that issue specifically with the following steps:

  1. Press Windows + I to launch Settings.
  2. Navigate to Update and Security > Troubleshoot and click on Additional troubleshooters.
    windows-additional-troubleshooters
  3. Run the appropriate troubleshooter for your particular issue.

Third-Party Software

In case none of the solutions above were helpful, or you simply didn’t want to deal with all the hassle of the technical steps, a third-party repair tool is a good option. Some reputable ones available right now include FixWin 10, Restoro, Windows Repair, Windows Repair Toolbox, Recoverit, and CCleaner.

System Restore / System Image Recovery

This solution is only applicable if you have a system restore point or system image from before the start of the corruption issue.

Keep in mind that system restore will only reset the system files, configurations, and programs; it won’t affect your personal files. On the other hand, system image recovery will revert everything, including personal files to the state they were when the image was created.

With that said, here’s how you can use system restore or system image recovery:

  1. Press Windows + I to launch Settings.
  2. Navigate to Update and Security > Recovery.
  3. Under Advanced Startup, click on Restart now.
  4. In winRE, click on System Restore.
    system-restore
  5. Select the appropriate Restore point from the list and follow the on-screen instructions to complete the process.
    restore-point-sample
  6. Alternatively, select System Image Recovery, select the appropriate image, and follow the instructions shown on-screen.
    system-restore-system-image-recovery

Startup Repair / Repair PC

Corrupt Windows Files can lead to booting issues, in which case, you should use the startup repair tool with the following steps:

  1. Reboot your PC 3 times in a row to access Windows Recovery Environment (winRE).
  2. In winRE, go to Troubleshoot > Advanced Options > Startup Repair.
    startup-repair-tool-automatic-repair
  3. Login to your account and wait for the startup repair tool to complete the repair process.

If your system files are so corrupt that you can’t even access the startup repair tool at boot, you can boot using a Windows Installation Disk/Drive or Recovery Disk/Drive and access the repair tool from there.

repair-your-computer

Reset your PC

If none of the other solutions worked, the only option left is to perform a clean install or reinstall of Windows. In Windows 10/11, you can opt to keep your personal files or format everything during the installation.

reset-pc-keep-my-files
  1. Press Windows + I to launch Settings.
  2. Navigate to Update and Security > Recovery and click on the Reset PC or Get Started button.
  3. Follow the on-screen instructions and press Reset to reset your PC.

Related Questions

How to Prevent Corruption to System Files?

Regularly backing up important files – both system and personal – is the first thing you should do to protect files against corruption and other threats.

Other good practices include keeping your system updated, scanning for malware regularly using antivirus software, and performing the occasional CHKDSK scan.

On the hardware end, abrupt shutdowns, power outages, and surges can damage your hard drive, which can lead to file corruption. Using a UPS for power backup, and shutting down your Windows properly can be helpful against these problems.

how-to
Anup

I used to be a travel writer. Then I took an arrow in the knee.

Related Posts

your version of windows has reached end of service

How to Fix “your version of windows has reached end of service”

May 1, 2022
how-to-change-c-users-username-in-windows

How to Change Username and User Profile Folder Name in Windows

April 29, 2022
vcruntime140.dll not found

How To Fix “VCRUNTIME140.dll Not Found” Error In Windows

April 29, 2022
windows-taskbar-not-working

Windows Taskbar Not Working? Here’s How to Fix It

April 29, 2022
the-requested-operation-requires-elevation-Featured-image

How to Fix “The Requested Operation Requires Elevation”

April 28, 2022
file-explorer-not-responding

How To Fix “File Explorer Not Responding”

April 28, 2022
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
apple watch cellular vs gps

Apple Watch Cellular Vs GPS – What’s the Difference?

May 2, 2022
Games Like Wizard101

Best 13 Games Like Wizard101 for Card Collector Fans

April 28, 2022
what is a tf card

What Is A TF Card? Does It Differ To An SD Card

April 27, 2022
You may also like
your connection was interrupted a network change was detected

How to Fix “Your Connection Was Interrupted a Network Change Was Detected”

May 2, 2022
problem with wireless adapter or access point

How to Fix “Problem With Wireless Adapter Or Access Point”?

May 2, 2022
How To Import Passwords Into Chrome

How To Import Passwords Into Chrome

May 2, 2022
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

October 25, 2021
Facebook Twitter Pinterest
  • Home
  • About Us
  • Privacy Policy
  • Affiliate Disclosure
© 2022 TechNewsToday.

Type above and press Enter to search. Press Esc to cancel.