List Datastores and naa. Identifiers for a Cluster
Post date: Jul 11, 2013 9:08:57 PM
$ClusterName = "Cluster Name"
Get-Cluster $ClusterName | Get-VMHost | Get-Datastore | Where {$_.Name -notmatch "-Local" -and $_.Name -notmatch "NFS"} | Select Name,@{N="DiskName";E={$_.ExtensionData.Info.Vmfs.Extent.DiskName}}
#Note, I'm using -notmatch to exclude datastores. <--- reasons to have a good naming convention.