mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-07 17:52:49 +01:00
add percentage
This commit is contained in:
4
WELA.ps1
4
WELA.ps1
@@ -1044,11 +1044,11 @@ function AuditLogSetting {
|
||||
$out = "Partially Enabled"
|
||||
$color = "DarkYellow"
|
||||
}
|
||||
$enabledPercentage = "0%"
|
||||
$enabledPercentage = "0.00%"
|
||||
if ($enabledCount + $disabledCount -ne 0) {
|
||||
$enabledPercentage = "{0:N2}%" -f (($enabledCount / ($enabledCount + $disabledCount)) * 100)
|
||||
}
|
||||
Write-Host "$( $_.Name ): $out($($enabledPercentage)" -ForegroundColor $color
|
||||
Write-Host "$( $_.Name ): $out($($enabledPercentage))" -ForegroundColor $color
|
||||
$_.Group | ForEach-Object {
|
||||
$_.Output($outType)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user