Ben Armstrong provided a nice script to read how much time virtual machines are powered on on a Virtual Server 2005 environment:
Set vs = CreateObject(“VirtualServer.Application”)
set vms = vs.VirtualMachinesFor Each vm in vms
Wscript.Echo “Virtual machine: ” & vm.Name
Wscript.Echo “Uptime: ” & vm.Accountant.Uptime
Wscript.Echo
Next
Be sure to read the original post for updates and comments.