mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 17:22:50 +01:00
feat: check size setting
This commit is contained in:
4
WELA.ps1
4
WELA.ps1
@@ -1463,8 +1463,8 @@ function AuditFileSize {
|
|||||||
$logInfo = Get-WinEvent -ListLog $logName -ErrorAction Stop
|
$logInfo = Get-WinEvent -ListLog $logName -ErrorAction Stop
|
||||||
$results += [PSCustomObject]@{
|
$results += [PSCustomObject]@{
|
||||||
LogFilePath = Split-Path $logInfo.LogFilePath -Leaf
|
LogFilePath = Split-Path $logInfo.LogFilePath -Leaf
|
||||||
CurrentLogSize = "{0} MB" -f ($logInfo.FileSize / 1MB)
|
CurrentLogSize = "{0:N2} MB" -f ($logInfo.FileSize / 1MB)
|
||||||
MaxLogSize = "{0} MB" -f ($logInfo.MaximumSizeInBytes / 1MB)
|
MaxLogSize = "{0:N2} MB" -f ($logInfo.MaximumSizeInBytes / 1MB)
|
||||||
Default = $logNames[$logName][0] #
|
Default = $logNames[$logName][0] #
|
||||||
Recommended = $logNames[$logName][1] #
|
Recommended = $logNames[$logName][1] #
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user