• 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

Troubleshooting Logon Analyzer Errors in ControlUp

Posted on February 10, 2024

A user was having issues with the Logon Analyzer script, receiving GPO errors and no valid output. Other users suggested checking if auditing was enabled and the number of GPO’s in the environment, while the code was also mentioned as a possible issue. The specific error message "WQL duration processing failed" was also discussed.


Read the entire ‘Troubleshooting Logon Analyzer Errors in ControlUp’ thread below:

Hey all, I’m running the latest version of the Logon Analyzer script but when I run it I get a back of GPO errors and I don’t get any valid output from it. Any ideas why?

You cannot call a method on a null-valued expression.

At C:\windows\system32\config\systemprofile\AppData\Roaming\ControlUp\Scripts\8fa205e1-2bde-483e-8a54-04815abb611c.ps1:4121 char:180

  • … ystemTime
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Thanks!


I this the Analyze Logon Duration script?

Have you enabled auditing as described in here https://support.controlup.com/docs/enable-auditing-for-analyze-logon-duration-script


Yes, this has been done by GPO. When I didn’t have this set, I got errors in the output about auditing not been enabled. I no longer get that since the GPO changes I’ve made based on that article.


@member @member any input


I’ve seen this in environments with over 1000 GPO’s with the query being limited. How many GPO’s are in your environment?


Not that many! I may go for around 50 off the top of my head.


Looking at the code, I’m guessing that it failed to find the end (id 5257) or start (id 4126) events for the GPO downloads from the Microsoft-Windows-GroupPolicy/Operational event log. I have taken an action to improve the error handling around this although it’s the first time I’ve seen this error.


So looking at those logs on my VDI, it has 18189 events in it. If I filter by those two event IDs I’m down to 296. Both IDs are present. I just ran the script against my own session with this and no errors this time. That’s unhelpful!

But I don’t get any logon data either. I see the path based import for DEM and a bunch of warnings (Horizon Profiler Data, async actions for DEM, AppX and SQL

Actually I do get a “WQL duration processing failed = unable to find any relevant events in the event log”. I guess that is why no errors this time!

Continue reading and comment on the thread ‘Troubleshooting Logon Analyzer Errors in ControlUp’.  Not a member? Join Here!


Categories: All Archives, ControlUp for VDI, ControlUp Scripts & Triggers
Topics: Logs, Microsoft, Microsoft Windows, Scripts, VDI

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..