Learn about Windows PowerShell
Summary: Use Windows PowerShell to test your virtual hard disks.
How can I easily test the virtual hard disks on my Windows 8.1 laptop to ensure that they will work?
Get a collection of all .vhd and .vhdx disks, then pipe the resulting objects to the Test-VHD cmdlet:
Get-ChildItem -Path E:\vms\ -Recurse -Include *.vh* | Test-VHD
You can shorten the command to:
gci E:\vms\ -r -in *.vh* | Test-VHD