The Deployment Image Service 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.
How to check the file system
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 seen below.
Run chkdsk
Open the command prompt as an administrator, enter the command chkdsk c:/f /r, and press enter, 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.
How to Fix Windows 11 Image Problems with DISM
DISM tool is great for scanning all system files for any corrupted/lost data and repairing them. If you have a problem with your operating system settings, SFC will come 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 perform 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.
repair
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, this 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 downloading and replacing the corrupted files you find.
How to run a full system file check in Windows 11
If your question is more about the settings of Windows itself, or if you want to double-check if DISM has fixed corrupted or missing files, then 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.