If your Windows system is acting weird or can’t stand it, the first thing you need to do is scan and remove any viruses or malware. Also, another reason could be corrupt system files. There are many reasons why system files get corrupted, such as a sudden power failure, system crash, errors while updating, version mismatch, etc.

No matter what the reason, if you think your system is slow or hvee system files are corrupted, here’s how you can scan and fix corrupt Windows files using the DISM command-line tool

How to Scan and Fix corrupted files with PowerShell

Windows PowerShell 10 - khắc phục các tệp hỏng trong Windows 10

We will use Windows PowerShell to show you how to use Deployment Image Serving and Management (DISM) to scan and repair corrupted system files in Windows 10. However, using Windows PowerShell 10 after the Anniversary Update proves more effective than using the Command Prompt path we have mentioned here.

Open PowerShell or with Cortana. Make sure to select “ Run as Administrator ” when you do so.

Mở Windows PowerShell để sửa các tệp hỏng

Now type the following command into the PowerShell window:


Kết quả của SFC quét trong Windows 10 để sửa các tập tin bị hỏng

If this first scan detects any problems, Windows will try to fix them. If Windows can’t repair them, it will warn you that more research is needed.

Không có vấn đề với quét SFC trong Windows 10

From there, you will need to run a DISM scan. You can do that with the following command:


Chạy DISM với PowerShell trong Windows 10 - khắc phục các tệp bị hỏng

This scan takes a while and can get stuck at some spots, typically around 20%. Let it run until finished.

If the DISM scan finds any corrupt system files, Windows will try to fix them and provide you with a progress report at the end.

Kết quả quét DSIM trong Windows 10

Suppose Windows is unable to find the files needed to repair the corrupted system files. In that case, you’ll also be given information on what to do next with a link to Microsoft’s website and troubleshooting options.

If you have Windows installation media on a USB drive or CD / DVD, you can rerun the scan and point the scan to use the source media to find files that cannot be scanned during the initial scan.

To do this, run the following command after replacing “X” with the drive letter of your CD / DVD drive or USB drive:


If that still doesn’t work, try this command:


The above command only restricts Windows from using what’s in the source document and not to look for an update in Windows Update during the process, which could cause more problems.

After running the DISM scan, you’ll want to run another SFC scan to make sure Windows clears up any remaining minor problems.

Rerun this command:


After rerunning the SFC scan, follow any instructions in PowerShell or Command Prompt, then restart your computer.


If you have upgraded to the Anniversary Update, we recommend using the PowerShell method vs. the Command Prompt for more satisfactory results. If the steps above didn’t fix the corrupted file’s problem, you can check one thing in the troubleshooting list and move on to the next section.

We recommend contacting Microsoft specifically about the issues you’re having with Windows 10. They will be able to provide other troubleshooting options to fix your specific problems. Try the Microsoft support center.