Skip to content

Commit 7bc38b0

Browse files
authored
Update SystemTester.ps1
New Features Added 1. Tool Integrity Verification Function 2. Integrated into Initialize-Environment 3. Launcher Awareness Working
1 parent b89dab2 commit 7bc38b0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

SystemTester.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,8 @@ function Test-HardwareEvents {
650650

651651
if ($ev) {
652652
$text = ($ev | ForEach-Object {
653-
"[{0:yyyy-MM-dd HH:mm}] ID {1} {2}`n{3}" -f $_.TimeCreated,$_.Id,$_.LevelDisplayName,($_.Message -split "`r?`n" | Select-Object -First 2 -join " ")
653+
$msgLines = ($_.Message -split "`r?`n" | Select-Object -First 2) -join " "
654+
"[{0:yyyy-MM-dd HH:mm}] ID {1} {2}`n{3}" -f $_.TimeCreated,$_.Id,$_.LevelDisplayName,$msgLines
654655
}) -join "`n`n"
655656
} else {
656657
$text = "No WHEA entries in last 7 days"

0 commit comments

Comments
 (0)