Reading Windows Event Logs at Scale With Get-WinEvent and FilterHashtable
A million-event Security log times out under Where-Object. Push the filter into the log with Get-WinEvent -FilterHashtable and -FilterXPath and pull the slice you need in seconds.