feat: check size setting

This commit is contained in:
fukusuket
2025-04-17 23:53:08 +09:00
parent cd377bf456
commit f5b2751dda

View File

@@ -1460,7 +1460,6 @@ function AuditFileSize {
foreach ($logName in $logNames.Keys | Sort-Object) {
$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)