Mounting a Virtual Hard Disk with Hyper-V - Ben Armstrong - Site Home - MSDN Blogs
This is a very straightforward script. You just get a MSVM_ImageManagementService object and call the "Mount" method on it. To unmount the virtual hard disk you run the same code but call "Unmount" instead. Note that the virtual hard disk will be offline ...