Cannot unmount WIM image; Dism error 50 "This Operation is not supported"

ebm9000

Reputable
Jan 22, 2015
117
0
4,760
Hello. I am trying to unmount an image using the command prompt, and I enter the following:

dism /unmount-wim /mountdir:c:\users\*the mount directory, which isn't directly in C Users*\sources\install.wim /discard


But, I get an error 50: "This operation is not supported".

Running a status check indicates I need to remount, so I enter the appropriate command, and I get another error 50: "This operation is not supported"

In an effort to try and get it in an invalid state, I enter EVERY user account into the security properties of the folder (including services) and set their permissions to full control, but it still says I need permission from myself in order to delete it. Help?
 
Solution
I just kept trying to same thing and it magically worked. Not sure how, but I was successfully got the mount in an Invalid state and it let me through after that.