var name = vm.hostName;
where vm is your VC:VirtualMachine object.
Thanks, that was the first thing I tried, however it's null?
Could you try also
var name = vm.runtime.host.name;
BTW, which vRO and vCenter plug-in versions do you use?
Thanks, that seems to work OK, but will this info be available if the vm is not running?
I'm using vro v7.5 with vCenter plug in v6.5.
Yes, I think it should work even if the vm is powered off.
Just tested, works fine, thanks for your help (once again!)