PowerShell Logo Small


This is the built-in help made by Microsoft for the command 'Mount-DiskImage', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.


Mounts a previously created disk image (virtual hard disk or ISO), making it appear as a normal disk.


Mount-DiskImage [-ImagePath] <String[]> [-Access <Access>] [-AsJob] [-CimSession <CimSession[]>] [-NoDriveLetter] [-PassThru] [-StorageType <StorageType>] [-ThrottleLimit
<Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Mount-DiskImage [-Access <Access>] [-AsJob] [-CimSession <CimSession[]>] [-NoDriveLetter] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm]
[-WhatIf] [<CommonParameters>]

Search powershellhelp.space


The Mount-DiskImage cmdlet mounts a previously created disk image (virtual hard disk or ISO), making it appear as a normal disk. This cmdlet requires the full path of the
VHD or ISO file. If the file is already mounted, then the cmdlet will display the following error.

-- "The process cannot access the file because it is being used by another process."

To mount a VHD file, administrator privileges is required. Administrator privileges are not needed to mount an ISO file on Windows® 8. On Windows Server® 2012, only an
administrator is allowed to mount or eject an ISO file.

To create and mount a VHD on a computer running Hyper-V, use the New-VHD and Mount-VHD cmdlets in the Hyper-V module (which is included in Windows 8 and Windows Server 2012
but not enabled by default). Alternatively, open Disk Management and then choose Create VHD from the Action menu.



Online Version: http://go.microsoft.com/fwlink/?LinkID=307002




Example 1: Mounting an ISO

PS C:\>Mount-DiskImage -ImagePath "E:\ISO-Files\My US Visit Fall 2010 Pictures.iso"

This example mounts an ISO by specifying the image path.