Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)

share|improve this question

HERE's a Powershell Hyper-V commandlet reference guide for future use.

share|improve this answer
A little more? I'm aware of Set-VMDisk. What's the magic incantation to get it to eject the ISO? – Roger Lipscombe Jun 15 '11 at 16:11
seriously dude the full usage is detailed in the linked document, there's loads of options, no way for any of us to just tell you what you need, you've not provided enough information. – Chopper3 Jun 15 '11 at 16:18
I want to unmount an ISO file. What part of that is not clear? The documentation shows how to mount one, which I can already do. – Roger Lipscombe Jun 15 '11 at 18:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.