Virtualization Find File Path Location of Mounted ISO and IMG in Windows 11


  • Staff
ISO_banner.png

This tutorial will show you how to find the full path location of ISO and IMG image files mounted as a DVD drive in Windows 10 and Windows 11.

An ISO or IMG file is a DVD disk image file.

When you mount an .ISO or .IMG file, it will be added as a DVD drive in File Explorer > This PC.


Contents

  • Option One: Find File Path Location of Specific Mounted ISO and IMG using Get-Volume Command
  • Option Two: Find File Path Location of Specific Mounted ISO and IMG using Get-DiskImage Command
  • Option Three: Find File Path Location of All Mounted ISO and IMG files using Get-Volume Command
  • Option Four: Find File Path Location of All Mounted ISO and IMG files using diskpart Command


EXAMPLE: ISO file mounted as DVD drive in File Explorer > This PC

File_Explorer_mounted_ISO.png





Option One

Find File Path Location of Specific Mounted ISO and IMG using Get-Volume Command



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

2 Type the appropriate command below into Windows Terminal, and press Enter. (see screenshots below)

Windows PowerShell:
Get-Volume <drive letter> | Get-DiskImage | Select-Object ImagePath

OR​

Command Prompt:
PowerShell "Get-Volume <drive letter> | Get-DiskImage | Select-Object ImagePath"

Substitute <drive letter> in the commands above with the actual drive letter (ex: "E") of the mounted ISO or IMG you want to know the file path location of.

For example:
Get-Volume E | Get-DiskImage | Select-Object ImagePath

PowerShell "Get-Volume E | Get-DiskImage | Select-Object ImagePath"


3 You will now see the ImagePath output as the full file path location of the mounted ISO or IMG for this drive.

Get-Volume-1.png

Get-Volume-2.png





Option Two

Find File Path Location of Specific Mounted ISO and IMG using Get-DiskImage Command



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

2 Type the appropriate command below into Windows Terminal, and press Enter. (see screenshots below)

Windows PowerShell:
Get-DiskImage -DevicePath \\.\<drive letter>: | Select-Object ImagePath

OR​

Command Prompt:
PowerShell "Get-DiskImage -DevicePath \\.\<drive letter>: | Select-Object ImagePath"

Substitute <drive letter> in the commands above with the actual drive letter (ex: "E") of the mounted ISO or IMG you want to know the file path location of.

For example:
Get-DiskImage -DevicePath \\.\E: | Select-Object ImagePath

PowerShell "Get-DiskImage -DevicePath \\.\E: | Select-Object ImagePath"


3 You will now see the ImagePath output as the full file path location of the mounted ISO or IMG for this drive.

Get-DiskImage-1.png

Get-DiskImage-2.png





Option Three

Find File Path Location of All Mounted ISO and IMG files using Get-Volume Command



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

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

Windows PowerShell:
Get-Volume |%{$d=$_.DriveLetter;$_ |Get-DiskImage |select @{Name='DriveLetter';Expression={$d}},ImagePath}

OR​

Command Prompt:
PowerShell "Get-Volume |%{$d=$_.DriveLetter;$_ |Get-DiskImage |select @{Name='DriveLetter';Expression={$d}},ImagePath}"

3 You will now see the ImagePath output as the full file path location of the mounted ISO or IMG for this drive.

Get-Volume.png

Get-Volume_command.png





Option Four

Find File Path Location of All Mounted ISO and IMG files 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 full File path location of any mounted ISO and IMG files as DVD drives.

diskpart.png



That's it,
Shawn Brink


 

Attachments

  • ISO.png
    ISO.png
    3.4 KB · Views: 2
Last edited:
This can also be done using CMD via the registry, however, if you have multiple images mounted, it will show all drive letters (You would need to check the contents of each in the case of multiple mounted images, i.e. for a Windows ISO you would check for IF EXIST %%#\Sources\install.wim dosomethinghere)

ShowMountedISO-DriveLetters.cmd
Batch:
FOR /f "tokens=3 delims=\:" %%# IN ('REG query HKLM\System\mounteddevices ^| findstr /c:"5C003F00" ^| findstr /v "{.*}"') DO ECHO %%#

FindMountedInstallMediaDriveLetterExample.cmd
Batch:
@ECHO OFF
FOR /f "tokens=3 delims=\:" %%# IN ('REG query HKLM\System\mounteddevices ^| findstr /c:"5C003F00" ^| findstr /v "{.*}"') DO (
IF EXIST %%#:\Sources\install.wim SET DriveLetter=%%#
)
SETLOCAL ENABLEDELAYEDEXPANSION
ECHO Install Media Location: !DriveLetter!:\
ENDLOCAL
PAUSE
 

My Computer

System One

  • OS
    PE
Find File Path Location of All Mounted ISO and IMG files using Get-Volume Command
Powershell:
Get-Volume |%{$d=$_.DriveLetter;$_ |Get-DiskImage |select @{Name='DriveLetter';Expression={$d}},ImagePath}
 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
Find File Path Location of All Mounted ISO and IMG files using Get-Volume Command
Powershell:
Get-Volume |%{$d=$_.DriveLetter;$_ |Get-DiskImage |select @{Name='DriveLetter';Expression={$d}},ImagePath}
Thank you mate. Now added as option three. :shawn:
 

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,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium

Latest Support Threads

Back
Top Bottom