mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 01:02:48 +01:00
feat: add currentsetting
This commit is contained in:
2
WELA.ps1
2
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
|
||||
|
||||
Reference in New Issue
Block a user