Microsoft Virtual Disk Problems

Michael Lambert 0 Reputation points
2024-05-17T15:54:02.72+00:00

Problem: When I create a VHD file, I have no association and can not mount the *.VHD. When I attempt to make an association, the File Explorer is not a choice, and if I try to assign the .vhd to Explorer.exe, I get :

"Cannot associate a file type with this program. The program you have cannot be associated with this type. Please choose another program."

Please advise

Michael Lambert.

Additional Information. Virtual Box was installed and removed on this machine. The "Oracle Issue" fix and the Registry Edit suggestion were tried, but the error above remains.

mikel

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,551 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 31,736 Reputation points Microsoft Vendor
    2024-05-21T03:46:21.53+00:00

    Hi Michael,

    To resolve the issue of not being able to mount or associate .VHD files on your Windows machine, follow these steps:

    1. Re-associate .VHD files with Disk Management. Open cmd as an administrator:

    assoc .vhd=VHDFile

    ftype VHDFile="%SystemRoot%\System32\mountvol.exe" "%1"

    This command sets the .vhd file association to use mountvol.exe, which is part of the Disk Management tools in Windows.

    1. Open "File Explorer" and go to "View" tab and click on "Options". In the "Folder Options" window, go to the "File Types" tab. Scroll to find ".vhd" and click "Change Program". Ensure it's set to open with the Disk Management tool or "File Explorer".
    2. Open Disk Management, in Disk Management, click "Action" > "Attach VHD".
    3. Open Registry Editor and navigate to .VHD File Association:

    Go to "HKEY_CLASSES_ROOT.vhd" and ensure the default value is set to "VHDFile".

    1. Navigate to "HKEY_CLASSES_ROOT\VHDFile\shell\open\command" and ensure the default value points to '%SystemRoot%\System32\mountvol.exe "%1" '.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments