I am trying to filter events via the following commands to get specific logs from the last 24 hours:
$EventLogFilter = @{logname='ForwardedEvents'; id=4771,4625,4768; StartTime=(Get-Date).AddHours(-24)} $LogonEvents = Get-WinEvent -FilterHashtable $EventLogFilter
I am very confused about the output. It only returns the following events:
And yet look at all of the events in the log it did not pickup:
There are many more events but I just took a screenshot to show this in the GUI.
Why isn't it picking up all of these events.