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

ControlUp Community

Connect, Learn, and Grow

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

Automating Logoff of Old Horizon Sessions with ControlUp

Posted on February 13, 2025

Some users discuss using ControlUp to automate the logoff of old sessions in Horizon. One user suggests using a trigger pack with adjustable time to log off sessions after a certain period. Another user recommends building an sba that uses the invoke-cuaction for the horizon forced log off action.


Read the entire ‘Automating Logoff of Old Horizon Sessions with ControlUp’ thread below:

Is anyone using ControlUp to automate the logoff of old sessions in Horizon? I was hoping to use HZ Session Create Time greater > 28 days to run the Message Schedule and Logoff script but it doesn’t look like that’s possible (can only choose specific dates). Curious to see what others are doing.


We have some clients using it but use 8 hours

using session state changed from connected to disconnected , wait 8 hours then log off


We have a trigger in our trigger packs that will help with this use case. You can adjust the time to your preference.

https://support.controlup.com/docs/trigger-packs?highlight=triggers#general


that one probably won’t work in some of those cases as logoff in horizon often doesn’t work when the desktop is locked. In that case I would recommend to build an sba that uses the invoke-cuaction for the horizon forced logoff action. This one comes from the horizon api’s but is not available in the horizon admin and for me always manages to logoff the most stubborn horizon sessions

Continue reading and comment on the thread ‘Automating Logoff of Old Horizon Sessions with ControlUp’.  Not a member? Join Here!


Categories: All Archives, ControlUp for VDI, ControlUp Scripts & Triggers
Topics: Automation & Alerting, Logs, Scripts, 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

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

Browse 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–2026 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..