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:
CodingWonders
2024-12-19 18:55:28 +01:00
parent d23e6f92fd
commit 31fc41588b

View File

@ -169,7 +169,7 @@ function Invoke-MicrowinGetIso {
try {
Write-Host "Mounting Iso. Please wait."
$mountedISO = Mount-DiskImage -PassThru "$filePath"
Write-Host "Done mounting Iso $mountedISO"
Write-Host "Done mounting Iso `"$($mountedISO.ImagePath)`""
$driveLetter = (Get-Volume -DiskImage $mountedISO).DriveLetter
Write-Host "Iso mounted to '$driveLetter'"
} catch {