Restoring VHDX Hyper-V

I have managed to get it working.

You need to do for example

fsutil sparse setflag “C:\Users\Public\Documents\Hyper-V\Virtual hard disks\testserver.vhdx” 0

This will fix the permissions.