Try running this command in an Administrator Command Prompt window to un-mount the image, then restart your PC to apply the change.
Dism /Unmount-Image /MountDir:C:\Temp /discard
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I was using DISM to create a wim file:
C:\Windows\System32>dism /Mount-wim /wimfile:c:\install.wim /index:2 /Mountdir:c:\temp /readonly
I first added a temp folder (none was present on drive c)
I cant use it because it requires TOI permission; and now I cant delete the temp folder or any files inside it.
Disk clean up did not remove them.
Try running this command in an Administrator Command Prompt window to un-mount the image, then restart your PC to apply the change.
Dism /Unmount-Image /MountDir:C:\Temp /discard