VMware Cloud Community
ehsanijavad
Enthusiast
Enthusiast
Jump to solution

Find the vCenter Name in get-vmhost -Id (ESXiID) | get-view

Hi all

First of all, thanks for your help.

Please let me know how can I find the vCenter name in:

get-vmhost -Id ($esxiID) | get-view

 

Thanks in advance for your help.

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Something like this

Get-VMHost -Id ($esxiID) | Get-View |
Select Name,@{N='vCenter';E={([uri]$_.Client.ServiceUrl).Host}}


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

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

Something like this

Get-VMHost -Id ($esxiID) | Get-View |
Select Name,@{N='vCenter';E={([uri]$_.Client.ServiceUrl).Host}}


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

Reply
0 Kudos
ehsanijavad
Enthusiast
Enthusiast
Jump to solution

Hi LucD

Thank you so much for your help.

 

Regards

Jawad

Reply
0 Kudos