Is there a easy way to export the results from the below script to csv file?
Thank you..
$servers = get-content c:\temp\pc.txt
foreach ($server in $servers)
{
Get-WinEvent -ComputerName $server -MaxEvents 1 -FilterHashTable @{LogName='Application'; StartTime=$yesterday; ID=8200 } -ErrorAction SilentlyContinue | Select-Object MachineName,TimeCreated,Id,Message
}