Get-EventLog delays to finish

Hi,

I have simple PowerShell query:

Get-EventLog -ComputerName $server -LogName System -EntryType Warning -After (Get-Date).Adddays(-1) | where {$_.eventID -eq 108}  | select TimeGenerated, Message 

It displays the results but it takes some time to finish the query after results are already displayed. If I run it for remote computer it takes ages while script finishes after results are displayed. What could be wrong?

Thanks

September 1st, 2015 11:27am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics