From 570363e7aa9b75d6b2a4b73599692da3392921d5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 27 Nov 2023 18:18:11 +0100 Subject: [PATCH] Use Start-Process for Get-BcContainerEventLog (#3249) The previous call "[Diagnostics.Process]::Start($eventLogName)" could not open evtx files correctly inside PowerShell 7. Fixes #3248 --- ContainerInfo/Get-NavContainerEventLog.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ContainerInfo/Get-NavContainerEventLog.ps1 b/ContainerInfo/Get-NavContainerEventLog.ps1 index 34f8aaffa..0c2c891d7 100644 --- a/ContainerInfo/Get-NavContainerEventLog.ps1 +++ b/ContainerInfo/Get-NavContainerEventLog.ps1 @@ -43,7 +43,7 @@ try { $eventLogName } else { - [Diagnostics.Process]::Start($eventLogName) | Out-Null + Start-Process -FilePath $eventLogName | Out-Null } } catch {