Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • Windows Calculator Missing or Disappeared? Computer Tips
  • Top 10 Websites to Learn Python Programming 2022 Cool Websites
  • How to delete a user in Windows 10,2023 Windows 10
  • Best free notion templates 2022 Cool Websites
  • Slack Desktop App: What Are the Benefits of Using It? Reviews
  • Great ideas for 3D printing for the holidays 2022 technology
  • Configure CentOS to Sync with NTP Time Servers Linux
  • Best Free Ways to Convert BMP to JPG Computer Tips

Use These Command Prompt Commands to Fix or Repair Corrupt Files

Posted on October 8, 2020 By blog_786 1 Comment on Use These Command Prompt Commands to Fix or Repair Corrupt Files

The Windows System File Checker (SFC) tool is a great tool for recovering corrupted files. Here’s a quick guide to recovering files and getting your computer back to normal operation.

Run SFC

First, you will need to open an elevated command prompt (CMD). Basically, you will need to run Command Prompt as administrator.

Open an elevated command prompt

Run search and enter command line. Find Command Prompt in the results, right-click it and select Run as Administrator.

Use These Command Prompt Commands to Fix or Repair Corrupt Files

Run DISM (Windows 8 and later)

Windows 8, Windows 8.1, and Windows 10 users will need to run the Deployment Image Servicing and Management (DISM) tool before running SFC.

Note . Windows 7 users can proceed to the next step.

At the command prompt, type the following command and hit enter:

– / DISM.EXE / ONLINE / CLEANUP-IMAGE / RESTORE HEALTH

Use These Command Prompt Commands to Fix or Repair Corrupt Files

DISM will use Windows Update to find files that will replace or repair damaged versions. This process can take several minutes.

Run Scannow

We can now scan the system for corrupted files. At the command prompt, enter the command:

SFC / SCANNOW

Use These Command Prompt Commands to Fix or Repair Corrupt Files

With this command Windows will scan your files and replace corrupted files. The scan will take some time. It is important that you do not close the command line until the scan is 100% complete.

Review the results

After the scan completes, you will receive one of the following messages:

  • Windows Resource Protection found no integrity violations – Windows was unable to find corrupted files on your hard drive.
  • Windows Resource Protection cannot perform the requested operation, which means you need to run the System File Checker in Safe Mode.
  • Windows Resource Protection found corrupted files and successfully repaired them – Windows found corrupted files and fixed them
  • Windows Resource Protection found corrupted files, but could not fix some of them – Windows found corrupted files, but couldn’t do anything about it.

View SFC details

You can open the sfcdetails.txt file to view or copy the scanned information. Use the instructions below to find the above text file.

Open an elevated command prompt and enter the following command:

FINDSTR / C: “[SR]”% WINDIR% LOGS CBS CBS.LOG “% USERPROFILE% DESKTOP SFCDETAILS.TXT”

Use These Command Prompt Commands to Fix or Repair Corrupt Files

This will create a copy of the file on your desktop. Open the file and view the results. Note that the file will display all data, including those collected from previous SFC runs.

Use These Command Prompt Commands to Fix or Repair Corrupt Files

You will need to check the time and date to find specific entries.

Manually replace damaged files

If SFC fails to replace the corrupted Windows file, you can try doing it manually. This is possible if you know where the damaged file is. You will also need a good copy of this file so that you can replace it.

Open an elevated command prompt and enter the following command:

TAKEOWN / F

Use These Command Prompt Commands to Fix or Repair Corrupt Files

Don’t forget to replace with the path to the damaged file. This command will allow you to take ownership of the infected file. CMD will inform you if the takeover is successful.

When finished, give administrators access to the corrupted file. Do this by typing the following command:

ICACLS / GRANT ADMINISTRATORS: F

Use These Command Prompt Commands to Fix or Repair Corrupt Files

Again, don’t forget to replace with the damaged file path.

Now you can replace the bad file with the good version. You will need to copy the good file and paste it over the old one. Enter the following command:

COPY

Use These Command Prompt Commands to Fix or Repair Corrupt Files

Replace with the location of the good copy file and replace with the path to the corrupted version.

–

Share this:

  • Twitter
  • Facebook
Help Desk

Post navigation

Previous Post: Stop a Website from Sending Notifications in Chrome
Next Post: How to Fix “Your Connection is Not Private” Error in Google Chrome

Related Posts

  • How To Fix Windows Stop Code Memory Management BSOD Help Desk
  • What is the System Reserved or EFI Partition in Windows? Help Desk
  • How to Fix a Stop Code Critical Process Died BSOD Help Desk
  • Fix Can’t Adjust Brightness after Upgrading to Windows 8.1/10 Help Desk
  • How to Fix uTorrent Stuck on Connecting to Peers Help Desk
  • What Is a CPU & What Does It Do? Help Desk

Comment (1) on “Use These Command Prompt Commands to Fix or Repair Corrupt Files”

  1. Pingback: SMSS.exe Windows process - What is it? - How To Blog

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • March 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Categories

  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • A Simple Trick to Get 50% Discount on Audible for Three Months
  • How to reset your SIM card
  • This Simple Trick Lets You Play YouTube in the Background on iOS
  • How to go Back to the old YouTube Layout (2013)
  • How to Bypass Chromecast DNS and Circumvent Geo Blocking
DMCA.com Protection Status

Recent Posts

  • 10 Things to Check Before Publishing a YouTube Video
  • MailTag: Real-time Email Tracking, Made Easy
  • Pokemon Sleep: what is it and how to play
  • How to Respond to Messages on Instagram (Mobile and PC)
  • How to reset your SIM card

Recent Comments

  1. This Simple Trick Lets You Play YouTube in the Background on iOS on YouTube Not Working? Here Are Quick Fixes To Try
  2. How to Bypass Chromecast DNS and Circumvent Geo Blocking on 5 Cool Websites to Find Good Movies and TV Shows on Netflix
  3. 5 Cool Websites to Find Good Movies and TV Shows on Netflix on check netflix video quality internet explorer
  4. SmartDNS vs VPN “What’s the Difference?” on How to Watch Apple TV on Roku
  5. How to go Back to the old YouTube Layout (2013) on 10 Things to Check Before Publishing a YouTube Video
  • How to Block Access to Windows 10 Settings and Control Panel Windows 10
  • Airbnb alternatives Canada in 2021 Cool Websites
  • How To Connect Spotify To Discord Computer Tips
  • 7 Best Roguelike Games For Any Platform Gaming
  • How To Download Wikipedia Computer Tips
  • 10 Troubleshooting Tips If Your Internet Is Connected But Not Working Computer Tips
  • How to Tell If Your Computer is Being Monitored How-To
  • How To Boost Performance In WordPress Through a Database Clean Wordpress

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version