PowerTip: Mount ISO or VHD File with PowerShell

PowerTip: Mount ISO or VHD File with PowerShell

  • Comments 4
  • Likes

Summary: Use Windows PowerShell to mount an ISO or VHD file.

Hey, Scripting Guy! Question I can double-click an ISO file to access it in Windows 8.1, but is there a Windows PowerShell
          cmdlet that will do that for me?

Hey, Scripting Guy! Answer Use the Mount-DiskImage cmdlet and specify the file name:

For an ISO file:

MOUNT-DISKIMAGE C:\ISO\MYCDFile.ISO

Or for a VHD file:

MOUNT-DISKIMAGE C:\VHD\VirtualMachine.VHD

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Is this supported in Windows 2008 ?

  • @Dave Wolf: It would seem so. http://technet.microsoft.com/en-us/library/hh848706(v=wps.620).aspx

  • @dave No, these Cmdlets do not exist within Server 2008 for either ISO or VHD. You can mount an ISO natively in Server 2012, you can mount a VHD natively in Server 2008 R2. I believe the Cmdlets started to appear in Server 2008 R2. However there ARE options for mounting an ISO. Virtual Clone Drive from slysoft.com has worked well for me on Server 2008 in the Past and DOES support Command line options. Within Server 2008 you might be able to use DISKPART to mount a VHD but I don't have Server 2008 handy to play with. Sean

  • waaaaaaaaaaaaaaaaaa