最終更新 6 days ago

修正履歴 61f21c8205ec78fe4d720308e03d9638cb7a061e

sfc-and-dism.bat Raw
1:: The following commands will repair/replace corrupted/missing system files, as well as clear up disk space. They must all be ran in an elevated Command Prompt
2
3sfc /scannow
4
5:: If no issues are reported, or they are reported all fixed, you are done. or, optionally skip to Step 6. Otherwise, continue.
6
7DISM /Online /Cleanup-Image /CheckHealth
8
9DISM /Online /Cleanup-Image /ScanHealth
10
11DISM /Online /Cleanup-Image /RestoreHealth
12
13:: Note: the following optional steps will free up disk space, but also remove files allowing uninstallation of Windows Updates.
14
15DISM /Online /Cleanup-Image /AnalyzeComponentStore
16
17DISM /Online /Cleanup-Image /StartComponentCleanup
18
19DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase