Categories
Design

How to repair corrupted windows system files with the sfc and dism commands

December 7th, 2021

Windows system files are the core files without the presence of which the operating system cannot be brought in a functional state. However, at times due to various issues, these system files may get corrupted and show performance issues such as the occurrence of a blue screen. In such a situation, it becomes necessary to repairing corrupted Windows system.

System File Checker (SFC) and Deployment Image Servicing and Management (DISM) are two such Microsoft utilities, which are used to repair the corrupted Windows system files. This blog reflects the information about both the utilities and the procedure with the help of which the Windows system files can be repaired.

More on SFC & DISM Utilities

System File Checker was first introduced as a GUI utility in Windows 98. In Windows Vista and Windows 7, the utility is integrated with Windows Resource Protection. SFC scans and restores corrupt system files by replacing the corrupt files with the cached copy of the files from the DLL cache stored at location Windows\System32\DLLcache.

Normally, there is no necessity of using DISM utility once the SFC utility has been run. However, in case the SFC fails to run or is not able to replace the corrupt system file with a healthy one, it is necessary to run the DISM utility.

Procedure to Repair Windows Files with SFC and DISM Utilities

In this section, we have explained the process with the help of which the user can repair the corrupt system files with the assistance of SFC and DISM utilities. Follow the below-mentioned procedure for doing this:

Running SFC Command:

  • Right-click on Command Prompt option and select Run as administrator

How to repair corrupted windows system files with the sfc and dism commands

  • In the command prompt window enter the command

C:\WINDOWS\system32>sfc /scannow

How to repair corrupted windows system files with the sfc and dism commands

  • Press Enter and let the system run a full scan.

Do not close the command prompt window. It will take around 10-15 minutes for scanning the entire database for corruption. When the corrupt system files are repaired following message is displayed:

How to repair corrupted windows system files with the sfc and dism commands

However, in case a message is displayed DISM utility should be used.

Running DISM Command:

The DISM command is used to fix the corruption of the component store that prevents the SFC from working in a proper manner. To run this command perform the below-mentioned steps:

  • In the command prompt window enter the command:

C:/WINDOWS/SYSTEM32> DISM /ONLINE/ CLEANUP-IMAGE/restorehealth

How to repair corrupted windows system files with the sfc and dism commands

  • The progress bar might get stuck at 20%. Do not worry as this is a normal thing and will not affect the procedure.

How to repair corrupted windows system files with the sfc and dism commands

If the above command makes some changes, restart your computer and run the SFC command again.

Note: It is to be noted that the DISM utility is not available in Windows 7 and earlier versions.

Conclusion

SFC and DISM utilities are the best utilities to repair corrupt Windows system files. However, it is to be noted that whilst SFC utility is available in all Windows versions, DISM is only available in Windows 8, 8.1, and 10. Therefore, for Windows 7 and above versions, other utilities can be used instead of DISM.

You might have heard about certain commands such as SFC and DISM to repair corrupted Windows system files. But, have you ever tried these tools whenever your PC run into some problems?

Well, here you’ll know how to use these tools to fix corrupted system files on your PC.

When to use SFC and DISM?

SFC command will be quite useful under following situations.

  1. Blue screen of death
  2. Applications are not responding
  3. Frequent rebooting of your PC
  4. Windows crash

If you feel SFC command isn’t properly working for you, you can use DISM command to properly execute SFC command and fix your issue.

What is SFC?

SFC or System File Checker is a very useful tool that you can use when you face troubles with important system files. Say for example DLL files. If a system file has modified, the tool will automatically replace that file with the correct version.

How to use SFC command to repair system files?

  1. Open Command Prompt(Admin)
  2. Type SFC /scan now in Command Prompt and press enter to start a full system scan
  3. If there’re no issues, you’ll see this message “Windows Resource Protection did not find any integrity violations”.
  4. If you see an error message “Windows Resource Protection found corrupt files but was unable to fix some of them”, then you may have to reboot your system in safe mode and execute the above command in Command Prompt again.

Working with DISM Command

Deployment Image & Servicing Management tool(DSIM) is a part of Windows 8, 8.1 and 10 to fix errors that allow SFC command from working properly.

Executing DISM

Just like SFC, DISM also needs admin privileges in Command Prompt. It’ll check your Windows component store for any corruption issues and fixes whatever problems it finds.

Here’s the command you’ve to use in DISM

DISM /Online /Cleanup-Image /Restore Health

The repair process may take some time, normally five to ten minutes. Sometimes, its progress bar may halt at some point. No need to worry, it’s temporary.

Apart from corrupt windows system files, you could also encounter damaged word files. Learn about word file repair tool here.

Also Read:

  1. How to Repair Corrupt DJI video files?
  2. Repair Video Files Corrupted while Editing: A Video Editors Handbook
  3. Windows 10 Driver Backup using DISM Command
  4. How to Use Outlook Inbox Repair Tool to fix corrupted Data File
John Harris

Senior Editor, Content Analyst and a fan of exceptional customer service. John develops and publishes instructional and informational content regarding partition management, Windows hot-fixes, data management and computer troubleshooting.

As a tenured data recovery specialist, John shares exceptional insights and blog posts about data loss and data recovery across any storage device. With 8+ years’ experience in writing for Data Recovery for both Mac OS and Windows OS computers, he is an avid learner who always wants to polish and simplify the data recovery process. John passes his free time playing Chess and reading Science Fiction novels.

How to repair corrupted windows system files with the sfc and dism commands

How to repair corrupted windows system files with the sfc and dism commands

The system file debugger built into Windows can scan Windows system files for corruption or any other changes. If a file is modified, it will immediately replace the file with the correct version. Here is how to use it.

When should you process these commands?

There are two operating systems that can help if Windows is experiencing a blue screen or other crashes, applications are failing, or some Windows features are not working properly.

Related Everything you need to know about the blue death screen

The Windows File System Debugger (SFC) tool scans your Windows system files for corruption or any other changes. If a file is modified, it will immediately replace the file with the correct version. If the SFC command does not work, you can try the DISM Image Service and Management (DISM) command to repair the Windows system image on Windows 8, 10 or 11. In Windows 7 and earlier, Microsoft will provide a “system update readiness tool” that can be downloaded instead. Let’s see how to use them.

Related How to scan and repair corrupted system files in Windows

Run the SFC command to repair system files

When troubleshooting the Windows system, run the SFC command. SFC works by scanning and replacing damaged, lost or modified system files. Although the SFC command does not fix any files, running it ensures that at least no system files are corrupted and then you can continue troubleshooting the system with other methods. You can use the SFC command until the computer itself starts. If Windows starts normally, you can run a command prompt from the administrator. If Windows does not start normally, you can try booting from your installation media or recovery disk in a safe or recovery environment.

Related How to use safe mode to repair your Windows PC (and when you need it)

But to the Command Prompt – Normally, Safe Mode, or Recovery Area – you use the command in the same way. Remember that if you start Windows regularly, you will need to open Command Prompt or PowerShell with administrative privileges. To do this, right-click the Start button and select “Command Prompt (Admin)”.

