-
Written By Rohan Wiese
-
Updated on September 30th, 2022
This blog summarizes the VHD Explorer process as well as mount or unmount a VHD File in Windows, it also descried automated method to explore VHD file for Hyper-V.
The VHD is a virtual hard disk; it stores data in a single file. The VHD file is created and used by Microsoft virtualization solutions such as Windows Virtual PC. Furthermore, the Microsoft has integrated the utility to connect virtual hard drive (VHD) files as physical disks in the Windows Disk Management tool. This is an easy manual process, but if you attach VHD files often then you have to mount and unmount VHD files with a single click.
Follow the following steps to mount and unmount a VHD file.
After the complete process, unmount it by right-clicking on the VHD file and go to Send To then select Unmount VHD.
(i) A Script for Mount VHD
@ECHO OFF
TITLE Mount VHD
ECHO Mount VHD
ECHO Written by: Jason Faulkner
ECHO SysadminGeek.com
ECHO.
ECHO.
SETLOCAL
SET DiskPartScript=”%TEMP%DiskpartScript.txt”
ECHO SELECT VDISK FILE=”%~1″ > %DiskPartScript%
ECHO ATTACH VDISK >> %DiskPartScript%
DiskPart /s %DiskPartScript%
ENDLOCAL
(ii) A Script for Unmount VHD
@ECHO OFF
TITLE Unmount VHD
ECHO Unmount VHD
ECHO Written by: Jason Faulkner
ECHO SysadminGeek.com
ECHO.
ECHO.
SETLOCAL
SET DiskPartScript=”%TEMP%DiskpartScript.txt”
ECHO SELECT VDISK FILE=”%~1″ > %DiskPartScript%
ECHO DETACH VDISK >> %DiskPartScript%
DiskPart /s %DiskPartScript%
ENDLOCAL
The above method is quite complex because if you made any mistake in writing the script, then the process will fail. So, there is an alternate solution Aryson VHD Recovery Software. This software permits you to recover FAT, FAT16, FAT32, FAT64, NTFS, HFS+ and EXTX file systems of your VHD. It is a user-friendly and it is particularly designed for both technical and non-technical users.
About The Author:
Rohan Wiese is a Technical Content Writer at Aryson Technologies, specializing in databases, e-mail recovery, and e-mail migration solutions. He enjoys conducting research and generating information that assists database administrators, businesses, and novices in resolving issues with MS SQL Server, MySQL databases, Cloud Computing, and Microsoft Exchange.
Realted Post
Useful Links
© Copyrights 2014-2025 by Aryson Technologies Private Limited - All Rights Reserved