Tech: Gathering Virtual Server 2005 virtual machines details
Thursday, January 25, 2007
| 0 Comments
|
Ben Armstrong, Program Manager of Virtual Machine Team at Microsoft, published a script to query Virtual Server 2005 virtual machine details from host OS:
Option Explicit dim vs, vm Set vs = CreateObject("VirtualServer.Application") set vm = vs.FindVirtualMachine("a virtual machine") 'Display information about the GuestOS wscript.echo "Guest OS Information:" wscript.echo "=====================" wscript.echo "OSName : " & vm.GuestOS.OSName wscript.echo "AdditionsVersion : " & vm.GuestOS.AdditionsVersion wscript.echo "CanShutdown : " & vm.GuestOS.CanShutdown wscript.echo "IsHeartbeating : " & vm.GuestOS.IsHeartbeating wscript.echo "HeartbeatPercentage : " & vm.GuestOS.HeartbeatPercentage wscript.echo "IsHostTimeSyncEnabled : " & vm.GuestOS.IsHostTimeSyncEnabledBe sure to read the original article for updates and comments. Update: Ben published a new article describing how to achieve same goal with new Microsoft PowerShell instead of VBS. Read it here.
© 2003-2008 virtualization.info
Sitemap
Sitemap


Comments
Post a new comment