Repair-vhd | Powershell [work]
| Scenario | Command | |----------|---------| | Migrated parent to new folder | Repair-VHD -Path .\child.avhdx -ParentPath D:\NewLocation\parent.vhdx | | Replaced parent with identical data but new file | Repair-VHD -Path .\child.avhdx -ParentPath .\new-parent.vhdx | | Automated re-parenting in a failover script | Get-ChildItem *.avhdx \| Repair-VHD -ParentPath $LatestParent |
: If a host crashes, the VHD header may become corrupt; the QuickFix mode is usually sufficient for this. repair-vhd powershell

