VMware Cloud Community
DennieTidwell
Enthusiast
Enthusiast
Jump to solution

VIToolkit/Powershell command - get vm's esx server location

VIToolkit/Powershell command - get vm's esx server location

I would like a command to reveal the esx server location of a vm

I know the vm name and want to quickly find the esx server it resides on from the ps/vi toolkit command line

????

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Unless I'm missing something this is quite easy

(Get-Vm <VMname>).Host.Name


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

View solution in original post

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

Unless I'm missing something this is quite easy

(Get-Vm <VMname>).Host.Name


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

Reply
0 Kudos