Note: On Windows 11, you may need to select “Windows Terminal (Admin)” instead of “Command Prompt (Admin)” or “PowerShell (Admin” “.

How to repair corrupted windows system files with the sfc and dism commands

Type the following command on Command Prompt and press Enter to perform a complete system scan and repair SFC tests

How to repair corrupted windows system files with the sfc and dism commands

Leave the Command Prompt window open until the command is completed, which may take some time. If all goes well, you will see the message: “Windows Resource Protection has not been compromised.”

Related How to use safe mode to repair your Windows PC (and when you need it)

If you see a message saying “Windows Utility has corrupted files but could not fix some of them” restart your PC safely and try to run the command again. And if that doesn’t work, you can launch it on your installation media or recovery disk and then try the command.

How to repair corrupted windows system files with the sfc and dism commands

Run the DISM command to fix SFC problems

Normally you do not have to run the DISM command. However, if the SFC command does not work properly or the corrupted file is not properly replaced, the DISM command – or the system update readiness tool in Windows 7 will sometimes fix the existing Windows system and make SFC work properly.

Open Command Prompt, PowerShell or Windows Terminal with Administrative privileges to run the DISM command in Windows 8, 10 and 11. DISM Check that your Windows components are corrupted and type the following command and press Enter to automatically fix problems.

Allow the command to finish running before you close the command prompt window. This can take anywhere from five to ten minutes. It is common for the process bar to stay at 20% for a while, so don’t worry about it.

How to repair corrupted windows system files with the sfc and dism commands

If the result of the DISM command indicates that everything has changed, you need to restart your PC and run the SFC command successfully.

DISM command is not available in Windows 7 and earlier. Instead, you can download the System Update Tool from Microsoft and try to scan your system for problems and fix them.

Note: If you are still using Windows 7, you will need to have the correct version of the preparation tool. The latest version of the “System Update Readiness Tool” for Windows 7 for x64-based systems (KB947821) [October 2014]. ” Download that.

Next try System Restore or System Restart

If you are still experiencing system problems and SFC and DISM commands are not understood, you may want to try more drastic measures.

Running the System Restore tool will restore the Windows operating system files, settings and applications. This can fix system crashes if the operating system is not damaged at the initial point of recovery.

Related How to use System Recovery in Windows 10, 11, 7 and 8

If all else fails, you can always reset your system or reinstall Windows. In Windows 8, 10 and 11 you can perform the “Reset this PC” function to restore Windows to its default state. Although you may have to re-install programs – or remove them and re-install them completely – you still have the option of backing up your personal files. Whichever you choose, make sure you back up your PC first! In Windows 7 and earlier this requires using the recovery partition provided by the manufacturer on your computer or installing Windows blank.

How to repair corrupted windows system files with the sfc and dism commands

If you have any other errors while processing any of these commands, try searching the web for specific errors. The commands often suggest that you file additional files if they fall – see more details on special issues. Finally, when you can reset or reinstall Windows, it may not be necessary to troubleshoot serious Windows crashes. The decision will be yours.

By Sarah | Follow | Last Updated September 30, 2021

Summary :

How to repair corrupted windows system files with the sfc and dism commands

The DISM is command-line tool built in Windows to help users scan the system for corruptions and repair the image or system files correspondingly. What can the DISM tool do for you? How to use the DISM command to repair your image or system files? All these content will be covered later on this page; please read them carefully.

The SFC and DISM are two useful tools built in Windows systems for helping users scan system files and image for corruption or any other changes. Then, they will repair the problems it has found automatically: replacing the corrupted file with the correct one, repairing the underlying Windows system image, etc.

However, the SFC commands may fail sometimes, so you should turn to the DISM commands instead since they are more effective. On this page, let’s begin with the introduction to DISM and the basic DISM restore health commands.

DISM Restore Health & DISM Check Health

What Is DISM

The full name of DISM is Deployment Image Servicing and Management. DISM is a command-line tool designed for users to service, prepare, modify, and repair system images that are used for Windows Setup, Windows PE, and Windows RE (Windows Recovery Environment).

DISM.exe, also known as a DISM Image Servicing Utility file, will always target your chosen area when it’s running on your PC. It’s necessary to introduce the common DISM command switches before talking about how to use the Windows DISM tool.

How to fix DISM “the source files could not be found” in Windows 10?

How to repair corrupted windows system files with the sfc and dism commands

You may receive the DISM source files could not be found error messages when the DISM process fails to run on your PC.

DISM.exe /Online /Cleanup-Image /Restorehealth

DISM.exe cannot foresee a path unless you specify a switch in the command. What are the common DISM.exe switches and what are the functions of them?

How to repair corrupted windows system files with the sfc and dism commands

DISM Restore Health Switches: DISM /Online /Cleanup-Image /Restorehealth

Image switch and Online switch

If you add a /Image switch to a DISM.exe command, the path will be restricted to the root directory of an offline Windows image or virtual hard disk; it’s available for DISM offline repair Windows 10. However, if you specify a /Online switch (DISM.exe /Online), the command will target files for your operating system online instead of an offline image.

How to repair corrupted windows system files with the sfc and dism commands

How to use DISM offline repair Windows 10 to repair Windows 10 image? This post shows you the step-by-step guide.

Cleanup-Image switch

By giving a Cleanup-Image switch (DISM.exe /Online /Cleanup-Image), you can ask the DISM tool to do two things:

  • Target the running operating system.
  • Clean and recover operations and undertakings on the system.

Restorehealth switch

The Restorehealth switch in a DISM command tells the tool to scan the running operating system for corrupt files and attempt to repair them automatically.

DISM.exe /Online /Cleanup-Image /ScanHealth

DISM Check Health Switches: DISM /Online /Cleanup-Image /ScanHealth

The Online switch and Cleanup-Image switch in the DISM /Online /Cleanup-Image /ScanHealth command does the same work as mentioned in the DISM /Online /Cleanup-Image /Restorehealth command. Well, what will the ScanHealth switch do? Actually, it tells the Windows DISM tool to execute a progressive scan for finding problems in the operating system.

How to repair corrupted windows system files with the sfc and dism commands

How to Run DISM to Restore Health or Check Health

The following steps for DISM restore health or check health are executed on a Windows 10 computer.

Step 1: Run Command Prompt as Administrator

  1. Click on the Start button in the lower left corner. Also, you can press the Start key on the keyboard.
  2. Scroll down in the Start menu to find the Windows System folder.
  3. Expand the folder and right click on Command Prompt.
  4. Select More ->Run as administrator.

How to repair corrupted windows system files with the sfc and dism commands

Step 2: Type Correct Command and Execute It

  • To let DISM tool check the system for corruption and fix any problems it finds automatically, you should type DISM /Online /Cleanup-Image /RestoreHealth and press Enter.
  • If you only want to perform a quick check, please type DISM /Online /Cleanup-Image /CheckHealth and press Enter.
  • To perform a more advanced scan to check if your OS image has any problems, you should type DISM /Online /Cleanup-Image /ScanHealth and press Enter.
  • Facebook
  • Twitter
  • Linkedin
  • Reddit

ABOUT THE AUTHOR

How to repair corrupted windows system files with the sfc and dism commands

Position: Columnist

Sarah has been working as an editor at MiniTool since she graduated from university. Sarah aims at helping users with their computer problems such as disk errors and data loss. She feels a sense of accomplishment to see that users get their issues fixed relying on her articles. Besides, she likes to make friends and listen to music after work.

Be up and running again asap

The Windows System File Checker (SFC) is a nifty tool for repairing corrupted files. Here’s a quick guide on how you can restore your files and get your PC running normally again.

Run SFC

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

Open an Elevated Command Prompt

Run Search and type Command Prompt. Find Command Prompt from the results, right-click it, then select Run as Administrator.

How to repair corrupted windows system files with the sfc and dism commands

Run DISM (Windows 8 and higher)

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

Note: Windows 7 users can skip ahead to the next step.

In the Command Prompt, type the following command then press enter:

How to repair corrupted windows system files with the sfc and dism commands

DISM will use Windows Update to find files that will replace or repair the corrupted versions. This process could take several minutes.

Run SCANNOW

Now we can scan the system for corrupted files. On the Command Prompt, type the command:

How to repair corrupted windows system files with the sfc and dism commands

With this command, Windows will go through your files and replace the corrupted files. Scanning will take some time. It’s important that you do not close the Command Prompt until the scan is 100% complete.

Review the Results

Once the scan is finished, you will receive one of the following messages:

  • Windows Resource Protection did not find any integrity violations – Windows was unable to find corrupt files in your hard disk
  • Windows Resource Protection could not perform the requested operation – This means you have to run System File Checker using Safe Mode
  • Windows Resource Protection found corrupt files and successfully repaired them – Windows found the broken files and fixed them
  • Windows Resource Protection found corrupt files but was unable to fix some of them — Windows found corrupt files but was unable to do anything about it

View SFC details

You can open the sfcdetails.txt file to view or copy the information gathered from the scan. Use the instructions below to locate the aforementioned text file.

Open an elevated Command Prompt and type the following command:

This will create a copy of the file on your desktop. Open the file and scan through the results. Do note that the file will show all the data, including ones that were gathered from previous SFC runs.

How to repair corrupted windows system files with the sfc and dism commands

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

Replace Corrupt Files Manually

If SFC fails to replace the broken Windows file, you can try doing so manually. This is possible as long as you know where the corrupt file is located. You will also need a good copy of that file so it can be replaced.

Open an elevated Command Prompt and type the following command:

Remember to replace with the path of the corrupt file. This command will allow you to take ownership of the infected file. CMD will inform you if the takeover is a success.

Once finished, give administrators access to the corrupt file. Do so by typing the following command:

Again, remember to replace with the corrupt file path.

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

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

Christopher Jan Benitez is a freelance writer for hire who provides actionable and useful web content to small businesses and startups. In his spare time, he religiously watches professional wrestling and finds solace in listening to ’80s speed metal. Read Christopher’s Full Bio

Windows corruption is simply associated with non-accessibility of Windows files that play crucial role in existence of Windows platform itself. Can one imagine of any structure without any skeletal framework? It is almost impossible to erect any binary platform without functional files. However, it is evident that the functional files would not automatically attain the status of inaccessible files nor they would ever actively participate in making the platform corrupt. Some major corruptions lead to complete shutdown of Windows OS and user finds such issue as non-resolvable.

Now, the question is, “Is there any method to correct the Windows corruption issue“? Technically, it is possible to correct the non-predictive behavior of Windows OS by System File Checker (SFC) tool. SFC is the inbuilt command file that simply scans the entire file system and replaces the incorrect file version with the correct one. However, there are times when SFC command system fails, then the other available option is Deployment Image Servicing and Management (DISM). However, the DISM exists in Windows 7 and above, while in Windows versions prior than 7, System Update Readiness Tool exists that do the same work.

How SFC and DISM works?

SFC Mode : To initiate the Windows file scan process using SFC, initially user has to look for Windows version being used. For Windows 10 or 8.1, user has to simply click the Start button followed by opening of command prompt. For other Windows versions, user has to search for command prompt in Start button.

However, it is necessary that user must be the administrator for running any such command. Once it is done, user has to patiently wait to get the process complete. As the process gets complete, it is definite that the tool must have found some files that may be corrupt and must be replaced by correct versions of Windows file. It could be in the form of message like, “Windows Resource Protection found corrupt files but was unable to fix some of them.” To fix them it is recommended to try system rebooting in the Safe Mode.

DISM Mode : DISM mode is suited to work when SFC mode does not replace the corrupt system files with the correct ones. It is a command-line tool that is used to prepare a Windows Pre-installation Environment image. It is used to service the Windows Image or Virtual Hard Disk.

To run DISM, open Command Prompt as an administrator followed by command and press Enter. It will automatically check for corrupt files and fix them if found any.

Once the DISM is complete, user is advised to run the SFC command-line again followed by restart of the system. This will automatically update the corrupt files with the new ones.

What after SFC and DISM commands?

As soon as user is free from running SFC and DISM commands, it becomes matter of concern for the novice that what must be done now? Just try System Reset or System Restore.

System Restore will restore all Windows file into their native state. This ensures that the corrupt files are replaced by native files which are fresh as factory default.

However, System Reset simply makes the raw settings as it comes in Factory Default. It bypasses running of SFC and DISM command lines and gets executed within few keystrokes.

Patching damages with Third-Party Tool

How will it be if you can access the entire house with single key? This is what has been observed in the users who are using third-party tool to deal with any type of Windows crash. Be it due to external factor or due to corruption in inbuilt Windows files. The third-party tool is made up of powerful and sophisticated algorithm that manages to recover the Windows damage irrespective of the level of damage and corruption.

One such reliable and sophisticated third-party tool is Kernel for Windows Data Recovery, which has been designed to meet almost all range of Windows corruption. With the implementation of multiple recovery modes, Kernel for Windows Data Recovery perfectly restores the corrupt files, deleted files and folders from Hard Disk.

To eliminate any chance of incompatibility with the Windows file, the tool supports all versions of Windows OS. As far as running of tool is concerned, the tool is made up of user-friendly GUI that makes operating of the tool simple.

Implementing the right tool to counteract the Windows file corruption and recovering the damaged Windows files is necessary and must be the single objective of the user. However, the choice of implementation is entirely up to the user. If the user is competent enough to make the necessary Updation using inbuilt tool, then it is appreciable. However, for novice and non-technical person, it is advised to take assistance from third-party tool like Kernel for Windows Data Recovery.

Are you facing issues with corrupted files in Windows 10? We discuss how to eliminate them using the SFC and DISM commands along with the System Restore option.

How to repair corrupted windows system files with the sfc and dism commands

David Darlington

Apr 20, 2022 • Filed to: Windows Computer Solutions • Proven solutions

The System File Checker is responsible and built into Windows to scan your Windows System Files for the issue of corruption. Meanwhile, it can also look into other errors, and in case a file has been modified, it can automatically replace the file with the correct version to assist the user.

However, if the SFC command doesn’t work, one can opt for the services of the DISM command on Windows 10 or Windows 8 which can help in repairing the underlying Windows system image. However, for the variants that include Windows 7 or earlier, Microsoft offers a downloadable “ЛњSystem Update Readiness Tool’ instead.

How to Run the SFC Command to Repair System Files

The process has to be carried out from the Administrator Command Prompt window. If you are using Windows 10, you can simply right-click on the Start button, select “ЛњCommand Prompt (Admin)’, and if you are using a different version of Windows, you can access it by searching the Start Menu for Command Prompt, right-click over it, and select the option of “ЛњRun as Administrator’.

You then have to type the following command into the Command Prompt window, and press Enter. This would help you to run a complete system scan:В В sfc/scannow

You can then leave the command prompt window open until the command completes its execution. This can take a while depending on the condition of the system. If no error is detected by the command, you’ll see a message which would say, “Windows Resource Protection did not find any integrity violations”Вќ.

However, if you see an alternate message which might read, “Windows Resource Protection found corrupt files but was unable to fix some of them”Вќ, you have to carry out the reboot in safe mode before doing anything else. For the ones who are using Windows 10, accessing the Safe Mode might be tricky as the booting takes place in a very short amount of time, but it can be done by holding the Shift key while clicking the restart option which will allow them to access the advanced boot options menu. For the earlier variants of Windows, one has to hold up the F8 key while the booting takes place. You then have to run the above command in the safe mode.

How to Run the DISM Command to Fix SFC Problems

For the ones using Windows 10, the deployment image and servicing management tool can help you fix the component store corruption that doesn’t allow the SFC command from proper execution. Executing this command is not that difficult, and can be done through following the given steps.

  1. To run this command, you have to open the Command Prompt as the administrator. The following command has to be typed following by pressing the “ЛњEnter’ key. DISM will check if the Windows component store for corruption and instantly fix any problem that is detected.
    DISM/Online/Cleanup-Image/RestoreHealth
  2. You then have to allow the command to finish running before shutting down the Command Prompt Window. This can take a while, close to 10 minutes even in rare instances. Don’t be alarmed if your progress bar doesn’t breach the 20% limit for a long while as it is very normal.
  3. In case the DISM command has changed anything, you would have to restart your computer after that. This will allow you to run the SFC command again and thus replace the corrupted files with their right versions.
  4. Please note that on the Windows 7 variants and earlier versions, the facility of DISM is not available. Users would have to download and run the “ЛњSystem Update Readiness Tool’ from the official website of Microsoft and scan their system for corrupted files in an attempt to fix them.

If you are worried about corrupted file harming other critical files on your computer, you can simply perform the system restore.

When Should the Commands be run to deal with Corrupted Files?

The next important question that arises is when we should use these commands. The foremost area to run this command is while troubleshooting a faulty Windows system. If you are getting the blue-screen error, facing issues with your applications crashing, or are not able to access the features offered by Window, the SFC command could prove to be useful. However, if the SFC command is not able to repair any files, running could help ensure that there are no corrupted system files and the troubleshooting of the system can be continued with other methods.

In usual cases, the execution of the DISM command is not necessary. However, if one is unable to get the results through the SFC command, or cannot replace the corrupted file with the correct one, it is only a DISM command that can help. Alongside, System Update Readiness Tool can fix the underlying issue with your Windows system and also ensure that the System File Checker runs properly.

How to Restore System Restore in Windows 10

There can be instances when you have accidentally disabled the system restore option. In the following steps, we shall discuss how to enable the system restore option in Windows 10 and help deal with corrupted files.

  • Right-click on Start and open the WinX menu. This is done to check if the System Restore is enabled or not. You have to click on “ЛњSystem’ to access the Control Panel’s System applet.
  • System Protection would appear in the left pane. System Properties would open upon clicking it. Protection Settings would appear under the Protection tab.
  • The next step in solving the issue of “Лњsystem restore’ not working involves ensuring that the Protection is set to “ЛњOn’ for the System Drive.
  • If it is not set to on, select the System Drive or C Drive and click on the Configure button. This would lead to the following window to open.
  • You then need to “ЛњTurn on the system protection’ and select “ЛњApply’.
  • This should enable the System Restore option on Windows 10.

Starting with SFC, DISM, and eventually System Restore, one can find a solution to repair corrupted files that might be present in their device. The corrupted files should be treated as early as possible, else they can cause more harm to your hard disk. However, if your data has been lost due to corrupted files, you can use the Recoverit Data Recovery software toВ recover corrupted files.

The System File Checker tool built into Windows can scan your WIndows system files for corruption or any other changes. If a file has been modified, it will automatically replace that file with the correct version.

If the SFC command doesn’t work, you can use the DISM command on WIndows 10 or Windows 8 to repair the underlying Windows system image. On Windows 7 and earlier, Microsoft offers a downloadable “System Update Readiness Tool” instead.

When You Should Run These 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 properly, the SFC command may be able to fix this. Even if the SFC command doesn’t repair any files, running it will confirm that no system files are corrupted and you can continue to troubleshoot your system with other methods.

You shouldn’t normally have to run the DISM command. However, if the SFC command fails to run properly or can’t replace a corrupted file with the correct one, the DISM command or System Update Readiness Tool can fix the underlying Windows system and make SFC run correctly.

Run the SFC Command to Repair System Files

You’ll need to do this from and Administrator Command Prompt window. To open one on Windows 10 or 8.1, right-click the Start button and select “Command Prompt (Admin)”. On all versions of Windows, you can also search the Start menu for Command Prompt, right-click it, and select Run as Administrator.

Type the following command into the Command Prompt window and press Enter to run a full system scan:

Leave the Command Prompt window open until the command completes — this may take some time. If everything is fine, you’ll see the message “Windows Resource Protection did not find any integrity violations.”

If you see a “Windows Resource Protection found corrupt files but was unable to fix some of them” message, try rebooting into Safe Mode first. On WIndows 10, 8.1, or 8, hold the Shift key while clicking the Restart option to access the advanced boot options menu. On Windows 7 or earlier, reboot your computer, and then press and hold the F8 key while it’s booting up. Run the sfc /scannow command from within Safe Mode.

Run the DISM Command to Fix SFC Problems

On WIndows 10, 8.1, and 8, the Deployment Image & Servicing Management tool can fix component store corruption that prevents the SFC command from working properly.

To run this command, open a Command Prompt as administrator. Type the following command and press Enter. DISM will check your Windows component store for corruption and automatically fix any problems it finds.

DISM /Online /Cleanup-Image /RestoreHealth

Allow the command to finish running before closing the Command Prompt window. This may take five to ten minutes. It’s normal for the progress bar to stay at 20 percent for a while, so don’t worry about that.

If the DISM command changed anything, restart your computer afterwards. You can now run the SFC command again and it would be able to replace any corrupted files with the correct ones.

On Windows 7 and earlier, the DISM command isn’t available. Instead, you can download and run the “System Update Readiness Tool” from Microsoft and use it to scan your system for problems and attempt to fix them.

Try System Restore or a System Reset

If you’re still experiencing system problems and these tools can’t help, you can try more drastic actions. 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.

There’s always just performing a system reset or reinstalling Windows, too. On Windows 10, 8.1, and 8, 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. On Windows 7 and earlier, this will require using your computer’s manufacturer-provided recovery partition or reinstalling Windows from scratch.

If you encounter other errors while running the above commands, try searching the web for the errors you encounter. The commands will often point you to log files with more information if they fail, too — check the log files for more details about specific problems. Ultimately, it may not be worth troubleshooting serious Windows corruption problems when you can just reset Windows to its default state or reinstall it.

The above commands also have other options, too. For example, you can have the SFC command check only a single Windows file for corruption and repair it. You can have the DISM command perform a quick check for system corruption without repairing it, or provide a WIM or ESD file containing Windows operating system files.

How do you fix a corrupted Windows system file? This article will show you how to repair corrupted Windows system files in different ways.

Data Recovery Tips

• Filed to: Data Recovery • Proven solutions

There are many reasons that may corrupt system files among them being a virus attack, system crash, or even a mistaken PC operation. Such instances can be extremely frustrating as a corrupt file cannot be used or operated. Whenever you face such an issue, you can start by attempting to repair Windows system files or run a program to detect the virus and fix it. However, if all attempts fail more than 2 times, there is a third-party software that exclusively helps in the data recovery of such files.

  • Part 1. What Does Corrupt System Mean?
  • Part 2. How to Run the SFC Command to Fix Corrupted Windows System Files?
  • Part 3. How to Run the DISM Command to Fix SFC Not Working Issues?
  • Part 4. When Should the Commands Be Run to Fix the Corrupted Files?

Part 1. What Does Corrupt System Mean?

A corrupted file system means that the file format has been modified from the original form and it may be inaccessible and cannot be operated. A corrupt file system may result from a system crash, virus attack, or an error in PC operation. So, if you want your Windows to run well, you need to fix or repair these corrupted system files.

In this post, you can learn 3 different ways to fix corrupted Windows system files step by step. You can go through them and follow them to fix your corrupted or crashed system files easily.

Part 2. How to Run the SFC Command to Fix Corrupted Windows System Files?

The System File Checker (SFC) is specially designed and put in windows to enable scanning of the corrupted Windows system files. However, it is not limited to that and it can also check out for other errors. For example, where it comes across a file that has been modified, it automatically replaces that file with a correct file format (version) as a way of assisting the PC user.

This process is usually carried out from the Prompt Window of the Administrator Command. For example:

– When you’re using Windows 10 version, you simply need to right-click at the “Start” key and choose the “Command Prompt (Admin).

– However, in case you’re using a Windows version that’s different, you can simply access it by searching through the start menu for command prompt, select it by right-clicking on it and then, choose the option to “Run as Administrator’.

How to repair corrupted windows system files with the sfc and dism commands

When the SFC command is running, then you can follow the below steps to fix corrupted Windows system files.

– Type the following command in the provided command prompt section of the Windows and hit the “enter button”. Doing this will assist you in performing a complete system scan: SFC/scannow.

– At this point, you can leave the window of the command prompt open until the command has fully completed its execution. The process may take a while on the basis of the condition of your computer system.

– When the process is completed, and there are no errors, a message will prompt and show you a message like this “Windows Resource Protection did not find any integrity violations”.

How to repair corrupted windows system files with the sfc and dism commands

– On the contrary, you can get a message “Windows Resource Protection found corrupt files but was unable to fix some of them”. Then, you need to reboot your PC and enter into the Safe Mode before doing anything else.

Note: For PC users that are using Windows 10 version, retrieving the safe mode may prove to be quite difficult since the booting process takes just a few minutes, however, it can be achieved by pressing and holding the restart button so as to hop them to gain access to the advanced boot options menu. Note that for early Windows versions, you may have to press and hold the F8 key as the booting process takes place. After this, you need to run the command discussed above in safe mode.

Part 3. How to Run the DISM Command to Fix SFC Not Working Issues?

Note that the System File Checker may not work in some specific cases and this is mainly depending on the file system. In such instances, the DISM command can be a lifesaver especially for Windows 8 or Windows 10 as it helps through repair of the underlying Windows system that has been destroyed. However, for exceptional cases(variants) such as the Windows 7 or earlier versions, Microsoft usually provides the option of a downloadable “System Update Readiness Tool” as an alternative.

How to repair corrupted windows system files with the sfc and dism commands

In order to execute this command, you need to open the command prompt as an administrator. Next, key in the following command and then hit the “enter” button. DISM will automatically check out the corrupted windows component store and immediately and instantly fix any problems that have been detected.

DISM clean up/Health Restoration process

– You now need to allow the command to complete running prior to closing the command prompt window. This may take a while, up to 10 minutes (including in rare cases) However, do not be frightened should your progress bar fail to break the threshold (20% limit for long) as this is normal.

– If the DISM command has made any modifications, you may need to restart your PC after that. This enabled you to execute the SFC command time and again hence replacing the corrupted files using the correct versions.

– Kindly note that when it comes to Windows 7 variants as well as other earlier versions, the DISM command is unavailable. The users, in this case, may have to install and run the “System Update Readiness Tool’ right from the Microsoft official website and scan through their systems for corrupted files in order to fix(repair) them.

If you’re worried that a corrupted file may end up causing harm to other critical files on your PC, you simply need to carry out the system restore.

Part 4. When Should the Commands Be Run to Fix the Corrupted Files?

The next common and vital question that often arises is “when should command be used?”. The most critical area to execute this command is when troubleshooting a Windows system that is faulty. In case you’re getting the error of a blue screen, having issues due to applications crashing, you’re unable to access or use the features Windows provides, the SFC command can be a lifesaver.

In most cases, executing the DISM command may not be necessary. However, if you’re unable to achieve desirable results using the SFC command or maybe you’re unable to replace the file that’s corrupted with a correct one, only a DISM command would help. Similarly, the System Update Readiness Tool can help in repairing the underlying issue using your windows system as well as ensuring the System File Checker is running properly.

Conclusion

When you have performed the SFC or DISM command on the computer, your corrupted system files might have been fixed. However, if you found some important data have been lost due to file corruption, you can directly use RecoveritВ to recover lost, or corrupted data after a system crash.

How to Repair Corrupted Windows System Files with the SFC and DISM Commands

195 views September 17, 2019 0

The System File Checker (SFC) tool built into Windows can scan your Windows system files for corruption or any other changes. If a file has been changed or modified, it will automatically replace that file with the right version. This is the procedure to do it.

When You Should Run These Commands

If Windows is having blue-screen or other crashes, applications failure, or some Windows features not working properly, there are two system tools that helpful.

If the SFC command does not solve the issue, the Deployment Image Servicing and Management (DISM) command is used on Windows 10 or Windows 8 to repair the underlying Windows system image. On Windows 7 and earlier, Microsoft offers a downloadable “System Update Readiness Tool” instead. This is how to use them.

Run the SFC Command to Repair System Files

SFC scans for and replaces the corrupted,missing, or changed system files. SFC command does not repair any files but it will confirm that no system files are corrupted and then we can continue to troubleshoot your system with other methods.

Just remember that if you start Windows normally, you will need to open the Command Prompt with administrative privileges. To do this, right-click the Start button and select “Command Prompt (Admin)”.

How to repair corrupted windows system files with the sfc and dism commands

At the Command Prompt, type the following command and press Enter to run a full system scan and have SFC attempt repairs:

How to repair corrupted windows system files with the sfc and dism commands

Leave the Command Prompt window open until the command completes, which may take some time. If everything is fine, you’ll see the message “Windows Resource Protection did not find any integrity violations.”

If you see a “Windows Resource Protection found corrupt files but was unable to fix some of them” message, try restarting your PC in Safe Mode and running the command again. And if that fails, you can also try booting with your installation media or recovery disc and trying the command from there.

How to repair corrupted windows system files with the sfc and dism commands

Run the DISM Command to Fix SFC Problems

You shouldn’t normally have to run the DISM command. However, if the SFC command fails to run properly or can’t replace a corrupted file with the correct one, the DISM command—or System Update Readiness Tool in Windows 7—can sometimes fix the underlying Windows system and make SFC run correctly.

To run the DISM command in Windows 8 and 10, open a Command Prompt with administrative privileges. Type the following command and then press Enter to have DISM check your Windows component store for corruption and automatically fix any problems it finds.

Allow the command to finish running before closing the Command Prompt window. This may take five to ten minutes. It’s normal for the progress bar to stay at 20 percent for a while, so don’t worry about that.

How to repair corrupted windows system files with the sfc and dism commands

If the results of the DISM command state that anything was changed, restart your PC and you should then be able to run the SFC command successfully.

On Windows 7 and earlier, the DISM command isn’t available. Instead, you can download and run the System Update Readiness Tool from Microsoft and use it to scan your system for problems and attempt to fix them.

How to repair corrupted windows system files with the sfc and dism commands

Windows System Files can get corrupt due to many reasons such as incomplete Windows Update, improper shutdown, virus or malware attacks, etc, Also, a system crash or a bad sector on your hard disk can lead to corrupt files, which can prove to be deadly in the long run. So, in this article, we will discuss how to repair system files Windows 10 and run DISM & SFC scannow repair tools. Read and follow the upcoming steps carefully to repair any corrupted file on your system.

How to repair corrupted windows system files with the sfc and dism commands

How to Repair System Files on Windows 10 PC

If you have any corrupt system files or configuration files on your PC, you will face all sorts of error codes and issues. These files lead to the malfunction of the Operating System , and you will not be able to perform tasks on your system. Read below to learn to run SFC ( System File Checker) and DISM (Deployment Image Servicing and Management ) utilities on your system to repair system files on Windows 10.

Note: It is advisable to run the DISM tool before executing SFC commands. The internal files from the server will be downloaded by running DISM commands and the SFC commands will replace the corrupt files with new ones.

Method I: Run DISM Tool

Here is how to repair system files on Windows 10.

Note: You must have a working internet connection to execute DISM commands properly.

1. Hit the Windows key, type Command Prompt and click on Run as administrator as depicted below.

How to repair corrupted windows system files with the sfc and dism commands

2. Click Yes in User Account Control Prompt to continue.

How to repair corrupted windows system files with the sfc and dism commands

3. Type the given commands and hit the Enter key after each command.

How to repair corrupted windows system files with the sfc and dism commands

How to repair corrupted windows system files with the sfc and dism commands

4. Wait for the process to run successfully and close the window. Then, run SFC scannow repair tool as detailed below.

Method II: Run SFC scannow Command

Follow these steps to repair system files in Windows 10.

1. Launch Command Prompt with administrative privileges as earlier.

2. Type sfc /scannow and press Enter key to run the System File Checker scan as depicted below.

How to repair corrupted windows system files with the sfc and dism commands

Note: A system scan will be initiated and it will take a couple of minutes to finish. Meanwhile, you can continue performing other activities but be mindful of not accidentally closing the window.

3. After completing the scan, it will show either of these messages:

  • Windows Resource Protection did not find any integrity violations.
  • Windows Resource Protection could not perform the requested operation.
  • Windows Resource Protection found corrupt files and successfully repaired them.
  • Windows Resource Protection found corrupt files but was unable to fix some of them.

4. Once the scan is finished and you receive messages 1 or 3, restart your PC.

Recommended:

This was the method explaining how to repair system files in Windows 10 with SFC scannow repair & DISM tools. This method can also be used to fix corrupted files on Windows 7. Feel free to reach out to us with your queries and suggestions via the comments section below.

Elon Decker

Elon is a tech writer at TechCult. He’s been writing how-to guides for about 6 years now and has covered many topics. He loves to cover topics related to Windows, Android, and the latest tricks and tips.

Recently I’ve come across some issues with one of my Windows Server installations, which was behaving relatively odd. Big surprise, right? After doing some digging around, I’ve come up with a complete set of commands that checks the system health and repairs any corruption that may have occurred with system files.

Feel free to run these in the order mentioned below if your system is having stability issues or other strange and frustrating problems.

SFC /scannow

How to repair corrupted windows system files with the sfc and dism commands

This classic command also known as System File Checker tool checks for corruption in Windows system files and restores corrupted files. This is the first tool that we always run to check for issues in system integrity and try to auto-resolve them.

DISM /Online /Cleanup-Image /ScanHealth

How to repair corrupted windows system files with the sfc and dism commands

This tool is used in case SFC does not find any corruption or was not very helpful at fixing the issue. With DISM, we can service an offline windows image (WIM) or VHD file, or an online Windows Image.

The “/ScanHealth” switch scans the online image for corruption and detects if there are any issues.

DISM /Online /Cleanup-Image /CheckHealth

How to repair corrupted windows system files with the sfc and dism commands

After running the first command we need to run the same command with the “/CheckHealth” to see if any corruption has been detected. After the command finishes running it will report if the image is healthy, repairable or unrepairable.

DISM /Online /Cleanup-Image /RestoreHealth

How to repair corrupted windows system files with the sfc and dism commands

In case we found corruption on the image, we will run the same command with the “/RestoreHealth” switch that will auto-correct any corruption. This may take about twenty minutes to complete.

DISM /online /Cleanup-Image /SPSuperseded

How to repair corrupted windows system files with the sfc and dism commands

This optional switch, “/SPSuperseded”, will remove any superseded updates and service packs from the Winsxs folder, to free up space on systems with low disk space on the OS drives.

Hopefully, you system performance and stability will be improved after running the above-mentioned commands. Enjoy!

Sabrin Freedman-Alexander has been a Systems Administrator for over 12 years. He’s currently the Principal Systems Administrator at one of the biggest Healthcare Campuses in Israel. He is a expert in Highly Available solutions and has numerous technical certifications. Read Sabrin’s Full Bio

The System File Checker tool built into Windows can scan your Windows system files for corruption or any other changes. If a file has been modified, it will automatically replace that file with the correct version.

If the SFC command doesn’t work, you can use the DISM command on Windows 10 or Windows 8 to repair the underlying Windows system image. On Windows 7 and earlier, Microsoft offers a downloadable “System Update Readiness Tool” instead.

When You Should Run These 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 properly, the SFC command may be able to fix this. Even if the SFC command doesn’t repair any files, running it will confirm that no system files are corrupted and you can continue to troubleshoot your system with other methods.

You shouldn’t normally have to run the DISM command. However, if the SFC command fails to run properly or can’t replace a corrupted file with the correct one, the DISM command or System Update Readiness Tool can fix the underlying Windows system and make SFC run correctly.

Run the SFC Command to Repair System Files

You’ll need to do this from and Administrator Command Prompt window. To open one on Windows 10 or 8.1, right-click the Start button and select “Command Prompt (Admin)”. On all versions of Windows, you can also search the Start menu for Command Prompt, right-click it, and select Run as Administrator.

Type the following command into the Command Prompt window and press Enter to run a full system scan:

Leave the Command Prompt window open until the command completes — this may take some time. If everything is fine, you’ll see the message “Windows Resource Protection did not find any integrity violations.”

If you see a “Windows Resource Protection found corrupt files but was unable to fix some of them” message, try rebooting into Safe Mode first. On Windows 10, 8.1, or 8, hold the Shift key while clicking the Restart option to access the advanced boot options menu . On Windows 7 or earlier, reboot your computer, and then press and hold the F8 key while it’s booting up. Run the sfc /scannow command from within Safe Mode.

Run the DISM Command to Fix SFC Problems

On Windows 10, 8.1, and 8, the Deployment Image & Servicing Management tool can fix component store corruption that prevents the SFC command from working properly.

To run this command, open a Command Prompt as administrator. Type the following command and press Enter. DISM will check your Windows component store for corruption and automatically fix any problems it finds.

DISM /Online /Cleanup-Image /RestoreHealth

Allow the command to finish running before closing the Command Prompt window. This may take five to ten minutes. It’s normal for the progress bar to stay at 20 percent for a while, so don’t worry about that.

If the DISM command changed anything, restart your computer afterwards. You can now run the SFC command again and it would be able to replace any corrupted files with the correct ones.

On Windows 7 and earlier, the DISM command isn’t available. Instead, you can download and run the ” System Update Readiness Tool ” from Microsoft and use it to scan your system for problems and attempt to fix them.

Try System Restore or a System Reset

If you’re still experiencing system problems and these tools can’t help, you can try more drastic actions. 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.

There’s always just performing a system reset or reinstalling Windows, too. On Windows 10, 8.1, and 8, 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. On Windows 7 and earlier, this will require using your computer’s manufacturer-provided recovery partition or reinstalling Windows from scratch .

If you encounter other errors while running the above commands, try searching the web for the errors you encounter. The commands will often point you to log files with more information if they fail, too — check the log files for more details about specific problems. Ultimately, it may not be worth troubleshooting serious Windows corruption problems when you can just reset Windows to its default state or reinstall it.

The above commands also have other options, too. For example, you can have the SFC command check only a single Windows file for corruption and repair it. You can have the DISM command perform a quick check for system corruption without repairing it, or provide a WIM or ESD file containing Windows operating system files.

BSODs have a variety of root causes, but these tips will help you deal with many blue screens:

Use System Restore : If your system recently started blue-screening , use System Restore to roll its system software back to a previous state. If this works, you’ll know that it’s likely a software problem.

Scan for Malware : Malware that digs deep into Windows and gets its hooks into the Windows kernel at a low level can cause system instability. Scan your computer for malware to ensure buggy malicious software isn’t causing it to crash.

Install Updated Drivers : An incorrectly installed or buggy driver can lead to crashes. Download the latest drivers for your computer’s hardware from your computer manufacturer’s website and install them — this may fix BSODs caused by driver problems.

Boot Into Safe Mode : If your computer is blue-screening every time you turn it on, try booting into safe mode . In safe mode, Windows loads only the essential drivers. If a driver you’ve installed is causing Windows to blue screen, it shouldn’t do so in safe mode. You can work on fixing the problem from safe mode.

Check for Hardware Problems : Blue screens can be caused by faulty hardware in your computer. Try testing your computer’s memory for errors and checking its temperature to ensure that it isn’t overheating .

Reinstall Windows : Reinstalling Windows is the nuclear option. It will blow away your existing system software, replacing it with a fresh Windows system. If you followed M-Tech Laptops standard recommendation to create a system image once your computer is setup, you can avoid the time and hassle of reinstalling Windows . If your computer continues to blue screen after this, you likely have a hardware problem. Contact technical support at 626-243-3284 and have your serial number handy.(begins with PS2)

Repair a Windows image using DISM. You can repair offline Windows image in a WIM or VHD file, or an online Windows image. An online Windows image will also attempt to repair itself if it becomes unserviceable. The repair source for this operation is the same source that is used for Features on Demand and is determined by Group Policy settings. For more information, see Configure a Windows Repair Source. When you use the DISM tool to repair an online or offline image, you can use the /Source argument with the /RestoreHealth argument to specify additional repair source locations to use to search for the required files.

For a quick check of an online image, you may be able to use the command: sfc /scannow to scan and repair files.

For a more extensive check that can repair issues with the store, use DISM /Cleanup-Image .

To check if an image is repairable

Scan the image to check for corruption. This operation will take several minutes. For example, at a command prompt, type the following command:

Check the image to see whether any corruption has been detected. For example, at a command prompt, type:

When you use the /CheckHealth sfc argument, the DISM tool will report whether the image is healthy, repairable, or non-repairable. If the image is non-repairable, you should discard the image and start again. If the image is repairable, you can use the /RestoreHealth argument to repair the image.

To repair an image

Use the /RestoreHealth argument to repair the image. For example, to repair an offline image using a mounted image as a repair source, at a command prompt, type the following command:

Or to repair an online image using some of your own sources instead of Windows Update, type:

If you do not specify a /Source for the repair files, the default location for Features on Demand is used. For more information, see Configure a Windows Repair Source. If you specify more than one /Source, the files are copied from the first location where they are found and the rest of the locations are ignored. You can use /LimitAccess to prevent the DISM tool from using Windows Update as a repair source or as a backup repair source for online images.

Repairing images during servicing

In some cases, an image can be corrupted while modifying it with DISM. Use /Cleanup-MountPoints to repair it. This command will not unmount images that are already mounted, nor will it delete images that can be recovered using the /Remount-Image command.

How to repair corrupted windows system files with the sfc and dism commands

You can repair corrupted system files using the DISM (Deployment Image & Servicing Management) and SFC (System File Checker) commands. First of all SFC is an in-built tool that can be used on Windows programs in order to scan system files for any changes, some of which may be due to file corruption. For example, if a file has been modified, it automatically replaces the existing one which is mostly likely to be the correct one.

Failing SFM, you can opt for the DISM which works on Windows 8-10. However on Windows 7 and earlier versions you will not be able to find DISM. Instead you can use the “System Update Readiness Tool” (SURT). This is a downloadable program that is relatively easy to use once you diligently follow the prompts.

Scenarios for using DISM and SFC

In the first instance, they are very useful for troubleshooting a bug within the system. The quickest way to identify the problem will be when you are confronted with a blue screen. You will also notice that your applications are crashing or that the features on Windows that you would normally rely on for functionality are not delivering. SFC is usually very effective at fixing simple but hidden problems. In any case, once you have run SFC you can at the very least be sure that there are no corrupted files so that you can continue with the rest of your troubleshooting exercise.

Normally there is no need to run DISM unless the problem is really serious and beyond the capabilities of SFC. For example you may have a corrupted file that you seem unable to replace. This is where DISM can fix the underlying problems and give you the leeway to run SFC again.

Procedure for running SFC

Make sure you are logged in as an administrator. Go to the command prompt window. This is done by right clicking on the Start Button (in Windows 8.1 and 10). Select the option for an Admin Command Prompt. Remember that all other versions of Windows allow you to get to the command prompt by right clicking on the start menu and selecting the option to run as an administrator.

Type this string into the search box: “sfc /scannow”. Press enter and allow the command to run. Do not close the command prompt window until the process has finished. The appearance of this message confirms that there is no issue: “Windows Resource Protection did not find any integrity violations.”

Procedure for running DISM

Note DISM is available on Windows 8, 8.1 and 10. Follow the same procedure as described above to get to the administrator command prompts. However in this case you should type in the string “DISM /Online /Cleanup-Image /RestoreHealth”. Do not close even if it sticks at 20% because that is normal. Restart the computer and then go back to SFC if DISM has made any changes. If you have an earlier version of Windows then you should use SURT, following all the prompts which are pretty straightforward.

How to repair corrupted windows system files with the sfc and dism commands

Enough with the breathless dreams of digital utopias and poisonous polemics about technological dystopias! In System Error, we finally have a book about the digital revolution that is serious rather than sensationalistic. Read this if you want to understand how to shape our technological future and reinvigorate democracy along the way.

  • Also there are summary about fixed erros and system loading boost.
  • EaseUS Data Recovery Wizard is the best we have seen.
  • You can download its lightweight installation package absolutely free.

Once the PS4 entered Safe mode, you’ll see a menu with plenty of options on the screen. This page is a non-exhaustive list of common errors that GMS can throw in the console and in the log files of GMS. Though based on meticulous research, the information we share does not constitute legal or professional advice or forecast, and should not be treated as such. Reproduction in whole or in part is strictly prohibited. If you do this, you’ll never be notified about any program crash that happens in the system.

Here Are Some Of The Best Free Registry Cleaner Software For Windows

Dramatically improve your computing experience by repairing all registry problems and preventing application seizures and crashes. Safely scan your entire Windows registry for invalid or obsolete information. Choosing the best Free Windows Registry cleaner is a daunting job, considering the number of such software available. After a reasonable period of usage, computers are usually slower and less stable. A good cleaning tool for the Registry such as Vit Registry Fix can help you avoid this situation. SlimCleaner mostly says goodbye to the simplicity of the Auslogics Registry Cleaner as SlimCleaner aims for a busier dashboard-style UI. That’s not to say the navigation is complicated, as everything is easily visible.

Free Fix Registry Errors Downloads

Keep in mind that if you recently changed your Windows password, a system restore may revert that change and an additional step may be needed. This process can be done manually if you know which driver and operating system that you will need. Now that you know that you are experiencing BSOD with Windows 7, your next steps is to diagnose and troubleshoot. I am a tech enthusiast with ten years of experience in tech troubleshooting. I play with Windows, Mac, & Android to see what could go wrong and try to fix them. I also write tech tips related to the internet, social media, and security. If the online activation method fails, then click on “See other ways to activate” and follow on-screen instructions.

There are several ways you can restore a Windows Registry backup, depending on the status of the machine. First of all, before attempting to alter, fix, or delete registry fields, you should always back up the Windows Registry to a secure location. You should only fix and repair the Windows Registry when necessary. If you have ever encountered a particularly irksome piece of malware or virus, you will know the extreme lengths some of these infections go to disguising their activity on your machine.

However, if the problem is still there, then move on to the next step. You can open Settings, head to notifications & actions, and you’ll be greeted with several toggle buttons which you can customise on an app-by-app basis. You can also just head straight to the settings screen by searching ‘notification and actions’ in the search bar how you can help.

Get text message notifications whenever Mindbody creates or resolves an incident. I acknowledge receipt of, understand my responsibilities, and will comply with the ‘Rules of Behavior’ for the Department of Education Systems I access. I understand that failure to abide by the above rules and responsibilities may lead to disciplinary action up to and including permanent loss of access to Federal Student Aid Systems. I further understand that violation of these rules and responsibilities may be prosecutable under local, State, and/or Federal law. You must remain current on all required training, including security training .

It is not uncommon for users to experience errors and warnings after working with Windows Server OS or even Windows Home editions, such as Windows 10. Sometimes, these errors involve issues with a simple system file for Windows OS. in this article you will get a complete brief guide DISM command, DISM /Online /Cleanup-Image /RestoreHealth, and how it is useful to repair windows.

The Windows operating system offers a system file checker tool for scanning the system files and finding any changes or corruptions. This tool scans the Windows files and replaces them with the current version if it finds any modified files. You can control this tool with the help of DISM commands, which are designed for optimizing and customizing Windows, however, it can also be used to repair Windows.

What is DISM?

Deployment Image Servicing and Management or DISM for short is a command-line tool that can be used to service and prepare Windows images, and no, we do not mean .jpg and .png images, we mean OS images. An OS image is simply a file that contains the operating system, your executable programs, and any data files that might be related to your programs.

When to use DISM?

If your computer is running with startup problems, unexpected errors, or performance issues, the traditional method to fix them is to run the System File Checker or SFC, by typing sfc /scannow into the command prompt. This will detect and replace any corrupted files on the local OS image.

However, there are situations when the problem resides much deeper within the system image, so deep in fact, that the SFC simply cannot repair it. This is the time to use the DISM command to attempt to get rid of the issue.

How to repair Windows with a DISM command? [Step by step guide]

In order to run any DISM commands, you need to have administrative privileges on your Windows account.

Step 1: Run the PowerShell terminal with all administrator permissions. Simultaneously to do, press Windows+R keys on your keyboard to open the Run utility and type Powershell into it. Then, press CTRL+Shift+Enter keys on your keyboard at the same time to open PowerShell with administrator permissions.

You will be greeted with the following screen:

Step 2: In PowerShell, you must first troubleshoot your system by running the following command:

DISM /Online /Cleanup-Image /CheckHealth

With the DISM /Online /Cleanup-Image /CheckHealth command, the DISM will search for errors in local log files.

Step 3: The next command you should run for troubleshooting, and it is:

DISM /Online /Cleanup-Image /Scanhealth

This command only scans Windows system files, excluding log files, for any errors. Once you run the command, the system will take 10 to 15 minutes to check every file and detect issues.

Please note that after the completion of the aforementioned troubleshooting procedures, we will begin to repair Windows in online mode. DISM will start downloading the required files using the Windows Update service. If the Windows Update service is disabled or there is no internet connection, this operation will not be successful.

Step 4: Run the following DISM command in order to begin the repair process:

DISM /Online /Cleanup-Image /Restorehealth

Once you execute this command, Windows will start to recover and replace the corrupted files with the correct ones.

Offline Repair in Windows 10 with DISM command

it has the ability to find files from different sources such as DVDs, flash drives, or even the Windows ISO files, and repair Windows from it. Now, we will show you how to change the source of the files for the DISM command.

Step 1: Commence the troubleshooting procedures as outlined in steps 1 and 2 of the previous section.

Step 2: To change the source of the DISM command, we use it with source parameters. So, if you want to use the DISM command with RestoreHealth and define a special source, the command structure will be as follows:

DISM /Online /Cleanup-Image /Restorehealth /Source:G:\Sources\install.esd

To specify the source, you must enter the address of the Install.esd file, Install.win, or Install.wsm, which is the original Windows installation file. Also note that in each media, there will generally be one of three files.

Do not forget that if you want to restore damaged files in Windows through the local source, your Windows version must be completely equal to the media version.

Using the above command, you will define a unique source for the DISM command, but the DISM will use other sources if required. Suppose you want DISM to use only your defined source. To do so, use the /Limitaccess parameter at the end of your source command:

DISM /Online /Cleanup-Image /Restorehealth /Source:G:\Sources\install.esd /Limitaccess

This way, no other sources will be used to run the command.

Conclusion

we hope in the article “How you can repair Windows using DISM commands” you know that how to eliminate all of the bugs related to your system from Windows. We have included all of the required information and commands to use in Windows so that you can eliminate errors without having any troubles. If you have any questions or suggestions, please leave them in the comment section below.

Using SFC and DISM to Repair Windows

This tip is for Windows 10 (all versions).

We’ve covered how to use SFC (System File Checker) to check your Windows PC for missing or corrupted Windows System Files several times before. But today, we’re going to take it one step further. We’re going to show you how to use SFC and DISM (Deployment Image Servicing and Management) one after the other, to repair or replace corrupted, damaged or missing Windows System Files that may be causing problems with your computer or with Windows update.

We’ll start by running SFC (System File Checker) to check Windows System Files.

**And before you do this… you should know that if you’re using Windows 7 games or if you’re running Windows 7 Games, Windows Mail or Outlook Express on Windows 10, SFC will break them. Since those programs were not made for Windows 10, SFC will identify and remove them as corrupted/damaged Windows System Files. So, if you’re using Windows Mail, Outlook Express, or Windows 7 Games on your Windows 10 PC, they will not work after you run System File Checker – you’ll need to go through whatever installation process you did in the first place to get them working again**

Now, with that out of the way, let’s run SFC (System File Checker) to scan and check the integrity of your Windows’ System Files. If it finds any missing, damaged or corrupted system files, SFC will attempt to replace them with the correct files.

How to Run System File Checker (SFC)

Open a administrator Command Prompt. Press Windows Key + X then click on “Command Prompt (Admin)” – or type CMD in Taskbar search, right-click on CMD when it appears at the top and choose “Run as administrator”.

How to repair corrupted windows system files with the sfc and dism commands

NOTE: Don’t see Command Prompt? If you see PowerShell instead of Command Prompt in that menu, just type CMD into the Taskbar search and right-click on Command Prompt when it appears at the top and choose “Run as administrator”.

At the prompt type SFC /SCANNOW and press Enter. Note the space after SFC.

It will take some time to scan your system. In most cases it will take between 5 and 15 minutes.

If SFC does not find any errors and says it found no integrity violations or if you get the result that tells you: “Windows Resource Protection found corrupt files but was unable to fix some (or all) of them”. You’re not done. You have more to do. We are going to run DISM as an important second step in the process of replace missing, corrupted or damaged Windows System Files.

Before you proceed to the next step, you’re going to need to restart your computer. So send yourself a link to this article so you can find it and finish the repair. Quick way to email this page to yourself? Click the green Print Friendly button at the top of this article and use the Email option.

After you’ve restarted your computer… continue on:

Next step: Repair Windows System Files Using DISM Tool

Always run System File Checker (SFC) before running DISM. Many times SFC will find and fix problems, and many times it will not find any problems, but that does not mean there aren’t any. And it’s also common for SFC to find problems but it cannot fix them or can’t fix them all.

If you think your computer has problem and SFC tells you that it found no integrity violations, you should run DISM to double-check. If you get the message that “Windows Resource Protection found corrupt files but was unable to fix some (or all) of them”, you should can use the DISM tool to repair any damaged files that might be preventing SFC from working correctly.

How To Run DISM.

1. Type CMD in Taskbar search

2. Right-click on Command Prompt when it appears at the top & choose “Run as administrator”

3. At the Command Prompt type this (exactly):

DISM /Online /Cleanup-Image /RestoreHealth

and press the Enter Key

How to repair corrupted windows system files with the sfc and dism commands

Make sure you type the command exactly as shown with the spaces as shown.

4. DISM will check your PC’s system files for corruption or damage and automatically fix any problems that it finds.

DISM generally takes 10 to 20 minutes to complete. But you may notice that at some points DISM may appear to be frozen and not running, and other times it will appear to be stuck at 20%. This is common. Be patient and let DISM run and finish its work. If you interrupt it, it won’t repair anything, and you’ll have to start all over.

How to repair corrupted windows system files with the sfc and dism commands

After DISM has finished running, restart your computer. In some cases you may have to run SFC and DISM twice.

By Sarah | Follow | Last Updated July 21, 2021

Summary :

How to repair corrupted windows system files with the sfc and dism commands

As users know, DISM is a very useful command tool in all versions of Windows to help fix system errors, such as missing or corrupted files. Considering that some people may not know much about this tool, MiniTool Solution decided to introduce DISM firstly; then, it will show you how to use DISM in Windows 11 and how to fix DISM issues.

What Is DISM

Users have seen DISM now and then, but they don’t know what it is exactly. So, what is DISM? DISM is the acronym of Deployment Image Servicing and Management, which is a command-line tool on all Windows computers. The DISM.exe is running in Windows to service and prepare both Windows online and offiline images, including the ones used for Windows PE, Windows Recovery Environment (Windows RE) and Windows Setup. Apart from that, DISM is also used sometimes to service a virtual hard disk.

Windows users are able to mount and service a Windows image easily from a .wim file, .ffu file, .vhd file, or a .vhdx file by using the DISM tool. In addition, they’re able to update a running operating system in easy steps with the help of this tool. Users can use DISM with the older Windows image files (.wim files), but they can’t use it with the Windows images that are more recent than the currently installed version of DISM. Windows 11 DISM is a useful and indispensable tool in the new Windows operating system.

Where Is DISM in Windows 11

The DISM tool is built into Windows 11 in the “C:\Windows\System32 folder”. However, it does not mean you can only run the DISM tool by accessing this path on Windows 11 PC. On the contrary, you are allowed to run DISM from any location on your device via the Command Prompt or Windows PowerShell.

How to repair corrupted windows system files with the sfc and dism commands

It’s terrible to find your DISM failed on a Windows computer; but cheer up, you can do something to fix the issue yourself.

How to Run Windows 11 DISM

As mentioned earlier, you don’t need to open C:\Windows\System32 to find the DISM.exe manually. Instead, you can run Command Prompt or Windows PowerShell to execute DISM commands.

How to Run as an Administrator

You should first run the Command Prompt or Windows PowerShell as an administrator to acquire enough privileges.

  1. Press Windows + S to enable Windows search in Windows 11.
  2. Type cmd or powershell into the textbox at the bottom.
  3. Right click on Command Prompt or Windows PowerShell from the search result.
  4. Choose the Run as administrator option from the context menu.

How to repair corrupted windows system files with the sfc and dism commands

How to Execute DISM Commands

You should then type certain DISM commands into the window and press Enter to execute them. After that, just wait for the process to finish.

DISM /Online /Cleanup-Image /RestoreHealth

You can execute DISM /Online /Cleanup-Image /RestoreHealth or DISM.exe /Online /Cleanup-Image /Restorehealth on your Windows 11 computer to scan the running operating system for corrupt or missing system files and then attempt to fix them.

How to repair corrupted windows system files with the sfc and dism commands

DISM /Online /Cleanup-Image /ScanHealth

You should execute DISM /Online /Cleanup-Image /ScanHealth to scan the image to check for corruption. This command is used to help users scan and find problems existing in their operating systems.

DISM /Online /Cleanup-Image /CheckHealth

You should execute the DISM /Online /Cleanup-Image /CheckHealth command to check the image to see whether any corruption has been detected. The result will tell you whether the image is healthy, repairable, or non-repairable.

How to Fix DISM.exe Problems

If you run into any DISM.exe errors on Windows 11, please follow the steps below to try to fix them yourself.

  1. Restore your computer to a previous state (latest restore point, snapshot, or backup image) where the error doesn’t occur.
  2. If you have installed new software (or even hardware) recently, please uninstall them completely and check whether the error still occurs.
  3. If the error persists no matter what you do, you may just wait for the patch or new update from Microsoft.
  • Facebook
  • Twitter
  • Linkedin
  • Reddit

ABOUT THE AUTHOR

How to repair corrupted windows system files with the sfc and dism commands

Position: Columnist

Sarah has been working as an editor at MiniTool since she graduated from university. Sarah aims at helping users with their computer problems such as disk errors and data loss. She feels a sense of accomplishment to see that users get their issues fixed relying on her articles. Besides, she likes to make friends and listen to music after work.

I’m having issues with one of my servers, i’ve already done chkdsk with no errors, sfc found issues a but cannot fix them.. I also tried with DISM command but it’s impossible (Online or Source), i need some help! 🙂

The issue started suddenly, the server stops responding everything but ping, so there’s not other walkaround but a hard reset..

I’ve attached my cbs and sfc reports.

Thanks in advance!

Attachments

Sysnative Windows Update

Inactive
  • Aug 23, 2019
  • #2
  • This is a known bug:

    Run DISM restorehealth followed by two SFC Scans.

    talishka

    Well-known member
    • Aug 23, 2019
  • #3
  • Hi softwaremaniac! Long time!

    I’ll work on it, and i’ll give you feedback asap.

    talishka

    Well-known member
    • Aug 26, 2019
  • #4
  • No luck, i’ve updated my server, i have no updates left for install but the error keeps popin up.

    The repairs doesn’t work at all. Have you fixed this issue yet?

    My repairs fails:

    Sysnative Windows Update

    Inactive
    • Aug 26, 2019
  • #5
  • You are using wrong DISM parameters:

    Step#1 – DISM /RestoreHealth Scan
    Warning: this fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good. If you are after assistance, please start a thread of your own.

    1. Right-click on the Start button and select Command Prompt (Admin)
    2. When command prompt opens, Copy (Ctrl+C) and Paste (Right-click > Paste) the following command into it, then press Enter
      Dism /Online /Cleanup-Image /RestoreHealth
    3. Once it finishes, copy and paste the following into the command-prompt window and press Enter. If prompted to overwrite the existing file go ahead.
      copy %windir%\logs\cbs\cbs.log “%userprofile%\Desktop\cbs.txt”
    4. Once this has completed please go to your Desktop and you will find CBS.txt => Please zip/upload to this thread.
      Please Note :: if the file is too big (over 7MB) to upload to your next post, please upload via a service such as Dropbox or One Drive or SendSpace and just provide the link.

    talishka

    Well-known member
    • Aug 26, 2019
  • #6
  • I was executing those commands because of this error:

    Sysnative Windows Update

    Inactive
    • Aug 26, 2019
  • #7
  • talishka

    Well-known member
    • Aug 26, 2019
  • #8
  • Attachments

    Sysnative Windows Update

    Inactive
    • Aug 26, 2019
  • #9
  • SFCFix Script

    Warning: this fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good. If you are after assistance, please start a thread of your own.

    I am new to these forums. I hope you’re all doing well 🙂

    As the title states, I have a problem with a corrupted Windows 10. There are actually numerous problems that are all interrelated. The problem is that commands like DISM do not work, and almost always return error 2. The reason I had attempted DISM, is because the Windows Update seemed to have been corrupted and is unable to install the latest updates relating to the cumulative update of 2022-03, and the .NET Framework 3.5 and 4.8. The installation starts, reaches 20%, then goes back to 0%, then again back to 20%, then back to 0%. rinse and repeat. So, I figured that maybe my .NET Framework has a problem so I downloaded the offline installer, and the installer just wouldn’t start (Windows Installer works fine on other setups, however). This one just doesn’t show me a thing. No prompts, no indicators. nothing. So, I tried to repair the installation with DISM. well, well, well, DISM too is corrupt. I can’t even perform a simple cleanup components command, nevermind scan/restore health. So, I went to the SFC scan. This one at least executed properly, but stated that I have some corrupted system files. So, with all of the aforementioned failing, I tried to repair install Windows 10 itself whilst keeping my files. I’ve done this before, and it almost always worked (underline “almost”). This time, I got a disgusting error after 2 hours, which is 0x80070003 – 0x2000D. So, I tried looking up online some fixes, and they all turned out to be just glorified HTML pages that regurgitate the “solutions” that Microsoft provides (the ones that we all know that never work. I mean, seriously, one has “defragment your HDD” in it as a solution. WTF?!). Well, what I tried is to reinstall my already existing .NET Framework installations, but even with the /repair command in cmd, it always pushed me to the page where it states that the current or higher version of .NET Framework is already installed, and the one for version 3.5 doesn’t even open at all for some reason.

    OK, so back to try and repair install Windows 10, but this time using a new admin user, and clean boot. So, clean desktop with new user, clean boot, all ready. The error was still exactly the same. I noticed that at around 86% on that bluescreen when I’m repairing Windows 10 (it’s not the BSOD, but just the background color blue that shows the progress of the repair, before it goes into the restart sessions), it suddenly goes to boot, and I get that screen where it says that it’s working on updates/changes, etc. (where you see a blurry screen, as if the GPU isn’t loaded at first or something). So, when it reaches 12%, it hangs there a bit and then it just crashes. Before I know it, I’m staring at the Windows logo boot screen with an info text telling me that it is undoing all the changes it did to my computer, and once it boots again, I see the error 0x80070003 – 0x2000D. DISM is failing with error 2 no matter what. It turns out, some @$$hole of a developer decided that it would be a good idea to keep some system files in none other than the TEMP folder in the appdata\local\ directory. It’s after this that the DISM no longer worked whatsoever (I could be wrong, but it’s after my “careful” bloating clean up sessions that this began to happen, a few days ago, though I didn’t even touch anything that is found in the Windows Folder itself.). So, although my computer is technically working, if something goes bad, I cannot repair it. This is why I am posting the DISM and CBS log files, to try and resolve this manually, by replacing the files that are missing, and repairing those that are corrupt. SFC Scan works, but it is unable to repair the issues present (as usual). So, what I am trying to do is repair the DISM so that I can conduct a proper repair from the installation disk (that I currently have as .ISO). Can this be done? In my opinion it should be possible, but I do need help. Oh, and by the way, I also downloaded and installed the latest Windows ADK, to maybe try and run the cmd command from there (Alt + F, M, S) and restore everything (including the DISM itself on my system), but no such luck. It returned the same error, unfortunately.

    In any case, I saw this thread from two years ago, and it was quite similar to the problem I had, so all hope is not exactly lost.

    This thread here:

    So, I’m thinking of solutions here, and honestly, I just thought of posting the picture of the error of the Windows 10 repair install, and the error logs from SFC and DISM respectively. I just want to figure out if I can manually repair and replace the corrupted files based on these logs. If possible, please upload them so that I may replace them afterwards (if possible), or if I can use that Farbar Recovery Scan tool to repair/replace/fix the missing/corrupt files, I would also go for it. It’s honestly the first time I get such a level of corruption, where even the DISM itself is corrupt, and not even the repair install helps.

    Here are my computer specs:

    Case: ThermalTake Chaser A71 Full Tower (five-fan cooled)
    Motherboard: ASUS Z97-A LGA 1150
    Power Supply: ThermalTake Smart SE 850 W
    CPU: Intel Core i7-4790k
    GPU: ASUS Strix GTX 970 (4GB)
    RAM: Kingston HyperX DDR3 (4 x 8GB)
    Storage 1: Kingston HyperX Savage 240GB
    Storage 2: Seagate Barracuda 1TB 7200 RPM
    OS: Windows 10 Professional (64-bit)
    Windows Version: 21H2 (OS Build 19044.1469)

    How to repair corrupted windows system files with the sfc and dism commands

    Microsoft has officially launched Windows 10 and users are receiving upgrades automatically to download Windows 10. Sometimes, while upgrading theWindows users may experience corruption in system files. To overcome the situation, there are various inbuilt commands in Windows 10. It helps to overcome the problem over time as the user changes the WindowsSystem File. In the following section, we will discuss the way to repair corrupt system files in Windows 10. Also, the best method to recover deleted, formatted and corrupted data from windows hard drive.

    Techniques to Repair Corrupt System Files

    There are two ways by which users can fix corrupted Windows system files,i.e. System File Checker tool (SFC) and Deployment Image Servicing and Management tool (DISM). Both of them are inbuilt utilities inWindows 10.

    SystemFile Checker Tool

    SFC(System File Checker) tool built into Windows helps to scan Windows system files for corruption. If it finds something wrong then, it will replace the filers automatically via correct edition.

    When to Utilize This Command?

    Users should run this command when there is some trouble with Windows System.Many times, while working application crashes, blue-screen appears some Windows features are not working. Then, simply run SFC command to fix the issue. If the command does not find any issue then, it will confirm that there is no corruption in system files. Users continue to troubleshoot the system via other methods.

    How to Run SFC Command to Fix Windows File System Error

    Users need to run this from Administrator Command Prompt Window. To open it in the system follow the following sets:

    1. Right click on start button
    2. Choose Command Prompt as AdminHow to repair corrupted windows system files with the sfc and dism commands
    3. Now the black screen will appear, type a command “Sfc/scannow,” and press EnterHow to repair corrupted windows system files with the sfc and dism commands
    4. Leave the cmd to run; it will take 5-10 minutes. If there is no corruption then, “Windows Resource Protection did not find any integrity violations” message will pop-up on the screen.
    5. However, if there is some corruption issue then, “Windows Resource Protection found corrupt files but unable to fix some of the” message will pop-ups.
    6. Then, reboot the system in safe mode by holding the shift key while just clicking the restart option to utilize advanced boot options menu.How to repair corrupted windows system files with the sfc and dism commands
    7. After restarting it, run the SFC command again.

    If there is still some issue then, the user can run DISM in Windows 10 to repair corrupt system files in Windows.

    DeploymentImage Servicing and Management

    DISM(Deployment Image Servicing and Management) is a tool that helps to fix corruption component, which prevents SFC command from properly working. To run this command user can follow the mentioned steps:

    1. Open cmd as Administrator and type the following command as mentioned:DISM/Online?Cleanup-Image/RestoreHealth
    2. Permit the command to finish; it will take 5-10 minutes
    3. Once the process is completed restart the system again as this command changes everythingHow to repair corrupted windows system files with the sfc and dism commands
    4. Now run SFC command again and hopefully it will help to replace corrupted files via correct ones.

    If the issue is still there then, reset the system again. It will help to fix the problem properly.

    Conclusion

    WindowsSystem File is the crucial file part of the system as it contains complete Windows File. If these files get corrupted then users face various difficulties. To overcome such a situations user can utilize SFC and DISM. These are the inbuilt utilities that help to repair corrupt system files in Windows 10.

    If you’ve been using Windows for a long time, you might remember how often Windows Vista images became unserviceable in the past and needed to be repaired. Although the issue is not nearly as common on Windows 10, there are still occurrences, particularly when trying to use the System File Checker(SFC) to fix a modified system file.

    Luckily, Windows 10 ships with an extremely helpful command-line utility known as Deployment Image Servicing and Management (DISM). Typically, DISM is used when a sfc/scannow command is unable to repair corrupted or modified system files. By performing a DISM repair, System file Checker commands should be working just fine.

    DISM can be used to repair Windows images, Windows Setup and Windows PE. The tool has been around since Windows Vista SP1, but now it comes installed by default on Windows 10 and Windows 8.1.

    There are two ways we can go around repairing an image with DISM on Windows 10; we can either use Windows PowerShell or use an elevated Command prompt. Since both PowerShell and Command Prompt need roughly the same commands, it doesn’t really matter which solution you choose. But for the sake of diversity, we provided guides on using both.

    Method One: Running DISM/Cleanup-Image Tool in Command Prompt

    1. Search for “cmd” inside Windows search bar. Right click on command prompt and click on Run as administrator.
      How to repair corrupted windows system files with the sfc and dism commands
    2. Insert the command below to check if the Windows image has been flagged by your OS as corrupted. If it was, you’ll also get confirmation if the corruption can be repaired.

    Dism /Online /Cleanup-Image /CheckHealth

    How to repair corrupted windows system files with the sfc and dism commands

    Note: This step is meant to save you some time in seeing weather corruption exists. It does not fix anything but you’ll get an idea whether it’s worth to go through the whole process.

    1. If the CheckHealth has showed signs of corruption, it’s recommended to do a wider scan on the image file. The command below checks for component store corruption and records any of it in a log file. If you want to take a look over the log files, you can find them in C:\Windows\Logs\CBS\CBS.log or C:\Windows\Logs\DISM\dism.log.

    Dism /Online /Cleanup-Image /ScanHealth

    How to repair corrupted windows system files with the sfc and dism commands

    Note: As opposed to /CheckHealth, /ScanHealth is not instant and will take anywhere from 5 to 20 minutes to finish. Don’t close the command line if the loading screen freezes for a while. It usually stays at 20% for 5 minutes before continuing.

    1. Insert the command below to scan the image for corruption, perform repair operations automatically and record any signs of corruption to the log file. Depending on your system specs and image size, this operation can take anywhere from 20 minutes to 4 hours or more.

    Dism /Online /Cleanup-Image /RestoreHealth

    How to repair corrupted windows system files with the sfc and dism commands

    Note: Similar to /Scanhealth, the setup will freeze at 20% for a while, so don’t close it prematurely.

    That’s it. Your Windows 10 image should be working now.

    Method Two: Running DISM/Cleanup-Image” Tool in PowerShell

    1. Search for “powershell” inside Windows search bar. Right click on Windows PowerShell and click on Run as administrator.
      How to repair corrupted windows system files with the sfc and dism commands
    2. Insert the following command inside the elevated Powershell window:

    Repair-WindowsImage -Online –CheckHealth

    How to repair corrupted windows system files with the sfc and dism commands

    Note: This command’s sole purpose is to check whether the image has been flagged as corrupted by your system. It does not fix anything, but serves as a quick way to check if corruption exists. If you want to take a look over the log files, you can find them in C:\Windows\Logs\CBS\CBS.log or C:\Windows\Logs\DISM\dism.log.

    1. Copy and paste the following command inside the elevated PowerShell window to perform an image scan for corruption:

    Repair-WindowsImage -Online –ScanHealth

    How to repair corrupted windows system files with the sfc and dism commands

    Note: This command won’t fix anything but instead it will check for corruption and record any of it inside a log file.

    1. In the elevated command prompt, copy and paste the following command and press Enter:

    Repair-WindowsImage -Online –RestoreHealth

    How to repair corrupted windows system files with the sfc and dism commands

    Note: This command will scan the image for corruption. If it encounters any bad sectors, the setup will automatically perform repair operations and record any signs of corruption inside the log file. The operation can take anywhere from 15 minutes to a few hours, depending on your system specifications.

    That’s it, your Windows image should be fixed!

    How to repair corrupted windows system files with the sfc and dism commands

    How to repair corrupted windows system files with the sfc and dism commands

    • Western Governors University
    • Tweet
    • Share
    • Email
    • Tweet
    • Share
    • Email

    The sfc /scannow command is one of the several specific switches available in the sfc command, the Command Prompt utility invoking System File Checker.

    While there are plenty of different things you can do with the command, sfc /scannow is the most common way that the sfc command is used.

    Sfc /scannow will inspect all of the important Windows files on your computer, including Windows DLL files. If System File Checker finds a problem with any of these protected files, it will replace it.

    How to Use SFC /Scannow

    Open Command Prompt as an administrator, very often referred to as an “elevated” Command Prompt.

    For the sfc /scannow command to work properly, it must be executed from an elevated Command Prompt window in Windows 11, Windows 10, Windows 8, Windows 7 and Windows Vista.

    Type the following command and then press Enter.

    How to repair corrupted windows system files with the sfc and dism commands

    To use System File Checker from the Command Prompt through Advanced Startup Options or System Recovery Options, see the Executing SFC /SCANNOW From Outside of Windows section below for some necessary changes in how you execute the command.

    System File Checker will now verify the integrity of every protected operating system file on your computer. It might take a while to finish.

    When the verification process completes, you’ll see something like this in the Command Prompt window, assuming problems were found and corrected:

    . or something like this, if no problems were found:

    In some situations, most often in Windows XP and Windows 2000, you may also need access to your original Windows installation CD or DVD at some point during this process.

    Restart your computer if sfc /scannow repaired files. System File Checker may or may not prompt you to restart but even if it doesn’t, you should restart anyway.

    Repeat whatever process caused your original problem to see if sfc /scannow resolved it.

    How to Interpret the CBS.log File

    Every time you run System File Checker, a LOG file is created that itemizes every file that was checked and every repair operation that completed.

    Assuming Windows is installed on the C: drive then the log file can be found here and opened with Notepad or some other text editor:

    How to repair corrupted windows system files with the sfc and dism commands

    This file could be useful for advanced troubleshooting or as a resource for a tech support person that might be helping you out.

    Executing SFC /SCANNOW From Outside of Windows

    When running sfc /scannow from outside of Windows, like from the Command Prompt available when you boot from your Windows installation disc or flash drive, or from your System Repair Disc or Recovery Drive, you’ll have to tell the sfc command exactly where Windows exists.

    Here’s an example:

    The /offbootdir= option specifies the drive letter, while the /offwindir= option specifies the Windows path, again including the drive letter.

    Depending on how your computer is configured, the Command Prompt, when used from outside of Windows, doesn’t always assign drive letters in the same way that you see them from inside Windows. In other words, Windows might be at C:\Windows when you’re using it, but D:\Windows from the Command Prompt in ASO or SRO.

    In most installations of Windows 11, Windows 10, Windows 8, and Windows 7, C: usually becomes D: and in Windows Vista, C: is usually still C:. To check for sure, look for the drive with the Users folder on it—that will be the drive Windows is installed on, unless you have multiple installations of Windows on multiple drives. Browse for folders in Command Prompt with the dir command.