Windows Image Repair#
-
dism: repair system image using Windows Update to restore ucorrupted files
-
scan but not repair corruptions
Batchfiledism /Online /Cleanup-Image /CheckHealth
-
more advanced scan
Batchfiledism /Online /Cleanup-Image /ScanHealth
-
scan and repair common issues
Batchfiledism /Online /Cleanup-Image /RestoreHealth
-
use mounted installation media/iso to restore system files
Batchfiledism /Online /Cleanup-Image /RestoreHealth /Source:F:\sources\Install.esd /LimitAccess
-
%windir%\Logs\DISM\dism.log
: generated detailed log - System File Checker: scan/repair all protected system files using the local image files at
%windir%\System32\dllcache
Batchfile
sfc /scannow
- if
sfc
returnscould not perform the requested operation
- ensure folders exist
%windir%\WinSxS\Temp\PendingDeletes
,%windir%\WinSxS\Temp\PendingRenames
- reboot into safe mode and rerun
sfc
- ensure folders exist
-
%windir%\Logs\CBS\CBS.log
: generated detailed log; extract sfc process details only with
Batchfilefindstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > "%userprofile%\Desktop\sfcdetails.txt"
-
Cleanup Windows Update
-
analyze component store for removable updates
Batchfiledism /Online /Cleanup-Image /AnalyzeComponentStore
-
trigger cleanup
Batchfiledism /Online /Cleanup-Image /StartComponentCleanup
-
trigger more time consuming follow-up cleanup
Batchfiledism /Online /Cleanup-Image /StartComponentCleanup /ResetBase
Last update:
2023-03-05
Created: 2023-02-10
Created: 2023-02-10