FolderRisk: Caution
DISM C:\Windows\Logs\DISM
Folder for the DISM tool logs (dism.log), which trace Windows image servicing operations online and offline.
What it’s for
DISM (Deployment Image Servicing and Management) writes its dism.log to %windir%\Logs\DISM by default. Microsoft describes it as the primary log of all DISM actions, online and offline. The /LogPath option redirects the file, and /LogLevel sets the detail level.
What it contains
dism.log: trace of DISM commands, for example/Online /Cleanup-Image /RestoreHealth, and their results.- Pointers to
CBS.log, where the detail of an online servicing failure lives. - Possibly other files, depending on the tools that rely on DISM.
Risks and best practices
- To analyze a DISM error, read
dism.logand thenCBS.log, which it points to. Keep both until the diagnosis is over. - For a scheduled or automated operation,
/LogPathkeeps its logs apart from those of other runs. - If the volume is short on space, archive then purge, as administrator.
Useful commands
# Last lines of dism.logGet-Content "$env:windir\Logs\DISM\dism.log" -Tail 50
# Repair with a dedicated log file (as administrator)DISM /Online /Cleanup-Image /RestoreHealth /LogPath:C:\Temp\dism-restore.log