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.
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.