DISM: Unmount and Clean up a Wim Image

dism /get-MountedWiminfo

Check the Status.

dism /remount-wim /MountDir:<mountDir>

This command will recover an orphaned Wim mount directory.

dism /unmount-Wim /MountDir:<mountDir> /commit

Once you are done with Servicing the Wim Image, you can unmount the image from your machine.

dism /cleanup-wim

The /Cleanup-Wim command is only used if there is any issue with the mount points, that means when any of the mounted images are shown as in the “Invalid” state. You can run the cleanup command to delete these abandoned resources at the corrupted mount points.


  1. Use the dism /unmount-Wim /MountDir: /discard command in case of you receive this message:

    Deployment Image Servicing and Management tool
    Version: 6.1.7600.16385

    Image File : D:\sources\install.wim
    Image Index : 2

    Error: 0xc142010c

    An attempt was made to commit an image that was mounted for read only access. T
    his is not valid. To commit an image, mount it without the read only flag set.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log


  2. What’s up, just wanted to say, I loved this blog post. It was inspiring.
    Keep on posting!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s