• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Podcast
  • Meetups
  • Archives
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp for Desktops
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp for VDI
  • Topics
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

Script “Analyze Logon Duration” runs fine but gives different when I run the script manually

Posted on January 10, 2023

A user encountered a difference in result between running the ‘Analyze Logon Duration’ Script manually and as an automated action in ControlUp. Possible causes discussed include the monitor triggering it vs. the console, interpreation of the decimal seperator, and events triggered by Ivanti. Support suggested the customer open a ticket to investigate further and to mention this Slack thread. The ControlUp Agent version on the affected desktop was 8.6.5.427.


Read the entire ‘Investigating Differences in ControlUp Script Action Results’ thread below:

Hello, I’m trying to configure the Script “Analyze Logon Duration” as an automated action. The script runs fine however the result is different when I run the script manually.

Any idea what could cause this?


Hmmz @member this shouldn’t happen should it?

Cc @member as well

From 13 to 1300, that feels like a decimal seperator going haywire somewhere


Yes I was thinking the same. But It’s stange that the value for “Logon End” is different…


@member could it be relevant if the monitor is running it vs the console?


@member ALD always runs on the endpoint, the monitor just triggers it


I figured that, just wondering if how it gets trigger would make a difference… Keep me posted ๐Ÿ™‚ I would be curious on why this is happening


@member you should be able to add an argument named CreateOfflineAnalysisPackage with a path to save an offline package can you do that for both methods so we can investigate that package?


The 1300 is I believe calculated off the start and end time, so the 1300 seconds is correct. The issue is the End time possibly be read incorrectly from the logs


1300 be an awfully slow logon though… Maybe a difference in interpretation of the decimal separator? Depending on the locale a comma or dot is used as a decimal separator.


@member Ok not sure how to do this. I tried to add the parameter to the Script Action but there’s no offline package


I believe we have seen this before… I believe the issue is the ControlUp agent monitors for a event that is only available programmatically (Start Menu Ready). This is triggered when the start menu is rendered and available to be clicked on. This event occurs after logon but it’s possible to generate this event when other actions occur (like screen lock/unlock I think).

This should have been fixed in ControlUp 8.6 to only take the first event. @member Can you confirm what version of ControlUp you are using?

I should also note that I’ve seen this behaviour (ever increasing “Desktop Load Time Column”) when Ivanti triggers the lock/unlock events. I haven’t really seen any other technology which triggers the same thing, but if Ivanti figured it out someone else may have discovered the same method


@member We’re using 8.6.5.427


Can you confirm the value in ControlUp for the “Desktop Load Time” column does NOT match what ALD says?

ALD gets it’s value from ControlUp, so when it’s at ~1300 seconds, that value should match the console


Yes I can confirm that the “Desktop load time” does not match what ALD says when it’s executed from an automated action. But it matches, when I run ALD from Console.

I’ve noticed that Logon End time is also in the future…

The customer got Ivanti btw. Do you think that this might cause the issue? But in that case it should also apply if we run ALD from Console?


Hi @member, indeed Ivanti may be related here, as Ivanti may change the default Shell behavior in the Windows session. I suggest you open a ticket via support@controlup,com on this issue, so we can properly investigate

@member – maybe this is the same “Ivanti lock / unlock” issue that effects our code flow

@member – last point for now, you said the ControlUp version is 8.6.5.427, I would just verify the CU Agent version from the affected desktop is also 8.6.5.x (as we do support agent backward compatibility)


Yes, the agent is also 8.6.5.427.

Thx, I’ll proceed and open a ticket ๐Ÿ™‚


thx a lot. I suggest you mention this Slack thread in the Support ticket, so Support can see the notes from @member / the Ivanti notes


Great, thank you!


@member I am opening the ticket for you. Please expect a response soon ๐Ÿ™‚


@member Thanks a lot ๐Ÿ™‚

Continue reading and comment on the thread ‘Script “Analyze Logon Duration” runs fine but gives different when I run the script manually’.  Not a member? Join Here!


Categories: All Archives, ControlUp Scripts & Triggers
Topics: Automation & Alerting, ControlUp Agent, Microsoft Windows, Scripts, Slow Logon, Triggers

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on whatโ€™s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn
Did you Know - with Sivan Kroitoru
Practical Perspectives Technical Use Case Training

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp solutions.

Browse here >

Download ControlUp RealTime DX

Start with ControlUp for real-time end-user environment insights, swift troubleshooting, and unprecedented performance optimization. Download now.

Download here >

Footer

ย  ย  ย ย 

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Useย |ย Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2025 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..