<@ULJM9DQF2>: I'm trying to run the Analyze Logon ...
# _general
n
@Guy Leech: I'm trying to run the Analyze Logon Duration script from my W10 VDA, and keep coming down with the following error:
Copy code
PS 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?