VMware Cloud Community
JindiJee
Contributor
Contributor
Jump to solution

Guest to Host Mappings

All, I know there we a bunch of scripts around which return which Guests are on which Hosts - can someone point me in the right direction? I searched but came up empty. Thanks!

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

There are indeed a lot of sample scripts that list the VM and their ESX host.

But a lot of these script report on much more than that.

You could use this one-liner if you only need the VM and it's ESX host.

Get-VM | Select Name, Host


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

View solution in original post

0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

There are indeed a lot of sample scripts that list the VM and their ESX host.

But a lot of these script report on much more than that.

You could use this one-liner if you only need the VM and it's ESX host.

Get-VM | Select Name, Host


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

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Some sample scripts:


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

JindiJee
Contributor
Contributor
Jump to solution

Much appreciated...just what I was looking for. Thank you.

0 Kudos