From 0d9f72129b9af04a466a06e05136673611277e58 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Mon, 14 Apr 2025 09:11:18 +0900 Subject: [PATCH] add percentage --- WELA.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WELA.ps1 b/WELA.ps1 index 75a47140..47ef9a5f 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -1044,7 +1044,8 @@ function AuditLogSetting { $out = "Partially Enabled" $color = "DarkYellow" } - Write-Host "$( $_.Name ): $out" -ForegroundColor $color + $enabledPercentage = "{0:N2}" -f (($enabledCount / ($enabledCount + $disabledCount)) * 100) + Write-Host "$( $_.Name ): $out($($enabledPercentage)" -ForegroundColor $color $_.Group | ForEach-Object { $_.Output($outType) }