mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-01 18:42:35 -05:00
Access specific property of ISO image object
Only show the ISO path. No one is interested in the storage type
This commit is contained in:
@ -169,7 +169,7 @@ function Invoke-MicrowinGetIso {
|
|||||||
try {
|
try {
|
||||||
Write-Host "Mounting Iso. Please wait."
|
Write-Host "Mounting Iso. Please wait."
|
||||||
$mountedISO = Mount-DiskImage -PassThru "$filePath"
|
$mountedISO = Mount-DiskImage -PassThru "$filePath"
|
||||||
Write-Host "Done mounting Iso $mountedISO"
|
Write-Host "Done mounting Iso `"$($mountedISO.ImagePath)`""
|
||||||
$driveLetter = (Get-Volume -DiskImage $mountedISO).DriveLetter
|
$driveLetter = (Get-Volume -DiskImage $mountedISO).DriveLetter
|
||||||
Write-Host "Iso mounted to '$driveLetter'"
|
Write-Host "Iso mounted to '$driveLetter'"
|
||||||
} catch {
|
} catch {
|
||||||
|
Reference in New Issue
Block a user