I'm using the Hyper-V module for PowerShell, and I've successfully mounted an ISO file onto a virtual machine. Question is: how do I eject (or unmount) it?
I'd prefer to use the PSHyperV stuff, if there's a solution. Failing that, dipping into WMI from PowerShell would be acceptable.
(Using Windows 2008 R2, if it makes a difference)
HERE's a Powershell Hyper-V commandlet reference guide for future use.
From the virtual machine I found that using Powershell did it for me:
mountvol DRIVELETTER: /d