Skip to content

Commit d3e3834

Browse files
authored
Update SystemTester.ps1
New Features Added 1. Tool Integrity Verification Function Added Test-ToolIntegrity() function that: Checks 8 key tools for minimum expected file sizes Detects suspiciously small files (corrupted downloads) Validates .exe extension Has optional digital signature verification (commented out for speed) Provides launcher-aware recommendations for re-download Asks user permission to continue if issues found 2. Integrated into Initialize-Environment The function now: Checks for folder existence Counts available tools Runs integrity verification (new!) Only proceeds if all checks pass 3. Launcher Awareness Working Detects $env:SYSTESTER_LAUNCHER variable Provides contextual messages based on how script was launched Guides users to Option 6 when appropriate
1 parent f7adf9d commit d3e3834

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)