February 12th, 2014

PowerTip: Mount ISO or VHD File with PowerShell

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback