feat: add currentsetting

This commit is contained in:
fukusuket
2025-05-16 18:23:54 +09:00
parent 4673db21f0
commit 3daf3bb055

View File

@@ -5082,7 +5082,7 @@ function AuditLogSetting {
if ($enabledCount + $disabledCount -ne 0) { if ($enabledCount + $disabledCount -ne 0) {
$enabledPercentage = "({0:N2}%)" -f (($enabledCount / ($enabledCount + $disabledCount)) * 100) $enabledPercentage = "({0:N2}%)" -f (($enabledCount / ($enabledCount + $disabledCount)) * 100)
} }
if ($_.Name -notmatch "Powershell" -and $_.Name -notmatch "Security Advanced" -and $_.Name -notmatch "PrintService") { if ($_.Name -notmatch "Powershell" -and $_.Name -notmatch "Security Advanced") {
$enabledPercentage = "" $enabledPercentage = ""
} }
Write-Host "$( $_.Name ): $out$($enabledPercentage)" -ForegroundColor $color Write-Host "$( $_.Name ): $out$($enabledPercentage)" -ForegroundColor $color