ehsanijavad
Enthusiast
Enthusiast

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

Jump to solution

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.

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

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

0 Kudos
2 Replies
LucD
Leadership
Leadership

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

0 Kudos
ehsanijavad
Enthusiast
Enthusiast

Hi LucD

Thank you so much for your help.

 

Regards

Jawad

0 Kudos