Skip to content

powerCLI to get VM, cluster, Host, and datastore

November 10, 2010

PowerCLI one liner for basic info. Even export to CSV

Get-VM | Select Name, @{N="Cluster";E={Get-Cluster -VM $_}}, `
@{N="ESX Host";E={Get-VMHost -VM $_}}, `
@{N="Datastore";E={Get-Datastore -VM $_}} | `
Export-Csv -NoTypeInformation C:\Scripts\VM_CLuster_Host_Datastore.csv 

/a.

From → Uncategorized

Leave a Comment

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.