$Computers = Import-Csv -Path C:\temp\servers.csv
$Log = "System"
$EventID = "4199"
$Results = foreach ($comp in $Computers){
Get-EventLog -LogName $Log -ComputerName $Comp.Name |Where-Object {$_.EventID -eq $EventID} |Select MachineName, Source, EventID, TimeGenerated
}
$Results | Export-Csv -Path logs.csv -NoTypeInformation