: Run the following command to attempt a repair: Repair-VHD -Path "C:\path\to\your\file.vhdx" -RepairMode Scan
Note: If the "Repair" button is grayed out, Windows believes the file is currently in use or the corruption is beyond the scope of the Inspect tool. repair corrupted vhdx file
: Always shut down the guest OS properly before closing the Hyper-V host. : Run the following command to attempt a