A. Mounting a VHD with Windows 2008 R2 is easy using Disk Manager and the command line diskpart utility, but you can also use PowerShell with Msvm_ImageManagementService, as shown here.
$VHDService = get-wmiobject -class "Msvm_ImageManagementService" -namespace "root\virtualization" -computername "."$VHDService.Mount("<path to vhd file>")
You can unmount using the $VHDService.Unmount command in place of $VHDService.Mount.
0 comments
Hide comments