dism.log C:\Windows\Logs\DISM\dism.log
Main log of the DISM tool: all online or offline operations (component store cleanup, features, drivers, images).
What it’s for
dism.log is the primary log of the DISM (Deployment Image Servicing and Management) maintenance tool: every action goes through it, online or offline. For an online servicing failure it often points to CBS.log, where the detail lives.
What it contains
- The commands run (
Dism /Online /Cleanup-Image, adding or removing features, drivers, packages) and how they progressed. - Errors and return codes, for example
0x800f081f(source not found), with call context. - Operations triggered indirectly:
Add-WindowsCapability,Enable-WindowsOptionalFeatureand the DISM module cmdlets also write here.
Risks and best practices
- Reading it costs nothing, and deleting it does no harm to Windows. It does erase the traces diagnosis relies on, though, so keep it until the incident is resolved.
/LogPathredirects the log of a single command and/LogLevelsets the level of detail. Keep the most detailed level for the duration of a diagnosis.- Attach
dism.logandCBS.logto any Microsoft support case.
Useful commands
# Last lines of the logGet-Content "$env:windir\Logs\DISM\dism.log" -Tail 100
# Errors onlySelect-String -Path "$env:windir\Logs\DISM\dism.log" -Pattern ', Error'
# As administrator: read-only check, with a dedicated logDism /Online /Cleanup-Image /CheckHealth /LogPath:C:\Temp\dism-diag.logFormat
Plain text, one entry per line: date and time, level (Info, Warning, Error), component (for example DISM or DISM Provider Store), then the message. Process and thread IDs (PID=, TID=) appear in many messages.
Rotation and archiving
The log keeps growing with each operation. If its size becomes a nuisance, archive it and let DISM create a new one, or send new output elsewhere with /LogPath.
How to read it
Open it in an editor that handles large files, locate the time of the operation, then search for Error lines and their codes, reading back up for context. If dism.log points to CBS.log, continue there. A source-not-found error most often means Windows Update or the source media is unreachable.