Skip to content

Commit

Permalink
Use Start-Process for Get-BcContainerEventLog (#3249)
Browse files Browse the repository at this point in the history
The previous call "[Diagnostics.Process]::Start($eventLogName)" could
not open evtx files correctly inside PowerShell 7.

Fixes #3248
  • Loading branch information
dannoe authored Nov 27, 2023
1 parent 0d2b59b commit 570363e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ContainerInfo/Get-NavContainerEventLog.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ try {
$eventLogName
}
else {
[Diagnostics.Process]::Start($eventLogName) | Out-Null
Start-Process -FilePath $eventLogName | Out-Null
}
}
catch {
Expand Down

0 comments on commit 570363e

Please sign in to comment.