How to Mount an ISO or IMG File in Windows 11 and 10

Updated

Mounting an ISO file as a virtual drive in Windows

Right-click the ISO and choose Mount. In a script, use the Storage module:

Mount-DiskImage -ImagePath "C:\images\disk.iso"
(Get-DiskImage -ImagePath "C:\images\disk.iso" | Get-Volume).DriveLetter
Dismount-DiskImage -ImagePath "C:\images\disk.iso"

Mounting an ISO from a script

All three cmdlets live in the Storage module, which Microsoft lists as natively compatible with PowerShell 7 on Windows 10 1809+ and Server 1809+.

Mount-DiskImage   -ImagePath <path> [-StorageType Unknown|ISO|VHD|VHDX|VHDSet]
                  [-Access Unknown|ReadWrite|ReadOnly] [-NoDriveLetter] [-PassThru]

Get-DiskImage     -ImagePath <path> | -DevicePath <path> | -Volume <CimInstance>

Dismount-DiskImage -ImagePath <path> | -DevicePath <path> | -InputObject <CimInstance>

Four details from the reference pages. Mounting returns nothing unless you add -PassThru, so the drive letter comes back through Get-DiskImage … | Get-Volume and its DriveLetter property; the one-liner above combines two documented pieces rather than copying one Microsoft example. -Access is pointless here — per Microsoft’s Mount-DiskImage reference, “ISO files are mounted in read-only mode regardless of what parameter value you provide.” Mounting an image twice fails with “The process cannot access the file because it is being used by another process.” Dismount-DiskImage takes -ImagePath positionally and from the pipeline, but should not be given -PassThru, which appears in that page’s prose and in none of its syntax blocks. And on elevation Microsoft’s text is stale rather than absent — admin rights for VHD, “not needed to mount an ISO file on Windows 8” — wording never refreshed for Windows 10 or 11.

When Mount fails

Microsoft’s article for “Couldn’t Mount File / You don’t have permission to mount the file” lists exactly three causes, verbatim: “A USB media reader device is attached to the computer.” / “Removable media is mounted in the computer.” / “The .iso file that you are trying to mount is a sparse file.” It adds that “Although you receive the error message, the ISO image is mounted successfully in most cases.”

A correction to something I expected to find and did not. The common claim that ISOs on a network share cannot be mounted is not documented by Microsoft. That article does not list network location as a cause and describes the error as occurring from “either a local or network source”; the Building Windows 8 team said the opposite of the folklore, that ISOs can be mounted over UNC. People do hit this, but it is a reported behaviour, not a documented limitation.

The sparse-file cause is the one worth knowing, because a sparse ISO looks normal. Microsoft documents two checks: the Details tab of the file’s Properties, where a sparse file shows P in the Attributes line, or (Get-Item C:\images\disk.iso).Attributes, looking for SparseFile in the output. The documented fix is a copy, not a flag command — “Copy the ISO file to a new file by saving it to a different folder or giving it a different name. This process should remove the sparse attribute and enable the file to be mounted.” fsutil sparse setflag only marks a file sparse; Microsoft documents no way to unset it. The uncompressed/unencrypted/not-sparse rule people quote at ISOs is documented for virtual hard disks, not ISO files, so this page does not extend it.

Do you need DAEMON Tools or another third-party tool?

Microsoft Defender publishes PUABundler:Win32/DaemonTools (19 June 2023), under a category defined as “Software that offers to install other software that isn’t developed by the same entity or not required for the software to run”. Microsoft also says “PUAs aren’t considered malware”, so this is a bundling classification, not a malware verdict.

The honest recommendation is that on Windows 8 or later you do not need a third-party mounting tool at all (Windows 7 lost support on 14 January 2020). If you do, WinCDEmu is LGPL, genuinely open source, has a portable build and bundles nothing — with one caveat this page owes you: its site says it “Runs on 32-bit and 64-bit Windows versions from XP to Windows 10”, it has a single published release, and it does not claim Windows 11 support. Dormant but clean, not actively maintained.

What an ISO actually is

ECMA-119, the freely published equivalent of ISO 9660, starts the volume descriptor set at sector 16 — byte offset 32768 with 2048-byte sectors. Built an image on macOS with hdiutil makehybrid -iso -joliet and read those bytes back:

$ dd if=hw2.iso bs=2048 skip=16 count=1 | head -c 16 | od -An -c
         001   C   D   0   0   1 001  \0   A   P   P   L   E       I   N

The first byte is the descriptor type; the five after it are the standard identifier, at ECMA-119 byte positions 2 to 6, one-based — “CD001 is at bytes 1–5” is only right in zero-based offsets. No CD001 at offset 32769, no ISO 9660 image, whatever the extension says. The full teardown, including mounting and pulling a file out without mounting at all, is on the Linux version of this page.

That check is also what to do with a .img: Mount handles ISO, VHD and VHDX, and Microsoft documents that when -StorageType is unspecified “the storage type is determined by file extension”, so a .img carrying CD001 at 32769 is an ISO 9660 image wearing the wrong extension and renaming it to .iso gives Mount the extension it looks for. Windows 8 and later also read UDF, which Microsoft documents up to v2.6.

What was and was not tested

Nothing in the Windows sections was executed. No cmdlet, no fsutil command, no installer. Every cmdlet name, parameter, quoted error string, lifecycle date and Defender classification came from Microsoft Learn, Microsoft Support or the vendor’s own pages.

The ISO 9660 section ran on macOS 26.6 (arm64) with hdiutil, dd and od. Specifically unverified: whether fsutil sparse setflag <file> 0 clears the flag in practice, since undocumented is not the same as non-functional; elevation behaviour on Windows 10/11; whether renaming a .img gets it mounted, which follows from Microsoft’s documented extension rule but was not observed; and what DAEMON Tools bundles today, which rests on the 2023 Defender entry rather than an observed install.

Photo of author
Sudhir P. founded HeatWare.com in 1999 and has built and operated it full-stack ever since; it is now used by more than 88,000 people. He writes here about the PostgreSQL, MySQL, Linux and DevOps work that keeps it running. Articles are rewritten only after the commands in them have actually been run, and the verification scripts are published alongside them so anyone can check the claims. Reach him at blog@heatware.net.