Nick Panaccio
06/11/2020, 4:02 PMPS C:\> powershell -executionpolicy bypass -file .\Analyze_logon_duration.ps1 Domain\User1
WARNING: Could not find win32_logonsession/win32_loggedonuser object for Domain\User1
WARNING: : Exception calling "EndInvoke" with "1" argument(s): "No events were found that match the specified selection criteria."
Failed to find the logon event for User1 - logon was 6/11/2020 11:36 AM
Oldest security event is from 5/27/2020 11:45:14 AM event log maximum size is 20MB
At C:\Analyze_logon_duration.ps1:806 char:13
+ Throw $exception
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Failed to find ...m size is 20MB
:String) [], RuntimeException
+ FullyQualifiedErrorId : Failed to find the logon event for User1 - logon was 6/11/2020 11:36 AM
Oldest security event is from 5/27/2020 11:45:14 AM event log maximum size is 20MB
I've followed the directions listed here (https://www.citrix.com/blogs/2018/10/10/analyze-logon-duration-script-just-got-more-powerful/) to no avail. Anywhere else I can look to try and figure this out?