How To Query Windows Event Logs Across Multiple Windows Servers

There is nothing worse than having to pull event logs from a long list of servers manually. RDP’ing to them each one by one, launching event viewer, patiently waiting while it loads, selecting your filters, and then taking notes. Blah. But wait, there’s a better way!

In this snip, Anthony will demonstrate how to easily query a list of computers (from a text file or AD query) for their event logs using PowerShell’s Get-WinEvent cmdlet.

Foreach loop snip: