How to repair missing or corrupted system files

Sometimes, your Windows experiences problems, such as some functions aren't working properly or Windows crashes.
On Windows 11, the Deployment Image Servicing and Management (DISM) tool is designed to prepare, modify, and repair system images, including Windows Recovery Environment, Windows Setup, and Windows PE (WinPE). However, you can also use it with the local recovery image to fix system problems.
[1] Type 'cmd' in 'Search'
[2] Rightclick 'Command Prompt'
[3] Choose 'Run as administrator'
[4] At the command prompt, type the following command, and then press ENTER: DISM.exe /Online /Cleanup-image /Restorehealth

Next:
[1] Type 'cmd' in 'Search'
[2] Rightclick 'Command Prompt'
[3] Choose 'Run as administrator'
[4] At the command prompt, type the following command, and then press ENTER: sfc /scannow

The sfc /scannow command will scan all protected system files, and replace corrupted files with a copy.

After the process is finished, you may receive one of the following messages:
- Windows Resource Protection did not find any integrity violations, meaning that you do not have any missing or corrupted system files.
- Windows Resource Protection found corrupt files and successfully repaired them.
- Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log.
- Windows Resource Protection could not perform the requested operation.

Note: Never close this Command Prompt window until the verification is 100% complete. The scan results will be shown after this process is finished.

No comments:

Post a Comment