Clear handled native-read exit status after Windows smoke assertions

This commit is contained in:
Shirofune-Security committed 2026-09-19 07:35:04 +09:00
1 parent 0403f14446
commit f930331314
1 file changed
+3
+3
View File
@@ -30,3 +30,6 @@ try {
Assert (($before | ConvertTo-Json -Compress) -ceq ($after | ConvertTo-Json -Compress)) 'Read-only audit leaves both service start modes and states unchanged'
Write-Host 'WEF Windows read-only smoke passed; no subscription deployment or event delivery is claimed.'
} finally { Remove-Item -LiteralPath $temp -Recurse -Force }
# The report retains handled native-read failures (for example a stopped Wecsvc).
# Successful smoke assertions must not inherit that command's exit status.
$global:LASTEXITCODE = 0