Currently we are running the latest version of XenDesktop from Citrix. What happens is each day, and during the day, machines will become "Unregistered" and have and error beside them on the Delivery Controller. What we what is a script that will check every 10 minutes for unregistered machines with an error, aka the desktop is unusable. The script will reboot the machines, and email us what machines were rebooted. Basically we are setting up something that will run on a 10 minute schedule, check to see what machines are unregistered with an error and reboot them and email us.