Not really a question, unless someone can provide a better way to do this.
VM is Server 2012 R2.
I have a VM that creates VM’s using Hyper-V PowerShell management tools, I now have the need to mount a vhd to manipulate the filesystem. Mount-VHD would work with annoyingly have to install the Hyper-V role.Since I’m already inside a VM, this didn’t work and I have to use:
Enable-WindowsOptionalFeature –Online -FeatureName Microsoft-Hyper-V –All
Ref: http://blogs.technet.com/b/gbanin/archive/2013/06/26/how-to-install-hyper-v-on-a-virtual-machine-in-hyper-v.aspx
Once the VM has restarted I was then able to mount vhd’s on this machine.
What I can’t understand is Explorer / the shell, can mount a vhd by simply double clicking it, but to use mount-vhd I had to install the Hyper-V role.
Thought I’d post this, if anyone else has this issue.