From c1b0ad5a65c0cfbf232d2acd3fad26ad7aae0495 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Wed, 2 Apr 2025 09:06:02 +0900 Subject: [PATCH] feat: verbose security --- WELAVerboseSecAudit.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WELAVerboseSecAudit.psm1 b/WELAVerboseSecAudit.psm1 index 0248df00..5aa1ebfa 100644 --- a/WELAVerboseSecAudit.psm1 +++ b/WELAVerboseSecAudit.psm1 @@ -233,7 +233,7 @@ System $msgLines = $msg -split "`n" foreach ($line in $msgLines) { - if ($line -match '^\s*disabled.*\)$') { + if ($line -contains 'disabled') { Write-Host -NoNewline $line -ForegroundColor Red } else { Write-Host $line