VMware Cloud Community
Guv
Enthusiast
Enthusiast

Automating rebooting of virtual Desktops

We are using VDI V4 and Vsphere.  I want to start automatically rebooting our virtual desktops as they become slow after few weeks, and restarting them corrects this issue.  Is there a powershell script we could run to automate this process, such as reboot every Saturday evening.  Is there a script we could add in the scheduled tasks which could schedule a reboot.

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Have a look at Arne's post called PowerCLI Schedule a restart job for one or multiple VM’s .

It doesn't use the vCenter Scheduler but can be scheduled on any Windows client where you jave PowerCLI installed.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos