How to Fix DISM Error 267 Unable to Access the Image

Photo of author

By Victor Ashiedu

Published

Have you received DISM error 267, “unable to access the image,” but are not sure how to fix it? This guide explains what causes DISM error 267, then explains how to fix the error.

Why Did You Receive DISM Error 267 “Unable To Access The Image?”

If you run the DISM command with the /image switch directly on a WIM, VHD, or VHDX file, you will receive error 267. This error is because DISM expects a mounted image.

In my case, I received error 267 when I ran the DISM command below.

DISM /image:"F:\sources\install.wim" /?

Here is the result of the command.

The solution to this error message is to mount the WIM, VHD, or VHDX file. Then, run the above DISM command and specify the folder you mounted the image file.

In the next section, I have detailed the steps to fix DISM error 267.

Steps to Fix DISM Error 267 Unable to Access the Image

To fix DISM error 267, “unable to access the image,” follow the steps in this section. Each step is detailed in a subsection in this section.

Step 1: Perform Required Pre-Task Actions

Before you proceed, complete the following:

  1. Copy the Windows image (WIM, VHD, or VHDX) to a folder. If you’re working with a WIM file, Microsoft stores the file in the Windows installation media \sources folder.

    Microsoft calls the WIM file install.WIM. I recommend that you copy the install.WIM from the \sources folder to another folder because if you try to mount the file from its original folder – which is read-only – you may receive an access denied error.
  2. Secondly, create a folder you will mount the Windows image. I will call my folder Windows11MountDir.

    I am performing the example in this guide using a Windows 11 install.WIM file.
You can also use the steps in this guide to mount a VHD or VHDX file. If you’re working with these files, copy the file to another location. Then, create a folder you wish to mount the Windows image.

Step 2: Get the Index of the Windows Image

Before you can mount a Windows image, you need the index number or the name of the image. To get the index of a Windows image, open Command Prompt as administrator; then, run the command below:

DISM /Get-WimInfo /WimFile:D:\WIMfiles\install.wim
Modify D:\WIMfiles to the path to your file.

The command displays the details of all Windows images in the WIM, VHD, or VHDX file. Note the index number of the edition you want to mount.

In this example, I’ll mount “Windows 11 Pro”; its index number is 6.

Step 3: Mount the Windows Image, Then Re-run the DISM /Image Command

The final step to fix DISM error 267, “unable to access the image,” is to mount the Windows image. To mount the Windows image with the index number you noted in the last subsection, run a command similar to the one below:

DISM /Mount-image /imagefile:D:\WIMfiles\install.wim /Index:6 /MountDir:"D:\Windows11MountDir"
Modify D:\WIMfiles to the path you saved your file. Then, modify D:\Windows11MountDir to the mount folder you created earlier.

When you run the command, it will take a little while to complete.

Steps To Fix DISM Error 267 Unable To Access The Image

When the command completes, open the folder you mounted the image. The folder structure will look like a normal Windows installation folder.

Finally, to fix DISM error 267, “unable to access the image,” run your DISM command with the /image switch. However, this time, specify the folder path you mounted the Windows image instead of specifying the path to the Windows image.

I mounted my Windows image (WIM file) in D:\Windows11MountDir, so I will run the command below.

DISM /image:D:\Windows11MountDir /?

As you can see from the screenshot below, this time, the DISM command completed successfully without error 267!

When you finish working with the image you mounted, it is a good idea to unmount the image. To unmount the image and save the changes you made, run the command below.

DISM /Unmount-image /MountDir:D:\Windows11MountDir /commit

However, if you wish to discard any changes you made to the image or you did not make any changes, run the command below.

DISM /Unmount-image /MountDir:D:\Windows11MountDir /discard
Remember to change the folder – D:\Windows11MountDirM – to the path you mounted your image.

Frequently Asked Questions

1. What does DISM do?

DISM is a Windows command-line tool you can use to service and prepare Windows Operating System images. You can use DISM to service both a running Operating System and a Windows image.

2. How do I fix DISM errors?

Since DISM has a lot of possible errors, the best way to fix any DISM error is to start by looking at the DISM error log – C:\WINDOWS\Logs\DISM\dism.log

When you open the dism.log file, scroll to the bottom to see the latest logs. When you read through the logs, you’ll be able to figure out what caused the DISM error.

3. What does DISM command with /ScanHealth option do?

When you run DISM with the /ScanHealth argument, DISM scans the Windows image for component store corruption. To run the DISM with the /ScanHealth switch, you must specify the /Cleanup-Image switch.

Here is the full command to scan a running Operating System for component store corruption…

DISM /Online /Cleanup-Image /ScanHealth

4. Does DISM require reboot?

Not necessarily. Some DISM commands may require a reboot, while others may not.

5. What is DISM.EXE /Online /Cleanup-image /Restorehealth?


The /Online switch tells DISM to run the /Cleanup-image /Restorehealth on the running Operating System. In addition to that, the /Cleanup-image switch with the /Restorehealth argument scans the image for component store corruption.

With the /Cleanup-image /Restorehealth switch and argument, it automatically performs a repair operation on the image after DISM scans the Windows image for component store corruption.

Conclusion

DISM error 267 – unable to access the image – is one of the many DISM error messages. As I explained in this guide, DISM throws error 267 when you run the DISM command with the /image switch on an unmounted image.

Also, as I have shown in this guide, the solution to DISM error 267 is to mount the Windows image before you run the DISM command with the /image switch.

I hope you were able to use this guide to fix DISM error 267 and successfully run your DISM command! If you did, click on “Yes” beside the “Was this page helpful” question below.

You may also express your thoughts and opinions by using the “Leave a Comment” form at the bottom of this page.

Finally, to read more Windows Command Line guides, visit our Windows Command Prompt Guides page.

About the Author

Photo of author

Victor Ashiedu

Victor is the founder of InfoPress Media, publishers of Ilifeguides and Itechguides. With 20+ years of experience in IT infrastructure, his expertise spans Windows, Linux, and DevOps. Explore his contributions on Itechguides.com for insightful how-to guides and product reviews.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment

Send this to a friend