Select Page

This morning I need to list what clusters were on my vCenter Server. I created the PowerCLI one liner to list them out.

 

 

get-vmhost | Select Name, @{N=”Cluster”;E={Get-Cluster -VMHost $_}},@{N=”Datacenter”;E={Get-Datacenter -VMHost $_}} | Format-Table -AutoSize

 

Social Share Buttons and Icons powered by Ultimatelysocial