Windows 8 and 8.1 Forums


VHD or VHDX File - Mount and Attach in Windows 8

  1. #1
    VHD or VHDX File - Mount and Attach in Windows 8

    VHD or VHDX File - Mount and Attach in Windows 8
    How to Mount and Attach a VHD or VHDX File in Windows 8
    Published by Brink is online now
    04 Oct 2012
    Default VHD or VHDX File - Mount and Attach in Windows 8

    Published by


    Brink's Avatar
    Administrator

    Join Date: Jul 2009
    Posts: 20,275

    How to Mount and Attach a VHD or VHDX File in Windows 8

    information   Information
    This tutorial will show you how to mount and attach either a VHD (Virtual Hard Disk) or VHDX (Hyper-V Virtual Hard Disk) file as a drive in the Computer window for all users in Windows 8. Mount and attach is the same.

    You must be signed in as an administrator to be able to mount/attach a VHD or VHDX file in Windows 8.

    warning   Warning
    Mounted VHD or VHDX files will only stay attached as a drive for the current session of Windows 8. When you restart or shut down the computer, any attached VHD or VHDX files will automatically be unmounted/detached as a drive from Computer.

    You will have to mount/attach the VHD or VHDX file(s) again to have it displayed as a drive in the Computer window again until the next restart.

    Signing off or switching user, will not affect any mounted/attached VHD or VHDX file(s).





    OPTION ONE
    To Directly Mount a VHD or VHDX

    1. Do step 2, 3, or 4 below for what you would like to do.

    2. Double click/tap on the .vhd or .vhdx file that you want to mount, and go to step 4 below.

    3. In File Explorer, select (highlight) the .vhd or .vhdx file that you want to mount, click/tap on the Manage (Disc Image Tools) tab and on Mount button in the ribbon, and go to step 4 below. (see screenshot below)

    Click image for larger version

    4.
    Right click or press and hold on the .vhd or .vhdx file that you want to mount, click/tap on Mount, and go to step 4 below. (see screenshot below)

    Name:  Context-Menu.jpg
Views: 35127
Size:  18.7 KB

    5. If prompted by UAC, then click/tap on Yes.






    OPTION TWO
    To Attach a VHD or VHDX in Disk Management

    1. Open the WIN+X Power User Tasks menu, and click/tap on Disk Management. (see screenshot below)

    Name:  WIN+X.jpg
Views: 35160
Size:  28.4 KB

    2. If prompted by UAC, then click/tap on Yes.

    3. In Disk Management (diskmgmt.msc), click/tap on Action (menu bar) and on Attach VHD. (see screenshot below)

    Click image for larger version

    4. Click/tap on Browse, navigate to and select the .vhd or .vhdx file (ex: Ultimate.vhd) that you want to mount, click/tap on Open. (see screenshots below)

    Name:  Disk_Management_Attach-2.jpg
Views: 35128
Size:  24.3 KB

    Click image for larger version

    5. If you want the mounted .vhd or .vhdx to be read-only while it's attached as a drive, then check the box, otherwise leave it unchecked. Click/tap on OK. (see top screenshot above)

    6. The .vhd or .vhdx file is now mounted and attached as a drive. The drive(s) will also open in a separate File Explorer window(s). (see screenshot below)
    NOTE: For example, the Ultimate.vhd I mounted (Disk 1) is a Windows Virtual PC .vhd file that had two partitions on it, so it created two drive letters (F and G) in my Computer window.

    Click image for larger version

    7.
    When finished, you can close Disk Management if you like.






    OPTION THREE
    To Create and Attach a New VHD or VHDX in Disk Management



    That's it,
    Shawn


  2. #1


    Posts : 8
    Win8


    I'd love to see (non-Powershell) mount and dismount scripts for Windows 8 if anyone has any links.

      My System SpecsSystem Spec

  3. #2


    Posts : 1,875
    Windows 10 Pro Prieview x64


    Quote Originally Posted by beems View Post
    I'd love to see (non-Powershell) mount and dismount scripts for Windows 8 if anyone has any links.
    You can use diskpart and pass it
    Code:
    select vdisk file="Address of VHD" 
    attach vdisk

    eg
    ArgumentException: Attach and Detach VHD files from the command line
    Mounting VHDs in Windows 7 from a command-line script | NicJ.net
      My System SpecsSystem Spec

  4. #3


    Posts : 8
    Win8


    Thanks,
    I'm not sure why what I was doing before wasn't working, but it's working now.

    I'm trying to make this easy for people that are not local administrators, so I found a batch file that writes and executes a VBScript so that it initializes privilege escalation. Found here: command line - How to request Administrator access inside a batch file - Stack Overflow
      My System SpecsSystem Spec


VHD or VHDX File - Mount and Attach in Windows 8

Similar Threads
Tutorial Forum
Couldn't Mount File (Seems New Unknown Kind of Problem)
Hello guys, I'm a new guy here so please forgive me for my title if it's quite unappropriate. Actually I created this account just to ask you about my ISO mounting error that I encountered awhile ago. I already read the rules about creating a thread of a same old topic in here, but seriously I'm...
Virtualization
How to attach pictures in WLM
I have Win 8.1 with WLM build 16.4.3508.0205. Before I (upgraded) to Win 8.1, I could send pictures in an e-mail as an attachment. Now when I do that it adds them to an album and the recipients has to down load them from SkyDive. Is there any way to keep the pictures in the e-mail? I don't use...
Browsers & Mail
Couldn't Mount File error- but the iso file was mounted
In Windows 8.1, when I try to use the native ISO mounting function, either from the right-click menu, or by double clicking the iso file, I am getting the error: Couldn't Mount File Sorry, there was a problem mounting the file. Yet most of the time, the virtual CD/DVD drive appears as it ...
Virtualization
VHD or VHDX File - Create and Attach in Windows 8
How to Create and Attach a VHD or VHDX File in Windows 8 This tutorial will show you how to create a fixed or dynamically expanding VHD or VHDX file any size you like saved to where you like, and to attach/mount it as a drive in the Computer window for all users in Windows 8. You must be...
Tutorials
Not able to mount iso file
Hi, I didn't install any 3rd party app to mount iso. Yesterday, i tried to mount a iso file, it didn't worked. Then googled about it, tried sfc /scannow, no success. Then i checked "Default programs - associate file extension...", there is no entry for .iso. Please help. 27780 Tried Daemon...
Virtualization
"You don't have permission to mount the file."
10005 Here is a screenshot of my problem. :confused: I was attempting to set up a Windows XP Virtual Machine after turning my XP Home disk into an ISO. You see, my disk reader doesn't work and I had to take it out. Hopefully I will buy a new external CD reader, but suggestions will help. :) ...
Virtualization
VHD or VHDX File - Unmount and Detach in Windows 8
How to Unmount and Detach a VHD or VHDX File in Windows 8 This tutorial will show you how to unmount and detach a VHD (Virtual Hard Disk) or VHDX (Hyper-V Virtual Hard Disk) file that was mounted/attached as a drive in the Computer window for all users in Windows 8. You must be signed in as...
Tutorials

Eight Forums Android App Eight Forums IOS App Follow us on Facebook