Check and repair damaged system files with these DISM commands.
Your Windows installation depends on a collection of important system files to run applications, install updates and perform everyday computing tasks. If these files get damaged or go missing, your system may behave erratically. You may encounter system errors, features not working as expected, freezes or other unexpected behavior. Sometimes restarting your computer or running the usual troubleshooting steps aren't enough to restore damaged system files. For such cases, Windows provides a built-in repair utility called Deployment Image Servicing and Management (DISM).
DISM is a command line tool that can scan Windows system images for corrupt system files and attempt repairs. Particularly, there are three useful DISM commands that achieve this purpose: CheckHealth, ScanHealth and RestoreHealth. You can run DISM commands in either the command prompt or the PowerShell, but both CLIs require administrator privileges to make system-level changes. It's worth noting that DISM exclusively scans and repairs system files; your personal files remain untouched.
All three DISM commands in question follow a specific syntax that begins with DISM /Online /Cleanup-Image. The parts following "DISM" in the syntax are called command-line options. The /Online CLI option specifies DISM to take action on the currently running Windows installation, while /Cleanup-Image performs recovery operations on the selected installation.


