From 4673db21f00df6711527c45117392f14ee48b9c7 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Fri, 16 May 2025 18:22:29 +0900 Subject: [PATCH] feat: add currentsetting --- WELA.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WELA.ps1 b/WELA.ps1 index f34ce005..05bcef56 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -5082,7 +5082,7 @@ function AuditLogSetting { if ($enabledCount + $disabledCount -ne 0) { $enabledPercentage = "({0:N2}%)" -f (($enabledCount / ($enabledCount + $disabledCount)) * 100) } - if ($_.Name -notmatch "Powershell" -and $_.Name -notcontains "Security Advanced" -and $_.Name -notcontains "PrintService") { + if ($_.Name -notmatch "Powershell" -and $_.Name -notmatch "Security Advanced" -and $_.Name -notmatch "PrintService") { $enabledPercentage = "" } Write-Host "$( $_.Name ): $out$($enabledPercentage)" -ForegroundColor $color