Tech: Including more informations in Microsoft Virtual Server 2005 virtual machines configuration file

Ben Armstrong is still working on the use of SetConfigValue and GetConfigValue, this time to teach how to embed in VMC files further informations, useful for third party management tools or custom scripts:

Set vs = CreateObject(“VirtualServer.Application”)
set vm1 = vs.FindVirtualMachine(WScript.Arguments(0))

key = “Bens_Test_Key/Some_Value”

Result = vm1.SetConfigurationValue(key, “Hello World”)

Wscript.echo “Fetching custom key: ” & key & ” value: ” & vm1.GetConfigurationValue(key)

Be sure to read the original post for comments and updates.