Share via

remove a root directory created by DISM: need trusted installer permission

john errington 95 Reputation points
2025-10-20T08:53:43.5366667+00:00

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.

Windows for home | Windows 11 | Files, folders, and storage
0 comments No comments

1 answer

Sort by: Most helpful
  1. DaveM121 891.6K Reputation points Independent Advisor
    2025-10-20T09:35:03.8133333+00:00

    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

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.