VMware Horizon Community
cdeschepper
Contributor
Contributor

Auto Unassign User of Dedicated Pool

I have a dedicated pool setup with one VM in it.  I have entitled a user group to the pool, and have auto assignment turned on.  Now normally only one person will be using this VM, but on the occasion that he is out sick or on vacation another person will be filling in.  In order to let the second person use the VM I would need to unassign the first user.  Would it be possible to somehow automate this process?  Such as the user restarts the VM each night when he leaves, and in the process of being rebooted it also unassigns him as the user of that VM?  Does anyone know if that is possible?  I'm fairly new to running our Horizon environment so please excuse me if this seems like a silly question, or if there is a better way to achieve this goal.

Thank you for your help!

2 Replies
sjesse
Leadership
Leadership

7.12 let you assign multiple users to the same vm

https://www.virtualizationhowto.com/2020/03/assign-multiple-users-to-manual-desktop-pool-in-horizon-...

Automation like you asked is technically possible, but would be crazy  to start considering the feature is available. If you can' upgrade I think you would need to put a script in the vm as logoff script and try the example here

https://www.retouw.nl/powercli/remove-desktop-assignment/

to see if that works.

cdeschepper
Contributor
Contributor

Unfortunately we are on 7.7 at the moment.  We have looked at updating, but as I'm sure you know there are a lot of moving parts and with everything that is going on right now we are trying to keep costs down as much as possible. 

Thank you for the info in the link.  It looks like it may help us do what we are looking for.  Looks like I would have to install PowerCLI on the VM as well to make it work.  I'll have to investigate it further.

0 Kudos