Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 180259

powercli to find full path of VM's resource pool location

$
0
0

Hi, I'm looking for a function or script code block I can use to get the full path (depth) of the Resource Pool that a VM is located in. I'm looking to execute something like, "get-vmPoolLocation.ps1 vmname"

 

Ideally, it should return the VMname, ESX Datacenter Name, Cluster Name, ESX Host, and ResourcePool full path, like below represents.

vc_resource_pools.5.2.1.jpg

I've used get-resourcepool but that doesn't provide complete path (at least as far as I can go).


Thank you for you help.


Viewing all articles
Browse latest Browse all 180259

Trending Articles