Virtualization Find Location Path of Mounted VHD and VHDX Virtual Disks in Windows 11


Drive_banner.png

This tutorial will show you how to find the full path location of VHD and VHDX files of mounted virtual disks in Windows 10 and Windows 11.

Virtual hard disks (VHDs) are disk image file formats that have similar functionalities to a physical hard drive and are designed primarily for use with Hyper-V virtual machines.

When you attach a .vhd or .vhdx file, it will be mounted as a drive in File Explorer > This PC to open and access.


Contents

  • Option One: Find Location Path of Mounted VHD and VHDX Virtual Disks using Get-Disk Command
  • Option Two: Find Location Path of Mounted VHD and VHDX Virtual Disks using diskpart Command




Option One

Find Location Path of Mounted VHD and VHDX Virtual Disks using Get-Disk Command



1 Open Windows Terminal, and select Windows PowerShell.

2 Copy and paste the command below into Windows Terminal, and press Enter. (see screenshot below)

Get-Disk | Select-Object FriendlyName,Location

3 You will now see the file path Location of any mounted VHD and VHDX files as virtual disks.

VHD_location_Get-Disk.png





Option Two

Find Location Path of Mounted VHD and VHDX Virtual Disks using diskpart Command


You must be signed in as an administrator to use this option.



1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.

2 Copy and paste the commands below one at a time into Windows Terminal (Admin), and press Enter after each command. (see screenshot below)

diskpart

list vdisk

3 You will now see the File path location of any mounted VHD and VHDX files as virtual disks.

VHD_location_diskpart.png



That's it,
Shawn Brink


 
Last edited:
@Brink Also PS>Get-DiskImage -ImagePath Diskname.VHD(x) | Get-Disk | Get-Partition | Get-Volume
 

My Computer

System One

  • OS
    Win Server 2025 Insiders (currently 26227)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell T7910
    CPU
    2x E5-2699v4 (44 cores)
    Motherboard
    Dell
    Memory
    192GB
    Graphics Card(s)
    Arc 580
    Monitor(s) Displays
    3 x Samsung LU something or another, equivalent to Asus VG28UQL1
    Screen Resolution
    3x4k
    Hard Drives
    SSDs: (1) 3x SPCC "SPCCM.2PCIeSSD" (4TB) (2) PNY CS31400 (2TB) (3) Gigabyte-ASM2NE6 (1TB),
    PSU
    2x850W
    Case
    TT Tower 500
    Cooling
    6xIceberg Thermal IceGALE 120mm, 2xIceberg Thermal IceGALE 140MM, ThermalTake 360 CPU Cooler
    Keyboard
    2xMS Sculpt
    Mouse
    2xLogitech MX Master (2 and 3)
    Internet Speed
    1GB
    Browser
    Thorium
    Other Info
    Also 36TB SAN. And additional 15 SAS Drives
If you'd like, tell how you would want the text formatted so you can create an "Option 3". Or I can just shut up :)
 

My Computer

System One

  • OS
    Win Server 2025 Insiders (currently 26227)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell T7910
    CPU
    2x E5-2699v4 (44 cores)
    Motherboard
    Dell
    Memory
    192GB
    Graphics Card(s)
    Arc 580
    Monitor(s) Displays
    3 x Samsung LU something or another, equivalent to Asus VG28UQL1
    Screen Resolution
    3x4k
    Hard Drives
    SSDs: (1) 3x SPCC "SPCCM.2PCIeSSD" (4TB) (2) PNY CS31400 (2TB) (3) Gigabyte-ASM2NE6 (1TB),
    PSU
    2x850W
    Case
    TT Tower 500
    Cooling
    6xIceberg Thermal IceGALE 120mm, 2xIceberg Thermal IceGALE 140MM, ThermalTake 360 CPU Cooler
    Keyboard
    2xMS Sculpt
    Mouse
    2xLogitech MX Master (2 and 3)
    Internet Speed
    1GB
    Browser
    Thorium
    Other Info
    Also 36TB SAN. And additional 15 SAS Drives
If you'd like, tell how you would want the text formatted so you can create an "Option 3". Or I can just shut up :)
Hello mate, :alien:

The command gives back an error.

error.jpg
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
Did you try it on a mounted VHD?
 

My Computer

System One

  • OS
    Win Server 2025 Insiders (currently 26227)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell T7910
    CPU
    2x E5-2699v4 (44 cores)
    Motherboard
    Dell
    Memory
    192GB
    Graphics Card(s)
    Arc 580
    Monitor(s) Displays
    3 x Samsung LU something or another, equivalent to Asus VG28UQL1
    Screen Resolution
    3x4k
    Hard Drives
    SSDs: (1) 3x SPCC "SPCCM.2PCIeSSD" (4TB) (2) PNY CS31400 (2TB) (3) Gigabyte-ASM2NE6 (1TB),
    PSU
    2x850W
    Case
    TT Tower 500
    Cooling
    6xIceberg Thermal IceGALE 120mm, 2xIceberg Thermal IceGALE 140MM, ThermalTake 360 CPU Cooler
    Keyboard
    2xMS Sculpt
    Mouse
    2xLogitech MX Master (2 and 3)
    Internet Speed
    1GB
    Browser
    Thorium
    Other Info
    Also 36TB SAN. And additional 15 SAS Drives

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender

Latest Support Threads

Back
Top Bottom