*** Ruud - is this a COM bug or "lack-of-feature" ? *** (Shawn)

I am trying to use Kixtart to script Microsoft Virtual Server 2005 R2 but it simply doesn't work with Kixtart at all!

The following VBS code works just fine:

 Code:
Set objVS = CreateObject("VirtualServer.Application")
Set vm = objVS.FindVirtualMachine("Server1")
Wscript.Echo "Name=" & vm.Name


But the Kixtart version:

 Code:
$objVS = CreateObject("VirtualServer.Application")
$vm = $objVS.FindVirtualMachine("Server1")
? "Name=" + $vm.Name


Always returns -2147352567 which translates into 80020009 which as far as I can see is some sort of "Exception occurred" or if I take the 9 and type NET HELPMSG on it says "The storage control block address is invalid".

The CreateObject itself doesn't return an error but as soon as I try to do something with it @ERROR is set to the value mentioned above.