mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 17:22:50 +01:00
feat: full/rotate check
This commit is contained in:
12
WELA.ps1
12
WELA.ps1
@@ -1472,6 +1472,8 @@ function AuditFileSize {
|
|||||||
Default = $logNames[$logName][0]
|
Default = $logNames[$logName][0]
|
||||||
Recommended = $logNames[$logName][1]
|
Recommended = $logNames[$logName][1]
|
||||||
CorrectSetting = $correctSetting
|
CorrectSetting = $correctSetting
|
||||||
|
IsLogFull = $logInfo.IsLogFull
|
||||||
|
LogMode = $logInfo.LogMode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1483,7 +1485,10 @@ function AuditFileSize {
|
|||||||
"Max Size", `
|
"Max Size", `
|
||||||
"Default", `
|
"Default", `
|
||||||
"Recommended", `
|
"Recommended", `
|
||||||
"Correct Setting")
|
"Correct Setting", `
|
||||||
|
"Is Log Full", `
|
||||||
|
"Log Mode" `
|
||||||
|
)
|
||||||
Write-Host ($tableLayout -f `
|
Write-Host ($tableLayout -f `
|
||||||
"--------", `
|
"--------", `
|
||||||
"------------", `
|
"------------", `
|
||||||
@@ -1499,7 +1504,10 @@ function AuditFileSize {
|
|||||||
$result.MaxLogSize, `
|
$result.MaxLogSize, `
|
||||||
$result.Default, `
|
$result.Default, `
|
||||||
$result.Recommended, `
|
$result.Recommended, `
|
||||||
$result.CorrectSetting) -ForegroundColor $color
|
$result.CorrectSetting, `
|
||||||
|
$result.IsLogFull, `
|
||||||
|
$result.LogMode `
|
||||||
|
) -ForegroundColor $color
|
||||||
}
|
}
|
||||||
|
|
||||||
$results | Export-Csv -Path "WELA-FileSize-Result.csv" -NoTypeInformation
|
$results | Export-Csv -Path "WELA-FileSize-Result.csv" -NoTypeInformation
|
||||||
|
|||||||
Reference in New Issue
Block a user