A user was having issues with Trigger and ALD script. It was suggested to check the security event log size, if the regional settings match, as well as other troubleshooting steps. The user thanked the team for their quick response. There was some brief off-topic banter about billing and working hours.
Read the entire ‘Troubleshooting Issues Using Trigger with ALD Script’ thread below:
I get an error when using Trigger with ALD script. Manually starting script gives an output with all information. Automated Actions gives an error :
Get-LogonDurationAnalysis : Failed to cache any relevant security event logs from 06.02.2023 11:07:55 for 60 minutes
In C:\Windows\system32\config\systemprofile\AppData\Roaming\ControlUp\Scripts\3b9d03f4-ab1f-45d9-b058-9c07d1417635.ps1:4131 Zeichen:9
-
Get-LogonDurationAnalysis @params
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
-
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-LogonDurationAnalysis
-
Anyone an idea?
check if the security events log didn’t roll over yet
it might be that the max size needs to be increased
^ this. It is literally not getting any events in the specified period.
[array]$securityEvents = @( Get-WinEvent -FilterHashtable $securityFilter -ErrorAction SilentlyContinue)
`if( ! $securityEvents -or ! $securityEvents.Count )`
Still odd it would work manually/
OK. Earhtquake..
I’d also check if the regional settings are the same between the user it’s working with and the system user
Ok, nobody else is evacuating…
ok, i will discuss that with the customer. Thans for the fast answers. I will report the results here.
ping me if you want someone to hop on a call with the customer for some live troubleshooting on it.
Received a 100% on my reply from @member… My day is done 🙂
Well, you only work 2 hours a day as a rule anyway.
Working is important for sure, but I’m sure billing is better 🙂
Uurtje factuurtje, my friend 😂
now done with the offtopic my friends 🙂
Continue reading and comment on the thread ‘Troubleshooting Issues Using Trigger with ALD Script in ControlUp’. Not a member? Join Here!
Categories: All Archives, ControlUp Scripts & Triggers