We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eceda71 commit 472008cCopy full SHA for 472008c
1 file changed
SystemTester.ps1
@@ -830,6 +830,17 @@ function Generate-Report {
830
$criticalIssues++
831
}
832
833
+
834
+ # --- D.5. Windows Update Alert ---
835
+ $updateTest = $script:TestResults | Where-Object {$_.Tool -eq "Windows-Update"} | Select-Object -First 1
836
+ if ($updateTest -and $updateTest.Output -match "Pending:\s*(\d+)") {
837
+ $pendingCount = [int]$matches[1]
838
+ if ($pendingCount -gt 0) {
839
+ $recommendations += "• CRITICAL: $pendingCount Windows Update(s) are pending."
840
+ $recommendations += " → Install all pending updates to ensure system stability and security."
841
+ $criticalIssues++
842
+ }
843
844
845
# --- E. Failed Tests Alert ---
846
if ($failed -gt 0) {
0 commit comments