DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
Redmond desk4 min

Mount a VHD in a Windows Guest: PowerShell, Disk Management, or DiskPart?

Mount an existing VHD or VHDX from inside a Windows guest without conversion. Learn the PowerShell command, read-only choices, alternatives, and key distinction from hypervisor attachment.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can mount an existing VHD or VHDX inside a running Windows guest without converting it. Make the file accessible from the guest, open PowerShell as an administrator, then run Mount-DiskImage -ImagePath "C:pathdisk.vhdx". For inspection without writing to the image, add -Access ReadOnly.

First distinguish mounting a file from attaching a VM disk

Mounting a VHD from inside Windows means the guest opens an existing .vhd or .vhdx file and exposes its partitions as volumes. The file must be reachable from the guest, such as on a guest-local drive or a location made available through your hypervisor’s supported storage or file-transfer method.

As an Amazon Associate I earn from qualifying purchases.

Attaching a virtual disk through the hypervisor is a different operation: the VM is configured to see a virtual disk device. Hyper-V supports configuring a VM to use an existing VHD/VHDX or attaching one later. That does not mount an ordinary image file from within Windows. See Microsoft’s Hyper-V guidance on attaching or detaching a virtual hard disk.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Neither in-guest file mounting nor basic disk-image inspection inherently requires nested virtualization. Nested virtualization is for workloads that need a hypervisor inside the guest, such as running Hyper-V there; it requires exposing hardware virtualization support to the guest. Microsoft explains nested virtualization requirements.

#1 Best Overall
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Mount with PowerShell

Microsoft documents Mount-DiskImage for mounting an existing virtual hard disk. Run PowerShell with administrator privileges and supply the full path to the image:

Mount-DiskImage -ImagePath "C:pathdisk.vhdx"

Use the matching path to your file, whether it ends in .vhd or .vhdx. The file must be accessible inside the guest. Microsoft’s Mount-DiskImage documentation specifies the full image path and administrator requirement for VHDs.

Rank #2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Mount read-only for inspection

If you only need to inspect or copy data and do not want changes written to the image, mount it read-only:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Mount-DiskImage -ImagePath "C:pathdisk.vhdx" -Access ReadOnly

The cmdlet supports read-only and read-write access for VHD files. Choose read-only deliberately when preservation matters; a normal mount is not the read-only option.

Rank #3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
  • Easily store and access 1TB to content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop. Reformatting may be required for Mac
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Choose another interface if it fits your setup

Method What it does Read-only option Requirement or boundary
PowerShell: Mount-DiskImage Mounts an accessible VHD/VHDX file from within Windows. -Access ReadOnly Administrator privileges are required for VHD mounting.
Hyper-V PowerShell: Mount-VHD Mounts a virtual hard disk from within Windows. -ReadOnly Requires the Hyper-V PowerShell module to be available in the guest.
DiskPart Attaches a selected VHD file; an already partitioned and formatted VHD can receive a drive letter. attach vdisk readonly Uses DiskPart’s virtual-disk commands.
Disk Management Provides a graphical VHD attachment and management workflow where available. Not stated in the cited guidance. Exact labels and availability can vary with Windows edition and installed features.

Microsoft’s Mount-VHD documentation includes a read-only example. It also shows how to inspect a mounted disk by passing it through disk, partition, and volume commands:

Mount-VHD -Path "C:pathdisk.vhdx" -PassThru | Get-Disk | Get-Partition | Get-Volume

For a read-only Hyper-V PowerShell mount, use:

Mount-VHD -Path "C:pathdisk.vhdx" -ReadOnly

DiskPart

In DiskPart, select the VHD file and attach it. For example, in an elevated Command Prompt or PowerShell session:

Rank #4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue
  • Easily store and access 4TB of content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
diskpart
select vdisk file="C:pathdisk.vhdx"
attach vdisk
exit

To attach it read-only instead, use attach vdisk readonly after selecting the file. Microsoft documents these commands in its DiskPart attach vdisk reference.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Disk Management

Open Disk Management in the guest with diskmgmt.msc, then use its VHD attachment workflow if available in that Windows installation. Microsoft’s VHDX guidance identifies Disk Management and DiskPart as management tools; consult Microsoft’s VHDX deployment guidance for the documented tool context.

Best Value
Sale
UnionSine 500GB Ultra Slim Portable External Hard Drive HDD-USB 3.0
  • [Upgraded Version] - This external hard drive features a mirrored logo stripe combined with a striped anti-slip design, and the rounded corners of the casing make it easier to grip. The stripes also have a heat dissipation function, ensuring stable and fast data transfer.
  • 【Ultra-thin and quiet】 - The motherboard adopts JMicron 578 noise-free solution, giving you a quiet working environment. Lightweight and portable size designed to fit in your pocket for easy portability.
  • 【Ultra-Fast Data Transfers】 - Pairing this external hard drive with JMicron 578 solution USB 3.0 and USB 2.0 interfaces enables blazing-fast data transfer. It boasts theoretical read speeds of up to 125MB/s and write speeds of up to 103MB/s.
  • 【Plug and Play】 - With no software to install, just plug it in and the drive is ready to use.The hard disk chip is wrapped with an aluminum anti-interference layer to increase heat dissipation and protect data.
  • 【What You Get】 - 1 x Portable Hard Drive, 1 x USB 3.0 Cable, 1 x User Manual, Gift-type shell packaging ,Three-year manufacturer's warranty and free technical support services.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Check the mounted volume and handle common errors

  • The image is not found: Confirm that the path exists from inside the guest, not just on the host. Make the file available using the storage or transfer method supported by your hypervisor.
  • Access is denied: Run PowerShell with administrator privileges for Mount-DiskImage. If using Mount-VHD, confirm that the Hyper-V PowerShell module is installed and available in the guest.
  • The file is in use: An image that is already mounted can trigger an in-use error. Check whether it is mounted elsewhere or still open, then retry when it is no longer in use.
  • No drive letter appears: Attaching the image exposes its disk and partitions, but a usable volume depends on the image’s partitioning and formatting. DiskPart documentation notes that an already partitioned and formatted VHD can receive a drive letter when attached; check Disk Management for the disk and volume state.

Microsoft’s storage cmdlet documentation points to Disk Management for VHD management and documents mounting by image path: Mount-DiskImage reference.

Unmount the image when finished

After you have finished using the mounted disk, detach it to release the image file. With PowerShell, use the corresponding dismount cmdlet and path:

Dismount-DiskImage -ImagePath "C:pathdisk.vhdx"

With DiskPart, select the same VHD and run detach vdisk. Close files or applications that are using the mounted volume before detaching it.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Conversion is not part of this mounting procedure

The documented mounting commands operate on the existing VHD or VHDX by path. You do not need to convert the image merely to mount it as a volume inside Windows. If the objective is instead to make the VM boot from that disk, attach it through the hypervisor and follow the relevant VM configuration guidance; that is distinct from mounting a data image inside the guest.

Quick Recap

SaleBestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
Bestseller No. 2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$229.99
Bestseller No. 3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.80
Bestseller No. 4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$208.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.