VMware Cloud Community
AlexAymonier
Contributor
Contributor
Jump to solution

Find vcenter from VM object

Hi All,

Just upgraded to VMware PowerCLI 10.1.0 build 8346946 and i'm finding that i can no longer find which VC my VMs are now in (i am querying 3 VCs). If i put the VM object into a variable I was able to go to $VM.Guest.Client.Config.Server . This looks like it does not exist anymore in 10.1. 

Anyone know where this info now resideds please?

Thanks,

Alex

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

I always use

([uri]$vm.ExtensionData.Client.ServiceUrl).Host


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

I always use

([uri]$vm.ExtensionData.Client.ServiceUrl).Host


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
AlexAymonier
Contributor
Contributor
Jump to solution

You Legend Luc, Merci

0 Kudos