Share via


Command Line ISO Mount with Specific Drive letter

Question

Tuesday, January 19, 2016 6:55 PM

Can someone tell me how to mount an ISO from command line with a specific Drive letter?

Thanks

All replies (5)

Tuesday, January 19, 2016 10:54 PM ✅Answered

Something like this ? 

https://social.technet.microsoft.com/Forums/windows/en-US/a3c88dc7-66ec-443b-8493-6bb4989336f8/can-i-mount-iso-images-from-command-line-without-using-powershell?forum=w8itprogeneral

Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.


Wednesday, January 20, 2016 7:54 AM ✅Answered | 1 vote

Hi usgrcm,

Mounting ISO from command line, this could be done with PowerShell command Mount-DiskImage.

But not with special Drive Letter.

The command above only have parameter which would allow to let you mount the ISO without drive letter.

Apologize to say that currently I didn't find any commands that would work to specify driver letter when mounting ISO files.

Example:

PS C:\ Mount-DiskImage -ImagePath "E:\ISO-Files\My.iso"

Regards

Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected].


Wednesday, June 14, 2017 4:24 PM

You can change the driver letter with diskpart:

list volume
select volume 1
assign letter=f:

Wednesday, May 23, 2018 9:18 PM | 2 votes

I was playing with this today and another post led me to this which returns the drive letter:

Mount-DiskImage -ImagePath "E:\ISO-Files\My.iso"

then

(Get-DiskImage "E:\ISO-Files\My.iso" | Get-Volume).DriveLetter


Thursday, October 25, 2018 9:29 PM

Excellent!!!!!!! THANK YOU!!!

Infrastructure Management Sr. Analyst | MCSA Windows Server 2012