Get-EventLog delays to finish


hi,

i have simple powershell query:

get-eventlog -computername $server -logname system -entrytype warning -after (get-date).adddays(-1) | {$_.eventid -eq 108}  | select timegenerated, message 

it displays results takes time finish query after results displayed. if run remote computer takes ages while script finishes after results displayed. wrong?

thanks

hi,

look @ get-winevent instead if want speed increase:

http://ss64.com/ps/get-winevent.html




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL

Como saber quien entro a mi PC por la Red