is there any way to folder information of ESXi host using powercli?
get-folder -location doesn't gives the info .
inside vCenter we have Folders and under that, Clusters and followed by Hosts.
i want to know which hosts are located under which folder?
Thanks in advance,
Does this return the info you are after ?
$parent = Get-View -Id $_.ExtensionData.Parent
while($parent -isnot [VMware.Vim.Folder])
$parent = Get-view -Id $parent.Parent
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference