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.VirtualMachines
For Each vm in vms
Wscript.Echo “Virtual machine: ” & vm.Name
Wscript.Echo “Uptime: ” & vm.Accountant.Uptime
Be sure to read the original post for updates and comments.