Dismount-VHD -Path "E:\VMs\Finance\Finance2019.vhdx" Mount-VHD -Path "E:\VMs\Finance\Finance2019.vhdx" -ReadOnly Get-Disk | Where-Object OperationalStatus -eq "OK" The disk appeared. He ran Get-Partition and saw a healthy NTFS volume.

He opened the mounted drive. All folders were there. The last 15 minutes of transactions were zeroed—about 30 invoices. But 99.98% of the data survived.

Repair-VHD -Path "E:\VMs\Finance\Finance2019.vhdx" -Repair -Force Three minutes of silence. Then: Repair completed. Some blocks were zeroed.

Then he saved the PowerShell script as Emergency-VHDRepair.ps1 and pushed it to the IT repo.

From that night on, Sanjay kept a sticky note on his monitor: “When a VHD screams, whisper PowerShell.”

Restore from backup? That would take eight hours. The CFO was already breathing down his neck.

Sanjay took a breath. The -Repair switch could try to fix it, but it warned: May discard corrupted data blocks. He added -Force and hit Enter.