by GregSmith at 2013-02-13 11:59:27
This bit of code takes approx 1.5 minutes per server to run when running against a list. If I run against a single server it takes about 30 seconds to complete. There are 9 Servers in the list. Dates are for last 24 hours. The only log I’ve run it against is system, so far. Is there a way to speed this up or a better way to accomplish?by JeffH at 2013-02-13 12:04:39
$GenItems1 = get-eventlog -ea stop -computername $StrComputer -log $logname -after $begdate -Before $enddate | Group EntryType,Source
If it is a big log, there’s not much you can do. If all the remote computers have remoting enabled, you could use Invoke-Command to run the job on all 9 servers at once and then bring the results back to your machine.by GregSmith at 2013-02-13 12:16:38
I’ll give Invoke-Command a try. That’s a new one for me…THANKS!