The Deployment Image Servicing and Management Tool (DISM) is a useful and advanced tool for scanning, changing, and fixing any Windows system issues. Many operating system issues such as poor performance, boot issues, or specific crashes can be boiled down to corrupted system files, and this command tool is able to fix them.
Before running DISM Repair, it is important to run a disk check to find and fix any issues in the file system. If this is not done, subsequent DISM and SFC fixes will become useless.
Open the Command Prompt as an administrator
Tap the Start button and search for the Command Prompt. Right-click on it and select "Run as Administrator". You'll need to do this for all the DISM and SFC processes you see below.
Run chkdsk
Open the command prompt as administrator, enter the command chkdsk c:f r, and press enter, and you will see a prompt "Do you plan to check this volume on the next reboot?" ", type y, and press enter again, and when you restart your computer, it will perform the check.
Let the checks go on without interruption
Windows startup gives you the option to skip the disk check to give you quick access to Windows, but if you don't skip the disk check, then don't interrupt the disk check and let it do it on its own. This is important because any type of outage can cause irreparable damage to the entire file system.
The DISM tool is great for scanning all system files to find any corrupted data and fix it. If there's something wrong with your operating system settings, SFC comes into play.
Check the health of your system
Enter the command dism online cleanup-image checkhealth and press enter. This will command the DISM tool to do a quick scan of the system and verify any corrupted data.
How to scan deeply
That's what scanhealth does, type dism online cleanup-image scanhealth and press enter again. It will take some time but the specific file corruption will be recognized.
How to fix it
Now that you have found the corrupted data, it's time to fix it. Type dism online cleanup-image restorehealth and press enter. Just like scanhealth, it will take some time, and when you see the % progress bar stop for a while, it may look like it's frozen, but trust the system, it's ** and replacing the corrupted files you find.
If your question is more about the settings of Windows itself, or if you want to double-check if DISM fixes corrupted or missing files, then the System File Checker (SFC) comes in handy.
Run a scan
Same as above, run the command prompt as administrator, then use the input sfc scannow and press enter. This will scan everything and repair any system files with the (now repaired) local image file. If you find any errors, make sure to run them a few more times. SFC Scannow is known for not having many first fixes.
February** Dynamic Incentive Program