From a243eb716e6077cbbf10468ad034ecb1fde3c960 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Wed, 2 Apr 2025 09:08:14 +0900 Subject: [PATCH] feat: verbose security --- WELAVerboseSecAudit.psm1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WELAVerboseSecAudit.psm1 b/WELAVerboseSecAudit.psm1 index 26a5afe5..424cdb63 100644 --- a/WELAVerboseSecAudit.psm1 +++ b/WELAVerboseSecAudit.psm1 @@ -233,10 +233,9 @@ System $msgLines = $msg -split "`n" foreach ($line in $msgLines) { - if ($line -contains 'disabled') { + if ($line -match '.*disabled.*') { Write-Host $line -ForegroundColor Red } else { - Write-Host "****" Write-Host $line } }