Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Get-WinEvent time-stamp filtering not producing desired results

$
0
0

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.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>