mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 09:12:46 +01:00
feat: full/rotate check
This commit is contained in:
8
WELA.ps1
8
WELA.ps1
@@ -1478,7 +1478,7 @@ function AuditFileSize {
|
||||
}
|
||||
|
||||
# Format-Tableには色つき出力の機能はないので、Write-Hostで色をつける
|
||||
$tableLayout = "{0,-75} {1,-15} {2,-15} {3,-15} {4,-15} {5,-10} {6,-10} {7,-10}"
|
||||
$tableLayout = "{0,-75} {1,-15} {2,-10} {3,-10} {4,-10} {5,-10} {6,-10} {7,-10}"
|
||||
Write-Host ($tableLayout -f `
|
||||
"Log File", `
|
||||
"Current Size", `
|
||||
@@ -1486,7 +1486,7 @@ function AuditFileSize {
|
||||
"Default", `
|
||||
"Recommended", `
|
||||
"Correct Setting", `
|
||||
"Is Log Full", `
|
||||
"Log Full", `
|
||||
"Log Mode" `
|
||||
)
|
||||
Write-Host ($tableLayout -f `
|
||||
@@ -1496,8 +1496,8 @@ function AuditFileSize {
|
||||
"------", `
|
||||
"-----------", `
|
||||
"--------------", `
|
||||
"--------------", `
|
||||
"--------" `
|
||||
"-------", `
|
||||
"-------" `
|
||||
)
|
||||
foreach ($result in $results) {
|
||||
$color = if ($result.CorrectSetting -eq "Y") { "Green" } else { "Red" }
|
||||
|
||||
Reference in New Issue
Block a user