This entry has been published on 2012-11-29 and may be out of date.
Last Updated on 2012-11-29.
Problem:
You want to modify a Hyper-V VHD virtual hard disk, but the wizard ends with an error. The event log shows the error code.
Solution:
You maybe have shadow copies on the guest machine. Start the VM and try the commands “vssadmin list shadows” and “vssadmin delete shadows /all”. Now it should work
(Source)