dism-store.bat
· 295 B · Batchfile
Raw
:: Note: the following optional steps will free up disk space, but also remove files allowing uninstallation of Windows Updates.
DISM /Online /Cleanup-Image /AnalyzeComponentStore
DISM /Online /Cleanup-Image /StartComponentCleanup
DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase
| 1 | :: Note: the following optional steps will free up disk space, but also remove files allowing uninstallation of Windows Updates. |
| 2 | |
| 3 | DISM /Online /Cleanup-Image /AnalyzeComponentStore |
| 4 | |
| 5 | DISM /Online /Cleanup-Image /StartComponentCleanup |
| 6 | |
| 7 | DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase |
| 1 | :: If the sfc command found issues, but failed to fix them, run the below. Requires an elevated command prompt. |
| 2 | |
| 3 | DISM /Online /Cleanup-Image /CheckHealth |
| 4 | |
| 5 | DISM /Online /Cleanup-Image /ScanHealth |
| 6 | |
| 7 | DISM /Online /Cleanup-Image /RestoreHealth |
sfc-and-dism.bat
· 127 B · Batchfile
Raw
:: The following command will repair/replace corrupted/missing system files. Requires an elevated command prompt.
sfc /scannow
| 1 | :: The following command will repair/replace corrupted/missing system files. Requires an elevated command prompt. |
| 2 | |
| 3 | sfc /scannow |