Mount-DiskImage
learn.microsoft.com
- Windows
What Mount-DiskImage is
Mount-DiskImage is a free Windows PowerShell cmdlet that makes an existing virtual hard disk or ISO appear as a normal disk. It requires the complete path to the VHD or ISO file. StorageType accepts ISO, VHD, VHDX, VHDSet, or Unknown; when omitted or set to Unknown, the file extension determines the type. VHD files can be mounted read-only or read-write, while ISO files are always read-only. Mounting a VHD requires administrator privileges. ISO permissions vary by Windows version: Windows 8 does not require administrator rights for ISO mounting, while Windows Server 2012 limits ISO mounting or ejecting to administrators. NoDriveLetter prevents assigning a drive letter. CimSession can run the command remotely, and AsJob runs longer operations in the background. The cmdlet returns nothing by default; PassThru returns an object for the mounted image. In failover clusters, Storage module commands operate across all servers.
Who it suits
It suits Windows administrators and users who need to mount ISO or virtual disk files from PowerShell. Remote sessions, background jobs, and cluster operation support help with managed environments.
Good to know, and what to watch
- Supports ISO, VHD, VHDX, and VHDSet
- Read-write mounting for VHD files
- Remote execution through CimSession
- Background operation with AsJob
- Optional drive-letter suppression
- Windows-only cmdlet
- VHD mounting requires administrator privileges
- ISO images are always read-only
- Requires a full image-file path
The verdict
Mount-DiskImage provides scriptable mounting for common ISO and virtual disk formats on Windows. Its permissions, read-only ISO behavior, and path requirement should be checked before use.
What the maker publishes
- Access modes
- VHD files can be mounted read-only or read-write, while ISO files are mounted read-only regardless of the parameter value. source
- Background jobs
- The AsJob parameter runs the cmdlet as a background job for commands that take a long time to complete. source
- Cluster behavior
- When Storage module cmdlets are used in a failover cluster, they operate at cluster level across all servers in the cluster. source
- Drive letter
- The NoDriveLetter parameter specifies that no drive letter should be assigned after mounting. source
- Hyper-V guidance
- For creating and mounting a VHD on a computer running Hyper-V, the page points to New-VHD and Mount-VHD in the Hyper-V module, or to Disk Management. source
- Output
- The cmdlet produces no output by default; with PassThru it returns an object representing the mounted disk image. source
- Path requirement
- The cmdlet requires the full path of the VHD or ISO file. source
- Privileges
- Mounting a VHD requires administrator privileges; the page says ISO mounting does not require them on Windows 8, while Windows Server 2012 permits only an administrator to mount or eject an ISO. source
- Purpose
- Mount-DiskImage mounts a previously created virtual hard disk or ISO so it appears as a normal disk. source
- Remote execution
- The CimSession parameter runs the cmdlet in a remote session or on a remote computer; by default it uses the local computer session. source
- Supported image types
- The StorageType parameter accepts ISO, VHD, VHDX, VHDSet, or Unknown; when omitted or set to Unknown, the type is determined from the file extension. source
- Windows support
- The MSFT_DiskImage Mount method lists Windows 8 desktop apps as its minimum supported client and Windows Server 2012 desktop apps as its minimum supported server. source
Checked against the maker's pages on 4 Oct 2026.