DennieTidwell
Enthusiast
Enthusiast

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

Jump to solution

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

????

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

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

0 Kudos
1 Reply
LucD
Leadership
Leadership

Unless I'm missing something this is quite easy

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


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

0 Kudos