Many of the time your VHD files gets corrupted from some of reasons then you need to repair VHD files as well as store in the virtual machine files. In this blog we will learn how to repair corrupt VHD files and store VHD files. But firstly you have to know about the VHD files that how its work and what is their features and functions too.
VHD is a file format which stands for the Virtual Hard Disk which represents in a virtual hard disk drive (HDD). This VHD file folders normally use as a hard disk of a virtual machine. The VHD allows several operating systems to exist in a single host machine. VHD files are created with several tools which provide the facility to create virtual machine such as like Ms Hyper-V, MsVirtual PC, Ms Virtual Server, Oracle VirtualBox, Sun VirtualBox, SunxVM VirtualBox, Innotek VirtualBox, Citrix Virtual Server, Citrix XenDesktop, Citrix XenServer, etc.
While you are working on your computer then all data will be stored in the virtual hard disk but for a time the virtual machine file has been corrupted by some reason such as virus attack, power failure, and abrupt shutdown of the system, hardware and software failure and so on. When your VHD files gets damage and corrupted, then you need to get rid this problem.
Manual method to Recover VHD files
These are some Powershell Commands to Repair Corrupt or Damaged VHD files
1. This Command is used to scan corrupt images
Command: Dism /Online /Clean-Image /CheckHealth
Description: This command scans the file completely to check for corruption.
2. This Command for checking an image for corruption
Command: Dism /Online /Cleanup-Image /ScanHealth
Description: This command will check whether the image file is corrupted or not and will specify whether it can be repaired or not.
3. Command for repairing and restoring from corruption
Command: Dism /Online /Clean-Image /RestoreHealth
Description: This command will automatically perform the repair if it finds corruption.
Note that this manual method needs to a technical knowledge in a person because it need for well execution in this process and having knowledge for this procedure.
Here is another method too, it is relates to the third party tools. The user can use the desire VHD File Recovery software for recovery of VHD files. But first use manual method and try at once, if you are not satisfied with this result. Because manual method is a time consuming and have a lengthy process too.