VMware Cloud Community
sexyboy32
Contributor
Contributor

Find the Esx host for a Vm

Hello everybody

I have a request,

I am trying to find the esxi names of some virtual machines.

I am looking for the right command, the Get-Vm command does not give me the information.

Version 6.7 , in Powercli

Thansks,
Doron

2 Replies
LucD
Leadership
Leadership

The Get-VM does give that info.

Get-VM |
Select Name, @{N='VMHost';E={$_.VMHost.Name}}


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

Reply
0 Kudos
sexyboy32
Contributor
Contributor

Thanks for the reply.
Doron

Tags (1)
Reply
0 Kudos