VHD Explorer – Mount and Unmount a VHD File in Windows

  • Written By  

  • 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.

Manual Method VHD Explorer – Mount and Unmount a VHD File

Follow the following steps to mount and unmount a VHD file.

  1. First, add Mount VHD and Unmount VHD scripts to your Send To menu.
    vhd explore
  2. Right click on the VHD file, go to the Send To and click on Mount VHD command.
    Note: This step will require administrator rights; you may receive UAC elevated permission prompt.
    explore vhd
  3. After the finish of script run process, the VHD is available in Disk Management and Windows Explorer. Now, these can be accessed just like a physical disk.
    unmount vhd file

mount vhd

After the complete process, unmount it by right-clicking on the VHD file and go to Send To then select Unmount VHD.

The Required Scripts for Mount or Unmount VHD File

(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

Automated Method to Explore VHD, Mount or Unmount VHD File

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.

5/5 - (1 vote)

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

offer image

Aryson Technologies footer logo

united states

2880 Zanker Road, Suite 203, San Jose, CA - 95134, USA

india

A-58 , 2nd Floor A Block Sector 57, Noida, Uttar Pradesh 201301

© Copyrights 2014-2025 by Aryson Technologies Private Limited - All Rights Reserved