You can get the clustername from a vmview or hostview object with:
$ClusterName= (Get-View (Get-View$VmView.Runtime.Host).Parent).Name$ClusterName= (Get-View$VMHostView.Parent).Name
You can get the clustername from a vmview or hostview object with:
$ClusterName= (Get-View (Get-View$VmView.Runtime.Host).Parent).Name$ClusterName= (Get-View$VMHostView.Parent).Name