From c9398b21ba27f9e68877bfb65c5323371f83c9e2 Mon Sep 17 00:00:00 2001 From: lumirjasny Date: Fri, 13 Jun 2025 18:34:53 +0200 Subject: [PATCH] Update GetDecryptionInfoFromLogFile.ps1 - add AppID in case there are multiple in the log, then it makes it more transparent - if not switched to current folder then the IntuneWinAppUtilDecoder.exe is not found --- .../IntuneWinAppUtilDecoder/GetDecryptionInfoFromLogFile.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IntuneWinAppUtilDecoder/IntuneWinAppUtilDecoder/GetDecryptionInfoFromLogFile.ps1 b/IntuneWinAppUtilDecoder/IntuneWinAppUtilDecoder/GetDecryptionInfoFromLogFile.ps1 index a8008fb..aaa9e79 100644 --- a/IntuneWinAppUtilDecoder/IntuneWinAppUtilDecoder/GetDecryptionInfoFromLogFile.ps1 +++ b/IntuneWinAppUtilDecoder/IntuneWinAppUtilDecoder/GetDecryptionInfoFromLogFile.ps1 @@ -82,13 +82,14 @@ function ExtractIntuneAppDetailsFromLogFile() $contentInfo = ($responsePayload.ContentInfo | ConvertFrom-Json) $decryptInfo = Decrypt(([xml]$responsePayload.DecryptInfo).EncryptedMessage.EncryptedContent) | ConvertFrom-Json + "IntuneAppID: $($responsePayload.ApplicationId)" "URL: $($contentInfo.UploadLocation)" "Key: $($decryptInfo.EncryptionKey)" "IV: $($decryptInfo.IV)" if ($RunDownloadAndExtract) { $targetPath = Join-Path $TargetDirectory "$($responsePayload.ApplicationId).intunewin" - .\IntuneWinAppUtilDecoder.exe `"$($contentInfo.UploadLocation)`" /key:$($decryptInfo.EncryptionKey) /iv:$($decryptInfo.IV) /filePath:`"$targetPath`" + &(Join-Path -Path $PSScriptRoot -ChildPath 'IntuneWinAppUtilDecoder.exe') `"$($contentInfo.UploadLocation)`" /key:$($decryptInfo.EncryptionKey) /iv:$($decryptInfo.IV) /filePath:`"$targetPath`" } $nextLine = $false @@ -112,4 +113,4 @@ elseif ($DisableVerboseLogging) { } else { ExtractIntuneAppDetailsFromLogFile -} \ No newline at end of file +}