-
This works great : foreach ($server in $ServerList) {$server; get-winevent -computername $server -Credential $Creds -FilterHashTable @{ logname = "application","system"; StartTime = (get-date).AddDays(-$Past); Level= 2,3}| ConvertTo-Html -Property LevelDisplayName, ID, ProviderName...
-
This script should have three nested loops. the first is a loop through all computers from a list the second is a loop through all eventlogs on a computer the third loop writes each event from each eventlog to SQL table. I assume using functions is a better practice. That may be/probably is related to...