Tech: Tracking VMs CPU utilization history in Microsoft Virtual Server 2005

Ben Armstrong wrote a new script. This time it calls the Virtual Server COM interface for CPU history tracking:

Set objVS = CreateObject(“VirtualServer.Application”)
set objVM = objVS.FindVirtualMachine(WScript.Arguments(0))
Set colAccountants = objVM.Accountant

i = 1
For Each intCPUUtilization in colAccountants.CPUUtilizationHistory
Wscript.Echo i & “: ” & intCPUUtilization
i = i + 1

Read the original post for updated and comments.