DISM cannot mount wim image (access denied) - tried everything!

10Fan

New member
Local time
11:05 AM
Messages
18
I was mounting and unmounting a WIM image no problem, I updated it to include USB3 and NVMe support, then installed that from USB onto a new system. Everything ran smooth.

Now in my new system using all the exact same files (including DISM) on the same OS, it will not mount the image (error 5: access denied).

It stalls at 99%...

2b7Zm7o.png


The error in the log file is 0x80070005

What I have tried:

- Making sure the install.wim is not read only (it's not).
- Taking ownership of the mount folder, and my DISM files, and the Windows source that contains the WIM.
- Making sure the registry key is clear (HKLM\SOFTWARE\Microsoft\WIMMount\Mounted Images)
- Checking I'm not using McAfee (I'm not).
- Making sure I'm logged in as an administrator (I am).
- Rebooting
- Taking deep breaths... getting angry lol...

Now what?! I have no idea why it's not mounting the image.

This is the same install.wim from the ISO I just installed Windows from, that I was working on perfectly fine, using all the same files I am using now. The computer user name is the same too.

All the answers I can find say disable McAfee (I'm not using it at all) and make sure install.wim is not read only (it's not).

I ran this then rebooted but it's not fixed it...

Code:
dism.exe /Cleanup-Wim
DISM\dism.exe /Unmount-wim /MountDir:D:\mount /Discard
Echo Y | REG DELETE "HKLM\SOFTWARE\Microsoft\WIMMount\Mounted Images"
rd /s /q D:\mount

Something else is at play.

I am mounting on a NVMe drive, maybe that's it, I will post back if mounting to my standard SATA HDD doesn't work... if you never see me in this thread again - it worked lol.

Nope - it just says the exact same thing again, after taking 5 times longer to mount. :rolleyes:

OK I will put my Windows source files and the mount folder both on my SATA HDD, after running the above commands again to clear it all up. I'll come back whining again if that doesn't work...

EDIT: That's not worked.

I cannot mount the WIM on a NVMe drive or a standard SATA HDD. The same error always happens "access denied".

EDIT: The 7updater package can mount and unmount fine, but I can't. After using 7updater, I can mount and unmount successfully once, then any further attempts fail with "Access denied".

I just wish that 7updater package had 2 batch files (like it has one to optimize the WIM and one to create an ISO) where one batch file can mount the WIM and another can do unmount /commit. I can't use the 7update to mount unless I run the main batch file and put in a dummy DRIVER.7z file (then I will forget I did that and end up updating with no drivers next time knowing me).

Why can the 7updater batch file mount and unmount fine but I can't, it's such a PITA.

I supposed I can try to use its DISM or something, with my own mount/unmount batch files. They were working the other day, now on a new PC, they aren't (notwithstanding 7updater, that always works).

EDIT: I copied all the files from "\7UPv50\amd64\dism" to the DISM folder I have been using and still get access denied. I'm going to cry in a minute.

DISM++ says the same thing, it just tells me it with a dialog window... "Access is denied".

REALLY

SwL8iLQ.png
 
Last edited:

My Computer My Computer

At a glance

Windows 10 x64
Computer type
PC/Desktop
OS
Windows 10 x64
I am so sick of this now, I give up.

It's never going to be fixed - unless I do an upgrade install of Windows - but I can't even do that because the exact same ISO I installed from, now miraculously tells me my installed version of Windows is too new! WHAT? I installed from that exact same ISO, so it's simply insane that it could even come up with that message, yet it does and I can't do the upgrade install to fix this access denied garbage with DISM.

Incidentally I can mount and unmount once (and once only!) after using 7updater, but that's it. Try to mount again (yes after doing the clean wim command and successfully unmounting) it just goes into this stupid access denied mode. Nothing I tried in the first post makes one bit of difference, with the only "fix" to do an upgrade install of Windows - which it's not letting me do even from the same installation media. This is all a complete shambles!

I know how to fix it...

Now I am running on a NVMe drive and by the grace of god bought a 500GB one so I have the space to do this - I am going to setup a virtual machine especially for doing this ultra-annoying DISM stuff - I will save a snapshot before any DISM command is ever run - then I will just do every single thing to do with DISM, inside that VM.

When it starts saying "Access denied" and I need to do a repair install of Windows and all the other nonsense I have read to fix this, I won't have to care, I'll just click the snapshot button in VMware and get it all back how it was in 5 seconds.

EDIT: It worked perfectly. I just created a 50GB VM. It seems when you mount a WIM image, it doesn't really take up the GB's of space it does take up when expanded, weird but nice lol.

Finally I can carry on updating and tweaking it.
 
Last edited:

My Computer My Computer

At a glance

Windows 10 x64
Computer type
PC/Desktop
OS
Windows 10 x64
10Fan


That's quite an interesting on-going story - and it has an ending.


Thank you for relaying that.
 

My Computer My Computer

At a glance

Windows 7 Pro x64Intel i5-8265U8gbIntel Iris Plus 655
Computer type
Laptop
Computer Manufacturer/Model Number
HP 250 G7
OS
Windows 7 Pro x64
CPU
Intel i5-8265U
Motherboard
Intel Coffee Lake
Memory
8gb
Graphics Card(s)
Intel Iris Plus 655
Sound Card
Realtek HDA
Monitor(s) Displays
Generic
Screen Resolution
1366 x 768
Hard Drives
Crucial P5 NVMe 1Tb internal
WD's 4Tb, 3Tb, 2 x 2Tb external
Mouse
Logi wireless
Internet Speed
45 Mbps
Antivirus
AVG
Browser
Firefox 88, Pale Moon 29, Brave 129
Other Info
Combination of i5-8265U with Crucial P5 achieves Crystal Bench scores > 5000

Iris Plus GPU (Whiskey Lake) driver from BioStar

HP 250 G7 is a budget machine
Back
Top