DISM connects to Windows Update to download healthy copies of corrupted files. If you lack an internet connection, you can point it to your Windows installation media. After DISM completes, run sfc /scannow once more to finish the job. SFC only protects Windows system files, not your personal documents, photos, or applications. For those, you need a different approach. The Check Disk (CHKDSK) utility scans the physical surface of your hard drive or SSD for bad sectors—tiny, unreadable areas of storage that can cause file corruption. To run CHKDSK, open an elevated Command Prompt and type:
Before diving into the "how," it’s useful to understand the "why." File corruption occurs when the binary code (the 1s and 0s) that makes up a file becomes scrambled. Common causes include sudden power loss while saving a file, a failing hard drive with bad sectors, software bugs, malware, or even physical damage to storage media. Recognizing the symptoms—such as error messages like "File is corrupt and cannot be opened," strange characters in a text file, or an application that freezes at the same spot every time—is the first step toward a solution. Microsoft Windows comes equipped with powerful, free utilities designed specifically for this task. For operating system files and system images, the System File Checker (SFC) is your primary tool. To run it, open the Command Prompt as an administrator (right-click the Start button and select "Terminal (Admin)" or "Command Prompt (Admin)"). Then, type the following command and press Enter: how to check for corrupted files on pc
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth DISM connects to Windows Update to download healthy