Windows system files can sometimes become corrupted or missing, leading to stability issues and errors. This can occur due to various reasons such as faulty updates, malware, or unexpected system shutdowns. Fortunately, Windows provides built-in tools to check and repair such issues.
Windows : System Repair
- Overview
- Solution
- System File Checker (sfc)
- Deployment Imaging Service and Management Tool (DISM)
- Conclusion
To check and repair corrupted system files, you can use the sfc (System File Checker) and DISM (Deployment Imaging Service and Management Tool) tools.
The sfc /scannow command scans all protected system files and replaces corrupted files with a cached copy located in a compressed folder on the local computer.
- Open the Command Prompt as an administrator.
- Run the following command (down below)
- Wait for the scan to complete. It may take some time depending on the size and condition of the system.
- Restart the computer after the scan is completed.
CMD
sfc /scannowThe DISM /online /Cleanup-Image /restorehealth command checks the system image for corruption and repairs it by replacing corrupted files with functional ones from a Windows Update source or local installation media.
- Open the Command Prompt as an administrator.
- Run the following command: (down below)
- Wait for the process to complete. This process may also take some time.
- Restart the computer after the process is completed.
CMD
dism /online /Cleanup-Image /restorehealthBy using these two tools, many common issues with system files can be resolved, enhancing the stability and performance of the Windows operating system.
A restart is required after completing these steps.