How To Create Visual Hard Drive ( VHD )


Virtualization has become an incredibly powerful and versatile way to set up environment. So much in fact that Microsoft has incorporated the ability to connect virtual hard drive (VHD) files as physical drives in the Microsoft windows Drive Management tool. This process is easy enough to do personally but if you connect VHD files often then we have a solution which enables you to install and unmount VHD files with single click.


Simply add our Mount VHD and Unmount VHD programs to your Deliver To selection.


Now whenever you right click a VHD computer file, go to the Deliver To > Mount VHD control. Note: This action will require manager rights, you may receive a UAC elevated authorization instant.


After the program has run, the VHD is available in Disk Managment and Microsoft windows Explorer and can be utilized just like a physical disk drive.



When you are finished using the VHD, basically unmount it by right click the VHD computer file and going Deliver To > Unmount VHD.

Mount VHD Script:


@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

Unmount VHD Script:


@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


Download Link Of  VHD Script