• 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

Using Get-HVMachineSummary and Understanding HZ Assigned User in VMware Holirzon View on ControlUp

Posted on July 10, 2023

In Horizon View, the assigned user of VDIs is not showing in the Real-Time console, but there is a registry key that can be used to turn it back on. This was turned off by default due to a performance concern, but it is believed that the underlying issue has been addressed. In version 9 of the integration, assigned user can be retrieved without extra data. @member may have more insight on this. Use with caution. Title: Registry Key to Retrieve Assigned User in Horizon View


Read the entire ” thread below:

In Horizon View, I can pull the assigned user of a specific VDI with the Get-HVMachineSummary cmdlet. In Real-Time console under the Machine view, I see a column called HZ Assigned User but it’s empty across the board. I’m not sure what that value correlates to if that’s not the assigned user field under the machine summary.


Collection of that metric was turned off by default due to a performance concern related to the horizon connection server. I believe VMware has addressed the underlying issue since.

There’s a registry key you can use to turn it back on. Just keep an eye on connection server cpu.

I’ll get you the registry key in a bit.

On your data collector

Path – HKLM\SOFTWARE\Smart-X\ ControlUp\Agent\Horizon Data Collection

Value name – Collect User Info

Value type – REG_DWORD

Value data – 1

Again. Use with caution.


Oh! That’s interesting! Any chance you have a doc discussing that problem? I am probably going to need go over that one with my engineer.

Either way thank you for the info!


I don’t think so. As far as I remember, so take this with a grain of salt.

When the ControlUp horizon integration was designed, the API to get assigned user on the horizon side also includes other data. So ControlUp only cares about the username. But the api also retrieves group membership (and perhaps recurses through nested groups?).

For a single user, not that bad. For a big environment or one with a complex AD group membership design? It can take quite a while.

CU will time-out the request. The connection server however will continue to resolve group membership. Eventually causing the connection server to run out of threads (has a max of 100 I believe).

And since normal operations (like the horizon client brokering sessions) also uses that same pool of threads… eventually you’ll get into a situation where all threads are busy running a (relatively long) AD group resolve task.

We didn’t see this often. Most environments aren’t big enough or the query doesn’t run that long. But the large impact for a relative small gain (hz assigned user) meant that we decided to turn this off by default. Out of abundance of caution.

Since then VMware (I believe) has addressed the inefficient API. They’ve also made just the assigned user retrievable. Without the extra data we never cared about anyway.

I believe the plan is to implement this in version 9 somewhere. But @member might know that better.

CC: @member in case I’m totally wrong with my explanation.

Again. This is all of off memory. So take it with a grain of salt and be cautious using the key.


Thank you for the salty background! I’ll do a smidgen of research then run it by my engineers. My guess is we won’t proceed but if we do, it’ll be very cautiously. Thank you again Dennis!

Continue reading and comment on the thread ‘Using Get-HVMachineSummary and Understanding HZ Assigned User in VMware Holirzon View on ControlUp’.  Not a member? Join Here!


Categories: All Archives, ControlUp for VDI
Topics: ControlUp Agent, CPU, Microsoft, Microsoft Active Directory, Scripts, VDI, VMware, VMware Horizon View

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