|
I dont have this object, but try this:
Can you try some debugging lines and report back ?
$objVS = CreateObject("VirtualServer.Application")
?"FindVM=" + VarTypeName($objVS.FindVirtualMachine)
?"Server1=" + VarTypeName($objVS.FindVirtualMachine("Server1"))
? "Name=" + $vm.Name
|