Get-Content c:\computers.txt | where {($_.Trim()).length -gt 0} | foreach { Get-WmiObject Win32_NTEventLogFile -computer $_.Trim() -filter "NumberOfRecords > 0" | Select-Object @{Name="Computername";Expression={$_.CSName}},LogFileName,NumberOfRecords,@{Name="Size(KB)";Expression={$_.FileSize/1kb}},@{Name="MaxSize(KB)";Expression={($_.MaxFileSize/1KB) -as [int]}}, @{name="PercentUsed";Expression={"{0:P2}" -f ($_.filesize/$_.maxFileSize)}}} | Sort Computername | Format-Table -GroupBy Computername -property LogFileName,NumberOfRecords,*Size*,PercentUsed