VMware Horizon Community
mjreccoppa
Contributor
Contributor

Restart all Desktops Horizon 7 Administrator

We are currently running Horizon 7 with about 700 Virtual desktops divided up between 3 desktop pools.  We would like to have all desktops restart themselves once a week, probably on a saturday night.  Is there a way to set all desktops in the pool to do this?  I looked to any settings in the pool and maybe even create a custom task but couldn't find anything.

Thank you,

Michael

Reply
0 Kudos
3 Replies
sjesse
Leadership
Leadership

I think you need to use powercli, I'm not aware of any horizon based option for this. As long as these are persistent full clones or linked clones that aren't set to delete on logoff or refresh on logoff you shouldn't have any problems. If your desktops on hosts with a dedicated vcenter, you could run this powercli to restart all desktops.

Get-VM | Restart-VMGuest

Reply
0 Kudos
BenFB
Virtuoso
Virtuoso

You have a few options to accomplish this. You could configure a scheduled task using group policy to restart the guest (Make sure to run it as a user with administrator/system rights), use an automation tool (We've done this before with SCCM) or a script that uses the Horizon or vCenter API to initiate a guest restart.

Reply
0 Kudos
jonathanjabez
Hot Shot
Hot Shot

May be you can refer to the below community thread:

[Horizon 7] Want to automate restart VM's for entire pool daily

you can schedule the View Composer refresh operation for your VDI Pools.

Reply
0 Kudos