Fix Error 0xc1420127: The specified image in the specified wim is already mounted for read and write access

In this article, we shall discuss how to Fix Error 0xc1420127: The specified image in the specified wim is already mounted for read and write access. Deployment Image Servicing and Management (DISM) mounts a Windows image (.wim) file or virtual hard disk (.vhd or .vhdx) for servicing. Please see how to fix “The wim file needs to be remounted: Fix error 0xc1510114“, and how to update Microsoft Defender Antivirus into the install image of Windows (install.wim).
You can also use the DISM image management command to list the image index numbers. To verify the architecture for the image that you are mounting. Append an image, apply an image, capture an image and delete an image.
See the following guide relating to WDS “how to install Dynamic Host Configuration Protocol on Windows Server 2019″. Also, see “how to configure Post-deployment of Dynamic Host Configuration Protocol“.
Why was the error “Error 0xc1420127: Specified image in wim is already mounted” prompted?
As you can see from the error message below. This is not an error as it says the file has been mounted for read/write access already.
Note: Read-write permission gives access to the share with the R/W privileges unless specifically assigned Read-Only permission.
Please, see Update Veeam Backup for Proxmox Plugin to support PVE 9.0, how to update Proxmox VE 9.0 now Supported by Veeam, and Logon Failure: User has not been granted the requested logon type.
Resolution
To resolve the “WIM Read Write Access Error 0xc1420127,” discard changes before remounting the image. To do this, use the following image command below.
- Note: These commands can be modified to suit your deployment.
- You must run the script as an administrator. See how a similar error was fixed “Error 740: Elevated permissions are required to run DISM“.
Dism /Unmount-Image /MountDir:C:\test\offline /discard
If everything is fine and you have no reason to discard changes, unmount the image to commit the changes. In cases where you encounter issues, ensure that you address this issue before proceeding with the unmounting process.

Dism /Unmount-Image /MountDir:C:\test\offline /commit
Alternatively, you can try to run this command below in case the above fails. But in general, you do not need this for a WinPE image but just for the install.wim image. In most cases, the understanding of your environment will help you greatly and do not run the cleanup commands on Boot.wim!
DISM /cleanup-wim
I hope you found this blog post on how to Fix Error 0xc1420127: The specified image in the specified wim is already mounted for read and write access helpful. Please let me know in the comment session if you have any questions.

Awesome! This worked perfectly. Thank you!
You are welcome, Alton!