Windows only reboots a bit before restarting again :-)
If you specifically request the status of virtual machines, you should check these API related links for Virtual Server 2005:
IVMVirtualMachine Interface ...
http://msdn.microsoft.com/en-us/library/aa368465(VS.85).aspx
... has the State property ...
IVMVirtualMachine :: State Property
http://msdn.microsoft.com/en-us/library/aa368637(VS.85).aspx
... which will return a value from the VMVMState enumeration ...
http://msdn.microsoft.com/en-us/library/aa368922(VS.85).aspx
At a more general level, you should probably determine how many of Windows you want to start and run. Do you think the network stack is ready to reboot or do you need IIS / SQL or some other application-level service?
I would probably write an application that checks the "heartbeat" of your servers - this application may well be the same as when invoking Windows Update. Then you will get a “console” showing the status of your servers. A heart rate application can execute a ping server, click a static html page, click on a log of remote events, use WMI or whatever you define is enough to consider rebooting your server.
Martin peck
source share