Use the Test-VHD cmdlet to identify specific errors.
For minor logical errors, the simplest method is mounting the disk via the Windows Disk Management MMC.
PowerShell provides granular control over the repair process. This is the preferred method for system administrators.