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