From 31fc41588b251bc908f6700bfce222a47b561946 Mon Sep 17 00:00:00 2001 From: CodingWonders <101426328+CodingWonders@users.noreply.github.com> Date: Thu, 19 Dec 2024 18:55:28 +0100 Subject: [PATCH] Access specific property of ISO image object Only show the ISO path. No one is interested in the storage type --- functions/microwin/Invoke-MicrowinGetIso.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/microwin/Invoke-MicrowinGetIso.ps1 b/functions/microwin/Invoke-MicrowinGetIso.ps1 index 165bc94d..c4520371 100644 --- a/functions/microwin/Invoke-MicrowinGetIso.ps1 +++ b/functions/microwin/Invoke-MicrowinGetIso.ps1 @@ -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 {