Fix DISM Log Errors in Windows 11 (Step-by-Step)
In this article
If you're seeing DISM log errors in Windows 11, the quickest fix is to run the DISM tool with the /RestoreHealth option, then check the log file at C:\Windows\Logs\DISM\dism.log for specific error codes. This guide walks you through repairing the Windows image, clearing corrupted log files, and resolving common DISM failures.
What You'll Need
- Administrator access to your Windows 11 PC (you'll need to open Command Prompt or PowerShell as admin).
- A stable internet connection (for downloading repair files from Windows Update).
- Your Windows 11 installation media (USB or ISO) only if the online repair fails — we'll cover that in troubleshooting.
Step-by-Step
- Open Command Prompt as Administrator. Press Windows + X and select “Terminal (Admin)” or “Command Prompt (Admin)” from the menu. If prompted by User Account Control, click “Yes”.
- Run the DISM scan. In the command prompt, type the following and press Enter:
DISM /Online /Cleanup-Image /ScanHealth
This checks the Windows image for corruption and writes results to the DISM log. Wait for it to finish (it can take several minutes). - Check the DISM log for errors. After the scan, open the log file to see what DISM found. Type:
notepad C:\Windows\Logs\DISM\dism.log
Look for lines containing “Error” or “Corrupt”. Note the error code (e.g., 0x800f081f) — you'll need it later. - Run the repair command. If the scan found corruption, run:
DISM /Online /Cleanup-Image /RestoreHealth
This uses Windows Update to download healthy files and replace corrupted ones. Let it complete — it can take 10–20 minutes. - Verify the repair. After the repair finishes, run the scan again:
DISM /Online /Cleanup-Image /ScanHealth
If it reports “No component store corruption detected”, your DISM log issue is resolved. - Clear the DISM log (if it's bloated). If the log file itself is huge or unreadable, you can clear it. First, stop the DISM service by typing:
net stop dism
Then delete the log file:del C:\Windows\Logs\DISM\dism.log
Finally, restart the service:net start dism - Run System File Checker (SFC) as a follow-up. DISM repairs the system image, but SFC fixes corrupted system files. Run:
sfc /scannow
This is a good practice after any DISM repair.
Common Mistakes
- Not running as administrator. DISM requires elevated privileges. If you get “Access denied” errors, close and reopen the command prompt as admin.
- Skipping the scan before repair. Running
/RestoreHealthwithout/ScanHealthfirst can waste time if there's no corruption. Always scan first. - Deleting the log while DISM is running. If you delete the log file during a scan or repair, DISM may crash or fail to write new entries. Stop the service first (as shown in step 6).
- Ignoring error codes. Each DISM error code points to a specific issue (e.g., 0x800f081f means source files not found). Look up the code before trying random fixes.
Tips
- Use the
/LimitAccessflag if you want to prevent DISM from using Windows Update. For example:DISM /Online /Cleanup-Image /RestoreHealth /LimitAccess— useful if you have a local source. - Create a system restore point before running DISM. This gives you a rollback option if something goes wrong. Type
SystemPropertiesProtectionin the Run dialog to set one up. - If you have Windows installation media, you can specify it as a repair source. Mount the ISO or insert the USB, then run:
DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\repair\install.wim(adjust the path). - Keep your Windows updated. Many DISM errors are fixed by cumulative updates. Check Settings > Windows Update before troubleshooting.
Troubleshooting
If DISM fails with error 0x800f081f (source files not found): This means DISM couldn't get repair files from Windows Update. Try one of these:
- Run
DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\Windows\WinSxSto use the local component store. - Use Windows installation media as a source (see Tips above).
- If you have a Windows 11 ISO, mount it and use the
install.wimfile as the source.
If DISM hangs or takes forever: Be patient — it can take up to 30 minutes. If it's stuck for over an hour, restart your PC and try again with a wired internet connection.
If DISM reports “The system cannot find the file specified” when reading the log: The log file may have been deleted or moved. Run a scan first to recreate it.
If the log file is full of “Error” lines but the scan says no corruption: Some errors are benign (e.g., cached files). Focus on the “Corrupt” lines, not every error.
If SFC still finds errors after DISM: Run DISM again with /RestoreHealth, then SFC. If errors persist, consider a Windows 11 repair install using the installation media (choose “Keep personal files and apps”).
Frequently Asked Questions
Why does DISM log errors even when the system is healthy?
DISM logs every operation, including successful ones. Errors in the log don't always mean corruption — they can be informational or related to files that are temporarily in use. Check the “Corrupt” lines specifically.
Can I delete the DISM log file?
Yes, but only after stopping the DISM service. The log will be recreated on the next DISM run. Deleting it can help if the file is corrupted or too large.
How long does DISM /RestoreHealth take?
Typically 10–20 minutes, but it can take longer on older hardware or if the corruption is extensive. Don't interrupt it.
Do I need to run SFC after DISM?
Yes, it's recommended. DISM repairs the system image, but SFC fixes individual system files. Running both ensures a clean system.
What does DISM error 0x800f0954 mean?
This error often occurs when DISM can't access Windows Update due to policy settings or network issues. Try using a local source or check your Windows Update service.
Can I run DISM in Safe Mode?
Yes, but it's not necessary. Running DISM in normal mode with admin rights is fine. If you're in Safe Mode, you'll need to use the /Online flag carefully — it works, but some features may be limited.