3

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)

2 Answers 2

1
Set-VMDisk 

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

3
  • A little more? I'm aware of Set-VMDisk. What's the magic incantation to get it to eject the ISO? Commented Jun 15, 2011 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. Commented Jun 15, 2011 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. Commented Jun 15, 2011 at 18:42
1

From the virtual machine I found that using Powershell did it for me:

mountvol DRIVELETTER: /d

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.