Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»How To»How To Repair Corrupted Windows Files

How To Repair Corrupted Windows Files

Anup ThapaBy Anup ThapaDecember 17, 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.

For further troubleshooting, you can try the other methods listed below.

Table of Contents

  • 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
  • How to Prevent Corruption to System Files?

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.

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 Thapa
  • LinkedIn

Anup Thapa is a tech writer at TechNewsToday. He mostly writes informative articles, tutorials, and troubleshooting guides related to Windows systems, networking, and computer hardware. Anup has been writing professionally for almost 5 years, and tinkering with PCs for much longer. His love for all things tech started when he got his first PC over 15 years ago. It was a Pentium IV system running Windows XP on a single 256 MB stick. He spent his formative years glued to this PC, troubleshooting any hardware or software problems he encountered by himself. Professionally, Anup has had brief forays into a variety of fields like coding, hardware installation, writing, etc. In doing so, he's worked with people of different backgrounds and skill levels, from average joes to industry leaders and experts. This has given him not just a versatile skillset, but also a unique perspective for writing that enables him to concisely communicate complex information and solve his reader's problems efficiently. You can contact him at anup@technewstoday.com

Related Posts

antimalware service executable high memory

Fix: Antimalware Service Executable High Memory

May 18, 2023
windows event logs

How to Check Event Logs on Windows

May 17, 2023
the rpc server is unavailable

Fix: The RPC Server is Unavailable

May 15, 2023
DirectStorage Windows 11

How to Enable DirectStorage on Windows 11

May 15, 2023
audio keeps cutting out

5 Ways to Fix Audio Keeps Cutting Out on Windows 11

May 12, 2023
MBR Error 1 2 3

What is MBR Error 1, 2, 3? 7 Ways to Fix It

May 11, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
Best-1200W-PSU

8 Best 1200W PSUs for Extreme PC Builds in 2023

May 16, 2023
Best-1000W-PSU

10 Best 1000W PSUs in 2023

May 16, 2023
best-700w-psu

10 Best 700W PSUs for Gaming in 2023

May 14, 2023
You may also like
antimalware service executable high memory

Fix: Antimalware Service Executable High Memory

May 18, 2023
printer-printing-pink

Why is My Printer Printing Pink? 6 Ways to Fix It

May 18, 2023
how to clean usb c port

How to Clean USB-C Port Safely

May 17, 2023
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)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

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