Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Open DISM Log File in Windows 10

· 6 min read · Home Tech

In this article
  1. What Is the DISM Log and Why It Matters
  2. Where to Find the DISM Log
  3. How to Open the DISM Log in Windows 10
  4. Understanding the Log Format
  5. Common Problems When Opening the Log
  6. Alternatives to the Default Log
  7. Frequently Asked Questions

To open the DISM log file in Windows 10, navigate to C:\Windows\Logs\DISM\dism.log using File Explorer or a text editor. This log records every DISM (Deployment Imaging Service and Management) operation, including errors, warnings, and success messages, and is essential for diagnosing Windows image repair issues.

What Is the DISM Log and Why It Matters

DISM is a command-line tool built into Windows 10 that services and repairs Windows images, including the system drive, recovery environment, and offline installation media. When you run a DISM command (for example, DISM /Online /Cleanup-Image /RestoreHealth), the tool writes a detailed log of its activity to a plain-text file. This log is the primary source of truth when a repair fails or when you need to verify that a scan completed successfully.

The log records the exact command executed, the time it started and finished, the files checked, and any error codes that occurred. Without it, troubleshooting a failed DISM operation would rely on guesswork. System administrators and advanced users rely on this file to pinpoint whether a corruption is in the component store, the registry, or the servicing stack itself.

Where to Find the DISM Log

The default location for the DISM log is fixed: C:\Windows\Logs\DISM\dism.log. This path is consistent across all supported Windows 10 versions (from 1507 through 22H2). There is no user option to change it, although you can use the /LogPath parameter in a DISM command to direct output to a custom location for a single session.

If you are running DISM from an elevated PowerShell or Command Prompt, the log is written to the same location. Note that the folder C:\Windows\Logs\DISM is hidden by default, so you may need to enable “Show hidden files and folders” in File Explorer to see it. Alternatively, you can type the full path directly into the address bar and press Enter—this works even when hidden items are not visible.

How to Open the DISM Log in Windows 10

There are several ways to open the log, depending on whether you need to read it quickly or search through it programmatically:

  • File Explorer: Press Win + E, paste C:\Windows\Logs\DISM into the address bar, and double-click dism.log. Windows will open it with Notepad by default.
  • Command Prompt: Run notepad C:\Windows\Logs\DISM\dism.log from an elevated Command Prompt. This opens the file directly in Notepad.
  • PowerShell: Use Get-Content C:\Windows\Logs\DISM\dism.log -Tail 50 to view the last 50 lines, which is useful for checking the most recent operation.
  • Event Viewer (indirect): DISM events are also logged under Applications and Services Logs\Microsoft\Windows\Deployment-Services-DISM, but the plain-text file is the primary source.

If you receive an “Access denied” error when opening the file, it is because the log is protected by Windows permissions. You must run your text editor or Command Prompt as Administrator to read it. Right-click Notepad and select “Run as administrator,” then open the file from within.

Understanding the Log Format

The DISM log is a plain-text file with a specific structure. Each line begins with a timestamp in the format YYYY-MM-DD HH:MM:SS, followed by a message type (such as Info, Warning, or Error), and then the message itself. For example:

2025-01-15 14:32:01, Info    DISM   DISM.EXE: Program started
2025-01-15 14:32:02, Error   DISM   DISM.EXE: Failed to find the package.

Error lines often include a hexadecimal error code (e.g., 0x800f081f). You can look up this code online or use the DISM /Online /Cleanup-Image /RestoreHealth command again after fixing the underlying issue. The log also records the Windows version and servicing stack version at the start of each session, which helps confirm you are running the correct tools.

Common Problems When Opening the Log

Users often encounter a few recurring issues when trying to access the DISM log:

  • File not found: If you have never run a DISM command, the log may not exist. Run any DISM command (even DISM /Online /Get-CurrentEdition) to generate it.
  • File is locked: If DISM is currently running, the log is locked by the process. Wait for the command to finish, or copy the file to another location before opening.
  • Log is too large: Over time, dism.log can grow to several megabytes. Notepad can handle it, but for faster searching, use PowerShell or a text editor with search capabilities.
  • Permission errors: As mentioned, you must be an administrator. If you are an admin but still get denied, check the file’s properties > Security tab to ensure your account has read permission.

Alternatives to the Default Log

If you need a clean log for a specific operation, you can specify a custom log path using the /LogPath parameter. For example:

DISM /Online /Cleanup-Image /RestoreHealth /LogPath:C:\Temp\mydism.log

This writes the log to a location you control, which is useful if the default log is corrupted or if you want to archive a particular session. Note that the default log still gets updated alongside the custom one—DISM always writes to the default unless you use /LogLevel to suppress it. Another alternative is to use the DISM /Online /Cleanup-Image /AnalyzeComponentStore command, which outputs a summary directly to the console, but the full details remain in the log file.

Frequently Asked Questions

Why can’t I open the DISM log even as an administrator?

If you are already running Notepad as administrator and still get an access denied error, the file may be locked by a running DISM process or the file permissions may have been altered. Close all Command Prompt and PowerShell windows, then try again. If the issue persists, copy the file to your Desktop using an elevated Command Prompt (copy C:\Windows\Logs\DISM\dism.log C:\Users\YourName\Desktop\) and open the copy.

What does the error code 0x800f081f mean in the DISM log?

This error indicates that the source files needed to repair the image could not be found. It typically occurs when the component store is corrupted and Windows cannot locate the necessary files in the local source or Windows Update. You may need to specify a valid source using the /Source parameter, such as a mounted ISO or a network share.

Can I delete the DISM log file?

Yes, you can delete it, but it is not recommended. The log is regenerated on the next DISM operation. Deleting it will not harm your system, but you will lose the history of past operations, which can be valuable for troubleshooting recurring issues. If the log is extremely large, you can clear it by running del C:\Windows\Logs\DISM\dism.log from an elevated Command Prompt, then run a new DISM command to recreate it.

Is there a way to view the DISM log in real time?

Yes, you can use PowerShell to tail the log while a DISM command is running. Open an elevated PowerShell window and run Get-Content C:\Windows\Logs\DISM\dism.log -Wait. This will display new lines as they are written, allowing you to monitor progress in real time.

Does the DISM log contain sensitive information?

Generally no. The log records file paths, package names, and error codes, but it does not include personal data such as usernames, passwords, or file contents. However, if you use a custom log path, be aware that the log may contain the full paths of files that DISM processes, which could reveal directory structure.

Why does the DISM log show a different version than my Windows build?

The log records the version of the DISM executable, not necessarily the Windows build. DISM is updated independently through Windows Update, so the version in the log may be newer or older than the OS build. This is normal and does not indicate a problem.