feat: check size setting

This commit is contained in:
fukusuket
2025-04-17 23:51:19 +09:00
parent 7ab8a2102d
commit cd377bf456

View File

@@ -1461,6 +1461,7 @@ function AuditFileSize {
$logInfo = Get-WinEvent -ListLog $logName -ErrorAction Stop
$results += [PSCustomObject]@{
LogName = $logInfo.LogName
LogFilePath = Split-Path $logInfo.LogFilePath -Leaf
CurrentLogSize = "{0:N2} MB" -f ($logInfo.FileSize / 1MB)
MaxLogSize = "{0:N2} MB" -f ($logInfo.MaximumSizeInBytes / 1MB)
Default = $logNames[$logName][0] #