Try with the StartDate parameter
Get-EventReport -ViewName user_events -StartDate (Get-Date).AddDays(-7)|
where {$_.eventtype -eq "AGENT_CONNECTED"}
That should give the events for the last 7 days.
Try with the StartDate parameter
Get-EventReport -ViewName user_events -StartDate (Get-Date).AddDays(-7)|
where {$_.eventtype -eq "AGENT_CONNECTED"}
That should give the events for the last 7 days.