PowerTip: Mount ISO or VHD File with PowerShell

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